Class CacheTagConfig
java.lang.Object
software.amazon.awssdk.services.cloudfront.model.CacheTagConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CacheTagConfig.Builder,CacheTagConfig>
@Generated("software.amazon.awssdk:codegen")
public final class CacheTagConfig
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<CacheTagConfig.Builder,CacheTagConfig>
A complex type that specifies the HTTP header name from which CloudFront extracts cache tags from origin responses.
When you add CacheTagConfig to a distribution, CloudFront reads the specified header from origin
responses, parses the comma-separated tag values, and stores them with the cached object. You can then invalidate
cached objects by tag using the CreateInvalidation API.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheTagConfig.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe name of the HTTP header that your origin includes in responses.static Class<? extends CacheTagConfig.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
headerName
The name of the HTTP header that your origin includes in responses. CloudFront uses this header to extract cache tags. The header value must contain comma-separated tag values (for example,
product:electronics, category:tv, brand:example).- Returns:
- The name of the HTTP header that your origin includes in responses. CloudFront uses this header to
extract cache tags. The header value must contain comma-separated tag values (for example,
product:electronics, category:tv, brand:example).
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<CacheTagConfig.Builder,CacheTagConfig>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-