Class UpdateCachePolicyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.cloudfront.model.CloudFrontRequest
-
- software.amazon.awssdk.services.cloudfront.model.UpdateCachePolicyRequest
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<UpdateCachePolicyRequest.Builder,UpdateCachePolicyRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateCachePolicyRequest extends CloudFrontRequest implements ToCopyableBuilder<UpdateCachePolicyRequest.Builder,UpdateCachePolicyRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
UpdateCachePolicyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateCachePolicyRequest.Builder
builder()
CachePolicyConfig
cachePolicyConfig()
A cache policy configuration.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
id()
The unique identifier for the cache policy that you are updating.String
ifMatch()
The version of the cache policy that you are updating.List<SdkField<?>>
sdkFields()
static Class<? extends UpdateCachePolicyRequest.Builder>
serializableBuilderClass()
UpdateCachePolicyRequest.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
cachePolicyConfig
public final CachePolicyConfig cachePolicyConfig()
A cache policy configuration.
- Returns:
- A cache policy configuration.
-
id
public final String id()
The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior's
CachePolicyId
field in the response toGetDistributionConfig
.- Returns:
- The unique identifier for the cache policy that you are updating. The identifier is returned in a cache
behavior's
CachePolicyId
field in the response toGetDistributionConfig
.
-
ifMatch
public final String ifMatch()
The version of the cache policy that you are updating. The version is returned in the cache policy's
ETag
field in the response toGetCachePolicyConfig
.- Returns:
- The version of the cache policy that you are updating. The version is returned in the cache policy's
ETag
field in the response toGetCachePolicyConfig
.
-
toBuilder
public UpdateCachePolicyRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<UpdateCachePolicyRequest.Builder,UpdateCachePolicyRequest>
- Specified by:
toBuilder
in classCloudFrontRequest
-
builder
public static UpdateCachePolicyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateCachePolicyRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String 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
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkRequest
-
-