@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LightsailDistribution extends Object implements Serializable, Cloneable, StructuredPojo
Describes an Amazon Lightsail content delivery network (CDN) distribution.
Constructor and Description |
---|
LightsailDistribution() |
Modifier and Type | Method and Description |
---|---|
LightsailDistribution |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAbleToUpdateBundle()
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName parameter, can be changed to another bundle. |
List<String> |
getAlternativeDomainNames()
The alternate domain names of the distribution.
|
String |
getArn()
The Amazon Resource Name (ARN) of the distribution.
|
String |
getBundleId()
The ID of the bundle currently applied to the distribution.
|
List<CacheBehaviorPerPath> |
getCacheBehaviors()
An array of objects that describe the per-path cache behavior of the distribution.
|
CacheSettings |
getCacheBehaviorSettings()
An object that describes the cache behavior settings of the distribution.
|
String |
getCertificateName()
The name of the SSL/TLS certificate attached to the distribution, if any.
|
Date |
getCreatedAt()
The timestamp when the distribution was created.
|
CacheBehavior |
getDefaultCacheBehavior()
An object that describes the default cache behavior of the distribution.
|
String |
getDomainName()
The domain name of the distribution.
|
String |
getIpAddressType()
The IP address type of the distribution.
|
Boolean |
getIsEnabled()
Indicates whether the distribution is enabled.
|
ResourceLocation |
getLocation()
An object that describes the location of the distribution, such as the Amazon Web Services Region and
Availability Zone.
|
String |
getName()
The name of the distribution.
|
Origin |
getOrigin()
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load
balancer.
|
String |
getOriginPublicDNS()
The public DNS of the origin.
|
String |
getResourceType()
The Lightsail resource type (
Distribution ). |
String |
getStatus()
The status of the distribution.
|
String |
getSupportCode()
The support code.
|
List<Tag> |
getTags()
The tag keys and optional values for the resource.
|
String |
getViewerMinimumTlsProtocolVersion()
The minimum TLS protocol version that the distribution can use to communicate with viewers.
|
int |
hashCode() |
Boolean |
isAbleToUpdateBundle()
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName parameter, can be changed to another bundle. |
Boolean |
isEnabled()
Indicates whether the distribution is enabled.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAbleToUpdateBundle(Boolean ableToUpdateBundle)
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName parameter, can be changed to another bundle. |
void |
setAlternativeDomainNames(Collection<String> alternativeDomainNames)
The alternate domain names of the distribution.
|
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the distribution.
|
void |
setBundleId(String bundleId)
The ID of the bundle currently applied to the distribution.
|
void |
setCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
|
void |
setCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings of the distribution.
|
void |
setCertificateName(String certificateName)
The name of the SSL/TLS certificate attached to the distribution, if any.
|
void |
setCreatedAt(Date createdAt)
The timestamp when the distribution was created.
|
void |
setDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior of the distribution.
|
void |
setDomainName(String domainName)
The domain name of the distribution.
|
void |
setIpAddressType(String ipAddressType)
The IP address type of the distribution.
|
void |
setIsEnabled(Boolean isEnabled)
Indicates whether the distribution is enabled.
|
void |
setLocation(ResourceLocation location)
An object that describes the location of the distribution, such as the Amazon Web Services Region and
Availability Zone.
|
void |
setName(String name)
The name of the distribution.
|
void |
setOrigin(Origin origin)
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load
balancer.
|
void |
setOriginPublicDNS(String originPublicDNS)
The public DNS of the origin.
|
void |
setResourceType(String resourceType)
The Lightsail resource type (
Distribution ). |
void |
setStatus(String status)
The status of the distribution.
|
void |
setSupportCode(String supportCode)
The support code.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
void |
setViewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version that the distribution can use to communicate with viewers.
|
String |
toString()
Returns a string representation of this object.
|
LightsailDistribution |
withAbleToUpdateBundle(Boolean ableToUpdateBundle)
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName parameter, can be changed to another bundle. |
LightsailDistribution |
withAlternativeDomainNames(Collection<String> alternativeDomainNames)
The alternate domain names of the distribution.
|
LightsailDistribution |
withAlternativeDomainNames(String... alternativeDomainNames)
The alternate domain names of the distribution.
|
LightsailDistribution |
withArn(String arn)
The Amazon Resource Name (ARN) of the distribution.
|
LightsailDistribution |
withBundleId(String bundleId)
The ID of the bundle currently applied to the distribution.
|
LightsailDistribution |
withCacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
|
LightsailDistribution |
withCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
|
LightsailDistribution |
withCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings of the distribution.
|
LightsailDistribution |
withCertificateName(String certificateName)
The name of the SSL/TLS certificate attached to the distribution, if any.
|
LightsailDistribution |
withCreatedAt(Date createdAt)
The timestamp when the distribution was created.
|
LightsailDistribution |
withDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior of the distribution.
|
LightsailDistribution |
withDomainName(String domainName)
The domain name of the distribution.
|
LightsailDistribution |
withIpAddressType(IpAddressType ipAddressType)
The IP address type of the distribution.
|
LightsailDistribution |
withIpAddressType(String ipAddressType)
The IP address type of the distribution.
|
LightsailDistribution |
withIsEnabled(Boolean isEnabled)
Indicates whether the distribution is enabled.
|
LightsailDistribution |
withLocation(ResourceLocation location)
An object that describes the location of the distribution, such as the Amazon Web Services Region and
Availability Zone.
|
LightsailDistribution |
withName(String name)
The name of the distribution.
|
LightsailDistribution |
withOrigin(Origin origin)
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load
balancer.
|
LightsailDistribution |
withOriginPublicDNS(String originPublicDNS)
The public DNS of the origin.
|
LightsailDistribution |
withResourceType(ResourceType resourceType)
The Lightsail resource type (
Distribution ). |
LightsailDistribution |
withResourceType(String resourceType)
The Lightsail resource type (
Distribution ). |
LightsailDistribution |
withStatus(String status)
The status of the distribution.
|
LightsailDistribution |
withSupportCode(String supportCode)
The support code.
|
LightsailDistribution |
withTags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
LightsailDistribution |
withTags(Tag... tags)
The tag keys and optional values for the resource.
|
LightsailDistribution |
withViewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version that the distribution can use to communicate with viewers.
|
public void setName(String name)
The name of the distribution.
name
- The name of the distribution.public String getName()
The name of the distribution.
public LightsailDistribution withName(String name)
The name of the distribution.
name
- The name of the distribution.public void setArn(String arn)
The Amazon Resource Name (ARN) of the distribution.
arn
- The Amazon Resource Name (ARN) of the distribution.public String getArn()
The Amazon Resource Name (ARN) of the distribution.
public LightsailDistribution withArn(String arn)
The Amazon Resource Name (ARN) of the distribution.
arn
- The Amazon Resource Name (ARN) of the distribution.public void setSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about your Lightsail
distribution. This code enables our support team to look up your Lightsail information more easily.public String getSupportCode()
The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.
public LightsailDistribution withSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about your Lightsail
distribution. This code enables our support team to look up your Lightsail information more easily.public void setCreatedAt(Date createdAt)
The timestamp when the distribution was created.
createdAt
- The timestamp when the distribution was created.public Date getCreatedAt()
The timestamp when the distribution was created.
public LightsailDistribution withCreatedAt(Date createdAt)
The timestamp when the distribution was created.
createdAt
- The timestamp when the distribution was created.public void setLocation(ResourceLocation location)
An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and
distribute its content globally. However, all distributions are located in the us-east-1
Region.
location
- An object that describes the location of the distribution, such as the Amazon Web Services Region and
Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services
Region, and distribute its content globally. However, all distributions are located in the
us-east-1
Region.
public ResourceLocation getLocation()
An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and
distribute its content globally. However, all distributions are located in the us-east-1
Region.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services
Region, and distribute its content globally. However, all distributions are located in the
us-east-1
Region.
public LightsailDistribution withLocation(ResourceLocation location)
An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and
distribute its content globally. However, all distributions are located in the us-east-1
Region.
location
- An object that describes the location of the distribution, such as the Amazon Web Services Region and
Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services
Region, and distribute its content globally. However, all distributions are located in the
us-east-1
Region.
public void setResourceType(String resourceType)
The Lightsail resource type (Distribution
).
resourceType
- The Lightsail resource type (Distribution
).ResourceType
public String getResourceType()
The Lightsail resource type (Distribution
).
Distribution
).ResourceType
public LightsailDistribution withResourceType(String resourceType)
The Lightsail resource type (Distribution
).
resourceType
- The Lightsail resource type (Distribution
).ResourceType
public LightsailDistribution withResourceType(ResourceType resourceType)
The Lightsail resource type (Distribution
).
resourceType
- The Lightsail resource type (Distribution
).ResourceType
public List<String> getAlternativeDomainNames()
The alternate domain names of the distribution.
public void setAlternativeDomainNames(Collection<String> alternativeDomainNames)
The alternate domain names of the distribution.
alternativeDomainNames
- The alternate domain names of the distribution.public LightsailDistribution withAlternativeDomainNames(String... alternativeDomainNames)
The alternate domain names of the distribution.
NOTE: This method appends the values to the existing list (if any). Use
setAlternativeDomainNames(java.util.Collection)
or
withAlternativeDomainNames(java.util.Collection)
if you want to override the existing values.
alternativeDomainNames
- The alternate domain names of the distribution.public LightsailDistribution withAlternativeDomainNames(Collection<String> alternativeDomainNames)
The alternate domain names of the distribution.
alternativeDomainNames
- The alternate domain names of the distribution.public void setStatus(String status)
The status of the distribution.
status
- The status of the distribution.public String getStatus()
The status of the distribution.
public LightsailDistribution withStatus(String status)
The status of the distribution.
status
- The status of the distribution.public void setIsEnabled(Boolean isEnabled)
Indicates whether the distribution is enabled.
isEnabled
- Indicates whether the distribution is enabled.public Boolean getIsEnabled()
Indicates whether the distribution is enabled.
public LightsailDistribution withIsEnabled(Boolean isEnabled)
Indicates whether the distribution is enabled.
isEnabled
- Indicates whether the distribution is enabled.public Boolean isEnabled()
Indicates whether the distribution is enabled.
public void setDomainName(String domainName)
The domain name of the distribution.
domainName
- The domain name of the distribution.public String getDomainName()
The domain name of the distribution.
public LightsailDistribution withDomainName(String domainName)
The domain name of the distribution.
domainName
- The domain name of the distribution.public void setBundleId(String bundleId)
The ID of the bundle currently applied to the distribution.
bundleId
- The ID of the bundle currently applied to the distribution.public String getBundleId()
The ID of the bundle currently applied to the distribution.
public LightsailDistribution withBundleId(String bundleId)
The ID of the bundle currently applied to the distribution.
bundleId
- The ID of the bundle currently applied to the distribution.public void setCertificateName(String certificateName)
The name of the SSL/TLS certificate attached to the distribution, if any.
certificateName
- The name of the SSL/TLS certificate attached to the distribution, if any.public String getCertificateName()
The name of the SSL/TLS certificate attached to the distribution, if any.
public LightsailDistribution withCertificateName(String certificateName)
The name of the SSL/TLS certificate attached to the distribution, if any.
certificateName
- The name of the SSL/TLS certificate attached to the distribution, if any.public void setOrigin(Origin origin)
An object that describes the origin resource of 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 of the distribution, such as a Lightsail instance, bucket, or
load balancer.
The distribution pulls, caches, and serves content from the origin.
public Origin getOrigin()
An object that describes the origin resource of 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 LightsailDistribution withOrigin(Origin origin)
An object that describes the origin resource of 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 of the distribution, such as a Lightsail instance, bucket, or
load balancer.
The distribution pulls, caches, and serves content from the origin.
public void setOriginPublicDNS(String originPublicDNS)
The public DNS of the origin.
originPublicDNS
- The public DNS of the origin.public String getOriginPublicDNS()
The public DNS of the origin.
public LightsailDistribution withOriginPublicDNS(String originPublicDNS)
The public DNS of the origin.
originPublicDNS
- The public DNS of the origin.public void setDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior of the distribution.
defaultCacheBehavior
- An object that describes the default cache behavior of the distribution.public CacheBehavior getDefaultCacheBehavior()
An object that describes the default cache behavior of the distribution.
public LightsailDistribution withDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior of the distribution.
defaultCacheBehavior
- An object that describes the default cache behavior of the distribution.public void setCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings of the distribution.
cacheBehaviorSettings
- An object that describes the cache behavior settings of the distribution.public CacheSettings getCacheBehaviorSettings()
An object that describes the cache behavior settings of the distribution.
public LightsailDistribution withCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings of the distribution.
cacheBehaviorSettings
- An object that describes the cache behavior settings of the distribution.public List<CacheBehaviorPerPath> getCacheBehaviors()
An array of objects that describe the per-path cache behavior of the distribution.
public void setCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
cacheBehaviors
- An array of objects that describe the per-path cache behavior of the distribution.public LightsailDistribution withCacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)
An array of objects that describe the per-path cache behavior of 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 of the distribution.public LightsailDistribution withCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
cacheBehaviors
- An array of objects that describe the per-path cache behavior of the distribution.public void setAbleToUpdateBundle(Boolean ableToUpdateBundle)
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
ableToUpdateBundle
- Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
public Boolean getAbleToUpdateBundle()
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
public LightsailDistribution withAbleToUpdateBundle(Boolean ableToUpdateBundle)
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
ableToUpdateBundle
- Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
public Boolean isAbleToUpdateBundle()
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
public void setIpAddressType(String ipAddressType)
The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
ipAddressType
- The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
IpAddressType
public String getIpAddressType()
The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
IpAddressType
public LightsailDistribution withIpAddressType(String ipAddressType)
The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
ipAddressType
- The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
IpAddressType
public LightsailDistribution withIpAddressType(IpAddressType ipAddressType)
The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
ipAddressType
- The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
IpAddressType
public List<Tag> getTags()
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
public void setTags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the
Amazon Lightsail
Developer Guide.public LightsailDistribution withTags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
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 for the resource. For more information about tags in Lightsail, see the
Amazon Lightsail
Developer Guide.public LightsailDistribution withTags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the
Amazon Lightsail
Developer Guide.public void setViewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version that the distribution can use to communicate with viewers.
viewerMinimumTlsProtocolVersion
- The minimum TLS protocol version that the distribution can use to communicate with viewers.public String getViewerMinimumTlsProtocolVersion()
The minimum TLS protocol version that the distribution can use to communicate with viewers.
public LightsailDistribution withViewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion)
The minimum TLS protocol version that the distribution can use to communicate with viewers.
viewerMinimumTlsProtocolVersion
- The minimum TLS protocol version that the distribution can use to communicate with viewers.public String toString()
toString
in class Object
Object.toString()
public LightsailDistribution clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.