Class LightsailDistribution
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<LightsailDistribution.Builder,- LightsailDistribution> 
Describes an Amazon Lightsail content delivery network (CDN) distribution.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal BooleanIndicates whether the bundle that is currently applied to your distribution, specified using thedistributionNameparameter, can be changed to another bundle.The alternate domain names of the distribution.final Stringarn()The Amazon Resource Name (ARN) of the distribution.builder()final StringbundleId()The ID of the bundle currently applied to the distribution.final List<CacheBehaviorPerPath> An array of objects that describe the per-path cache behavior of the distribution.final CacheSettingsAn object that describes the cache behavior settings of the distribution.final StringThe name of the SSL/TLS certificate attached to the distribution, if any.final InstantThe timestamp when the distribution was created.final CacheBehaviorAn object that describes the default cache behavior of the distribution.final StringThe domain name of the distribution.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AlternativeDomainNames property.final booleanFor responses, this returns true if the service returned a value for the CacheBehaviors property.final inthashCode()final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final IpAddressTypeThe IP address type of the distribution.final StringThe IP address type of the distribution.final BooleanIndicates whether the distribution is enabled.final ResourceLocationlocation()An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.final Stringname()The name of the distribution.final Originorigin()An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.final StringThe public DNS of the origin.final ResourceTypeThe Lightsail resource type (Distribution).final StringThe Lightsail resource type (Distribution).static Class<? extends LightsailDistribution.Builder> final Stringstatus()The status of the distribution.final StringThe support code.tags()The tag keys and optional values for the resource.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe minimum TLS protocol version that the distribution can use to communicate with viewers.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
name
- 
arnThe Amazon Resource Name (ARN) of the distribution. - Returns:
- The Amazon Resource Name (ARN) of the distribution.
 
- 
supportCodeThe 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. - Returns:
- 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.
 
- 
createdAtThe timestamp when the distribution was created. - Returns:
- The timestamp when the distribution was created.
 
- 
locationAn 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-1Region.- Returns:
- 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-1Region.
 
- 
resourceTypeThe Lightsail resource type ( Distribution).If the service returns an enum value that is not available in the current SDK version, resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The Lightsail resource type (Distribution).
- See Also:
 
- 
resourceTypeAsStringThe Lightsail resource type ( Distribution).If the service returns an enum value that is not available in the current SDK version, resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The Lightsail resource type (Distribution).
- See Also:
 
- 
hasAlternativeDomainNamespublic final boolean hasAlternativeDomainNames()For responses, this returns true if the service returned a value for the AlternativeDomainNames property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
alternativeDomainNamesThe alternate domain names of the distribution. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasAlternativeDomainNames()method.- Returns:
- The alternate domain names of the distribution.
 
- 
statusThe status of the distribution. - Returns:
- The status of the distribution.
 
- 
isEnabledIndicates whether the distribution is enabled. - Returns:
- Indicates whether the distribution is enabled.
 
- 
domainNameThe domain name of the distribution. - Returns:
- The domain name of the distribution.
 
- 
bundleIdThe ID of the bundle currently applied to the distribution. - Returns:
- The ID of the bundle currently applied to the distribution.
 
- 
certificateNameThe name of the SSL/TLS certificate attached to the distribution, if any. - Returns:
- The name of the SSL/TLS certificate attached to the distribution, if any.
 
- 
originAn 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. - Returns:
- 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. 
 
- 
originPublicDNSThe public DNS of the origin. - Returns:
- The public DNS of the origin.
 
- 
defaultCacheBehaviorAn object that describes the default cache behavior of the distribution. - Returns:
- An object that describes the default cache behavior of the distribution.
 
- 
cacheBehaviorSettingsAn object that describes the cache behavior settings of the distribution. - Returns:
- An object that describes the cache behavior settings of the distribution.
 
- 
hasCacheBehaviorspublic final boolean hasCacheBehaviors()For responses, this returns true if the service returned a value for the CacheBehaviors property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
cacheBehaviorsAn array of objects that describe the per-path cache behavior of the distribution. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasCacheBehaviors()method.- Returns:
- An array of objects that describe the per-path cache behavior of the distribution.
 
- 
ableToUpdateBundleIndicates whether the bundle that is currently applied to your distribution, specified using the distributionNameparameter, can be changed to another bundle.Use the UpdateDistributionBundleaction to change your distribution's bundle.- Returns:
- Indicates whether the bundle that is currently applied to your distribution, specified using the
         distributionNameparameter, can be changed to another bundle.Use the UpdateDistributionBundleaction to change your distribution's bundle.
 
- 
ipAddressTypeThe IP address type of the distribution. The possible values are ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.If the service returns an enum value that is not available in the current SDK version, ipAddressTypewill returnIpAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromipAddressTypeAsString().- Returns:
- The IP address type of the distribution.
         The possible values are ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.
- See Also:
 
- 
ipAddressTypeAsStringThe IP address type of the distribution. The possible values are ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.If the service returns an enum value that is not available in the current SDK version, ipAddressTypewill returnIpAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromipAddressTypeAsString().- Returns:
- The IP address type of the distribution.
         The possible values are ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.
- See Also:
 
- 
hasTagspublic final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
tagsThe tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTags()method.- Returns:
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
 
- 
viewerMinimumTlsProtocolVersionThe minimum TLS protocol version that the distribution can use to communicate with viewers. - Returns:
- The minimum TLS protocol version that the distribution can use to communicate with viewers.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<LightsailDistribution.Builder,- LightsailDistribution> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-