@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDistributionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateDistributionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDistributionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBundleId()
The bundle ID to use for the distribution.
|
List<CacheBehaviorPerPath> |
getCacheBehaviors()
An array of objects that describe the per-path cache behavior for the distribution.
|
CacheSettings |
getCacheBehaviorSettings()
An object that describes the cache behavior settings for the distribution.
|
String |
getCertificateName()
The name of the SSL/TLS certificate that you want to attach to the distribution.
|
CacheBehavior |
getDefaultCacheBehavior()
An object that describes the default cache behavior for the distribution.
|
String |
getDistributionName()
The name for the distribution.
|
String |
getIpAddressType()
The IP address type for the distribution.
|
InputOrigin |
getOrigin()
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load
balancer.
|
List<Tag> |
getTags()
The tag keys and optional values to add to the distribution during create.
|
String |
getViewerMinimumTlsProtocolVersion()
The minimum TLS protocol version for the SSL/TLS certificate.
|
int |
hashCode() |
void |
setBundleId(String bundleId)
The bundle ID to use for the distribution.
|
void |
setCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
|
void |
setCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings for the distribution.
|
void |
setCertificateName(String certificateName)
The name of the SSL/TLS certificate that you want to attach to the distribution.
|
void |
setDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior for the distribution.
|
void |
setDistributionName(String distributionName)
The name for the distribution.
|
void |
setIpAddressType(String ipAddressType)
The IP address type for the distribution.
|
void |
setOrigin(InputOrigin origin)
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load
balancer.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values to add to the distribution during create.
|
void |
setViewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version for the SSL/TLS certificate.
|
String |
toString()
Returns a string representation of this object.
|
CreateDistributionRequest |
withBundleId(String bundleId)
The bundle ID to use for the distribution.
|
CreateDistributionRequest |
withCacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
|
CreateDistributionRequest |
withCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
|
CreateDistributionRequest |
withCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings for the distribution.
|
CreateDistributionRequest |
withCertificateName(String certificateName)
The name of the SSL/TLS certificate that you want to attach to the distribution.
|
CreateDistributionRequest |
withDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior for the distribution.
|
CreateDistributionRequest |
withDistributionName(String distributionName)
The name for the distribution.
|
CreateDistributionRequest |
withIpAddressType(IpAddressType ipAddressType)
The IP address type for the distribution.
|
CreateDistributionRequest |
withIpAddressType(String ipAddressType)
The IP address type for the distribution.
|
CreateDistributionRequest |
withOrigin(InputOrigin origin)
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load
balancer.
|
CreateDistributionRequest |
withTags(Collection<Tag> tags)
The tag keys and optional values to add to the distribution during create.
|
CreateDistributionRequest |
withTags(Tag... tags)
The tag keys and optional values to add to the distribution during create.
|
CreateDistributionRequest |
withViewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version for the SSL/TLS certificate.
|
CreateDistributionRequest |
withViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version for the SSL/TLS certificate.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDistributionName(String distributionName)
The name for the distribution.
distributionName
- The name for the distribution.public String getDistributionName()
The name for the distribution.
public CreateDistributionRequest withDistributionName(String distributionName)
The name for the distribution.
distributionName
- The name for the distribution.public void setOrigin(InputOrigin origin)
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
origin
- An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket,
or load balancer.
The distribution pulls, caches, and serves content from the origin.
public InputOrigin getOrigin()
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
The distribution pulls, caches, and serves content from the origin.
public CreateDistributionRequest withOrigin(InputOrigin origin)
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
origin
- An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket,
or load balancer.
The distribution pulls, caches, and serves content from the origin.
public void setDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior for the distribution.
defaultCacheBehavior
- An object that describes the default cache behavior for the distribution.public CacheBehavior getDefaultCacheBehavior()
An object that describes the default cache behavior for the distribution.
public CreateDistributionRequest withDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior for the distribution.
defaultCacheBehavior
- An object that describes the default cache behavior for the distribution.public void setCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings for the distribution.
cacheBehaviorSettings
- An object that describes the cache behavior settings for the distribution.public CacheSettings getCacheBehaviorSettings()
An object that describes the cache behavior settings for the distribution.
public CreateDistributionRequest withCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings for the distribution.
cacheBehaviorSettings
- An object that describes the cache behavior settings for the distribution.public List<CacheBehaviorPerPath> getCacheBehaviors()
An array of objects that describe the per-path cache behavior for the distribution.
public void setCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
cacheBehaviors
- An array of objects that describe the per-path cache behavior for the distribution.public CreateDistributionRequest withCacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
NOTE: This method appends the values to the existing list (if any). Use
setCacheBehaviors(java.util.Collection)
or withCacheBehaviors(java.util.Collection)
if you want
to override the existing values.
cacheBehaviors
- An array of objects that describe the per-path cache behavior for the distribution.public CreateDistributionRequest withCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
cacheBehaviors
- An array of objects that describe the per-path cache behavior for the distribution.public void setBundleId(String bundleId)
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can specify.
bundleId
- The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can
specify.
public String getBundleId()
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can specify.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can
specify.
public CreateDistributionRequest withBundleId(String bundleId)
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can specify.
bundleId
- The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can
specify.
public void setIpAddressType(String ipAddressType)
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
ipAddressType
- The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
IpAddressType
public String getIpAddressType()
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
IpAddressType
public CreateDistributionRequest withIpAddressType(String ipAddressType)
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
ipAddressType
- The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
IpAddressType
public CreateDistributionRequest withIpAddressType(IpAddressType ipAddressType)
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
ipAddressType
- The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
IpAddressType
public List<Tag> getTags()
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
Use the TagResource
action to tag a resource after it's created.
public void setTags(Collection<Tag> tags)
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
public CreateDistributionRequest withTags(Tag... tags)
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
public CreateDistributionRequest withTags(Collection<Tag> tags)
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
public void setCertificateName(String certificateName)
The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
certificateName
- The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
public String getCertificateName()
The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
Use the GetCertificates action to get a list of certificate names that you can specify.
public CreateDistributionRequest withCertificateName(String certificateName)
The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
certificateName
- The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
public void setViewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version for the SSL/TLS certificate.
viewerMinimumTlsProtocolVersion
- The minimum TLS protocol version for the SSL/TLS certificate.ViewerMinimumTlsProtocolVersionEnum
public String getViewerMinimumTlsProtocolVersion()
The minimum TLS protocol version for the SSL/TLS certificate.
ViewerMinimumTlsProtocolVersionEnum
public CreateDistributionRequest withViewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version for the SSL/TLS certificate.
viewerMinimumTlsProtocolVersion
- The minimum TLS protocol version for the SSL/TLS certificate.ViewerMinimumTlsProtocolVersionEnum
public CreateDistributionRequest withViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version for the SSL/TLS certificate.
viewerMinimumTlsProtocolVersion
- The minimum TLS protocol version for the SSL/TLS certificate.ViewerMinimumTlsProtocolVersionEnum
public String toString()
toString
in class Object
Object.toString()
public CreateDistributionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()