Class CopyDistributionRequest
- 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.CopyDistributionRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CopyDistributionRequest.Builder,CopyDistributionRequest>
@Generated("software.amazon.awssdk:codegen") public final class CopyDistributionRequest extends CloudFrontRequest implements ToCopyableBuilder<CopyDistributionRequest.Builder,CopyDistributionRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCopyDistributionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CopyDistributionRequest.Builderbuilder()StringcallerReference()A value that uniquely identifies a request to create a resource.Booleanenabled()A Boolean flag to specify the state of the staging distribution when it's created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringifMatch()The version identifier of the primary distribution whose configuration you are copying.StringprimaryDistributionId()The identifier of the primary distribution whose configuration you are copying.List<SdkField<?>>sdkFields()static Class<? extends CopyDistributionRequest.Builder>serializableBuilderClass()Booleanstaging()The type of distribution that your primary distribution will be copied to.CopyDistributionRequest.BuildertoBuilder()StringtoString()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
-
primaryDistributionId
public final String primaryDistributionId()
The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use
ListDistributions.- Returns:
- The identifier of the primary distribution whose configuration you are copying. To get a distribution ID,
use
ListDistributions.
-
staging
public final Boolean staging()
The type of distribution that your primary distribution will be copied to. The only valid value is
True, indicating that you are copying to a staging distribution.- Returns:
- The type of distribution that your primary distribution will be copied to. The only valid value is
True, indicating that you are copying to a staging distribution.
-
ifMatch
public final String ifMatch()
The version identifier of the primary distribution whose configuration you are copying. This is the
ETagvalue returned in the response toGetDistributionandGetDistributionConfig.- Returns:
- The version identifier of the primary distribution whose configuration you are copying. This is the
ETagvalue returned in the response toGetDistributionandGetDistributionConfig.
-
callerReference
public final String callerReference()
A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.
- Returns:
- A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.
-
enabled
public final Boolean enabled()
A Boolean flag to specify the state of the staging distribution when it's created. When you set this value to
True, the staging distribution is enabled. When you set this value toFalse, the staging distribution is disabled.If you omit this field, the default value is
True.- Returns:
- A Boolean flag to specify the state of the staging distribution when it's created. When you set this
value to
True, the staging distribution is enabled. When you set this value toFalse, the staging distribution is disabled.If you omit this field, the default value is
True.
-
toBuilder
public CopyDistributionRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CopyDistributionRequest.Builder,CopyDistributionRequest>- Specified by:
toBuilderin classCloudFrontRequest
-
builder
public static CopyDistributionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CopyDistributionRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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:
getValueForFieldin classSdkRequest
-
-