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 interface
CopyDistributionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CopyDistributionRequest.Builder
builder()
String
callerReference()
A value that uniquely identifies a request to create a resource.Boolean
enabled()
A Boolean flag to specify the state of the staging distribution when it's created.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
ifMatch()
The version identifier of the primary distribution whose configuration you are copying.String
primaryDistributionId()
The identifier of the primary distribution whose configuration you are copying.List<SdkField<?>>
sdkFields()
static Class<? extends CopyDistributionRequest.Builder>
serializableBuilderClass()
Boolean
staging()
The type of distribution that your primary distribution will be copied to.CopyDistributionRequest.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
-
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
ETag
value returned in the response toGetDistribution
andGetDistributionConfig
.- Returns:
- The version identifier of the primary distribution whose configuration you are copying. This is the
ETag
value returned in the response toGetDistribution
andGetDistributionConfig
.
-
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:
toBuilder
in interfaceToCopyableBuilder<CopyDistributionRequest.Builder,CopyDistributionRequest>
- Specified by:
toBuilder
in classCloudFrontRequest
-
builder
public static CopyDistributionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CopyDistributionRequest.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
-
-