public sealed class BackendServiceCdnPolicyNegativeCachingPolicy : IMessage<BackendServiceCdnPolicyNegativeCachingPolicy>, IEquatable<BackendServiceCdnPolicyNegativeCachingPolicy>, IDeepCloneable<BackendServiceCdnPolicyNegativeCachingPolicy>, IBufferMessage, IMessage
The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once.
The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-24 UTC."],[[["This document outlines the different versions of the `BackendServiceCdnPolicyNegativeCachingPolicy` class, spanning from version 1.0.0 to the latest version 3.6.0, within the Google Cloud Compute V1 .NET library."],["The `BackendServiceCdnPolicyNegativeCachingPolicy` class, found within the `Google.Cloud.Compute.V1` namespace, is designed to specify CDN TTLs for various HTTP response error codes, inheriting from the base Object class and implementing several interfaces like IMessage and IDeepCloneable."],["This class contains properties such as `Code`, which defines the specific HTTP status code for which a TTL is being set, `HasCode`, to verify if the \"code\" field is set, `HasTtl`, to check if the TTL field is set, and `Ttl`, to dictate the length of the cache for the response."],["There are two constructors for the `BackendServiceCdnPolicyNegativeCachingPolicy` class: a default constructor and one that takes another `BackendServiceCdnPolicyNegativeCachingPolicy` object for copying values."],["The valid HTTP status codes that can be specified in the `Code` property are 300, 301, 302, 307, 308, 404, 405, 410, 421, 451, and 501, and you cannot specify a status code more than once."]]],[]]