Class InvalidationBatch
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InvalidationBatch.Builder,InvalidationBatch>
An invalidation batch.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidationBatch.Builderbuilder()final StringA value that you specify to uniquely identify an invalidation request.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Pathspaths()A complex type that contains information about the objects that you want to invalidate.static Class<? extends InvalidationBatch.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
paths
A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidate in the Amazon CloudFront Developer Guide.
- Returns:
- A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidate in the Amazon CloudFront Developer Guide.
-
callerReference
A value that you specify to uniquely identify an invalidation request. CloudFront uses the value to prevent you from accidentally resubmitting an identical request. Whenever you create a new invalidation request, you must specify a new value for
CallerReferenceand change other values in the request as applicable. One way to ensure that the value ofCallerReferenceis unique is to use atimestamp, for example,20120301090000.If you make a second invalidation request with the same value for
CallerReference, and if the rest of the request is the same, CloudFront doesn't create a new invalidation request. Instead, CloudFront returns information about the invalidation request that you previously created with the sameCallerReference.If
CallerReferenceis a value you already sent in a previous invalidation batch request but the content of anyPathis different from the original request, CloudFront returns anInvalidationBatchAlreadyExistserror.- Returns:
- A value that you specify to uniquely identify an invalidation request. CloudFront uses the value to
prevent you from accidentally resubmitting an identical request. Whenever you create a new invalidation
request, you must specify a new value for
CallerReferenceand change other values in the request as applicable. One way to ensure that the value ofCallerReferenceis unique is to use atimestamp, for example,20120301090000.If you make a second invalidation request with the same value for
CallerReference, and if the rest of the request is the same, CloudFront doesn't create a new invalidation request. Instead, CloudFront returns information about the invalidation request that you previously created with the sameCallerReference.If
CallerReferenceis a value you already sent in a previous invalidation batch request but the content of anyPathis different from the original request, CloudFront returns anInvalidationBatchAlreadyExistserror.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<InvalidationBatch.Builder,InvalidationBatch> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-