Class ContainerService
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContainerService.Builder,ContainerService>
Describes an Amazon Lightsail container service.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringarn()The Amazon Resource Name (ARN) of the container service.static ContainerService.Builderbuilder()final StringThe name of the container service.final InstantThe timestamp when the container service was created.An object that describes the current container deployment of the container service.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 inthashCode()final booleanFor responses, this returns true if the service returned a value for the PublicDomainNames property.final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final BooleanA Boolean value indicating whether the container service is disabled.final ResourceLocationlocation()An object that describes the location of the container service, such as the Amazon Web Services Region and Availability Zone.An object that describes the next deployment of the container service.power()The power specification of the container service.final StringThe power specification of the container service.final StringpowerId()The ID of the power of the container service.final StringThe principal ARN of the container service.final StringThe private domain name of the container service.final PrivateRegistryAccessAn object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.The public domain name of the container service, such asexample.comandwww.example.com.final ResourceTypeThe Lightsail resource type of the container service.final StringThe Lightsail resource type of the container service.final Integerscale()The scale specification of the container service.static Class<? extends ContainerService.Builder> final ContainerServiceStatestate()The current state of the container service.final StringThe current state of the container service.An object that describes the current state of the container service.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 Stringurl()The publicly accessible URL of the container service.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
containerServiceName
The name of the container service.
- Returns:
- The name of the container service.
-
arn
The Amazon Resource Name (ARN) of the container service.
- Returns:
- The Amazon Resource Name (ARN) of the container service.
-
createdAt
The timestamp when the container service was created.
- Returns:
- The timestamp when the container service was created.
-
location
An object that describes the location of the container service, such as the Amazon Web Services Region and Availability Zone.
- Returns:
- An object that describes the location of the container service, such as the Amazon Web Services Region and Availability Zone.
-
resourceType
The Lightsail resource type of the container service.
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 of the container service.
- See Also:
-
resourceTypeAsString
The Lightsail resource type of the container service.
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 of the container service.
- See Also:
-
hasTags
public 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. -
tags
The 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.
-
power
The power specification of the container service.
The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
If the service returns an enum value that is not available in the current SDK version,
powerwill returnContainerServicePowerName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompowerAsString().- Returns:
- The power specification of the container service.
The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
- See Also:
-
powerAsString
The power specification of the container service.
The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
If the service returns an enum value that is not available in the current SDK version,
powerwill returnContainerServicePowerName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompowerAsString().- Returns:
- The power specification of the container service.
The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
- See Also:
-
powerId
The ID of the power of the container service.
- Returns:
- The ID of the power of the container service.
-
state
The current state of the container service.
The following container service states are possible:
-
PENDING- The container service is being created. -
READY- The container service is running but it does not have an active container deployment. -
DEPLOYING- The container service is launching a container deployment. -
RUNNING- The container service is running and it has an active container deployment. -
UPDATING- The container service capacity or its custom domains are being updated. -
DELETING- The container service is being deleted. -
DISABLED- The container service is disabled, and its active deployment and containers, if any, are shut down.
If the service returns an enum value that is not available in the current SDK version,
statewill returnContainerServiceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the container service.
The following container service states are possible:
-
PENDING- The container service is being created. -
READY- The container service is running but it does not have an active container deployment. -
DEPLOYING- The container service is launching a container deployment. -
RUNNING- The container service is running and it has an active container deployment. -
UPDATING- The container service capacity or its custom domains are being updated. -
DELETING- The container service is being deleted. -
DISABLED- The container service is disabled, and its active deployment and containers, if any, are shut down.
-
- See Also:
-
-
stateAsString
The current state of the container service.
The following container service states are possible:
-
PENDING- The container service is being created. -
READY- The container service is running but it does not have an active container deployment. -
DEPLOYING- The container service is launching a container deployment. -
RUNNING- The container service is running and it has an active container deployment. -
UPDATING- The container service capacity or its custom domains are being updated. -
DELETING- The container service is being deleted. -
DISABLED- The container service is disabled, and its active deployment and containers, if any, are shut down.
If the service returns an enum value that is not available in the current SDK version,
statewill returnContainerServiceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the container service.
The following container service states are possible:
-
PENDING- The container service is being created. -
READY- The container service is running but it does not have an active container deployment. -
DEPLOYING- The container service is launching a container deployment. -
RUNNING- The container service is running and it has an active container deployment. -
UPDATING- The container service capacity or its custom domains are being updated. -
DELETING- The container service is being deleted. -
DISABLED- The container service is disabled, and its active deployment and containers, if any, are shut down.
-
- See Also:
-
-
stateDetail
An object that describes the current state of the container service.
The state detail is populated only when a container service is in a
PENDING,DEPLOYING, orUPDATINGstate.- Returns:
- An object that describes the current state of the container service.
The state detail is populated only when a container service is in a
PENDING,DEPLOYING, orUPDATINGstate.
-
scale
The scale specification of the container service.
The scale specifies the allocated compute nodes of the container service.
- Returns:
- The scale specification of the container service.
The scale specifies the allocated compute nodes of the container service.
-
currentDeployment
An object that describes the current container deployment of the container service.
- Returns:
- An object that describes the current container deployment of the container service.
-
nextDeployment
An object that describes the next deployment of the container service.
This value is
nullwhen there is no deployment in apendingstate.- Returns:
- An object that describes the next deployment of the container service.
This value is
nullwhen there is no deployment in apendingstate.
-
isDisabled
A Boolean value indicating whether the container service is disabled.
- Returns:
- A Boolean value indicating whether the container service is disabled.
-
principalArn
The principal ARN of the container service.
The principal ARN can be used to create a trust relationship between your standard Amazon Web Services account and your Lightsail container service. This allows you to give your service permission to access resources in your standard Amazon Web Services account.
- Returns:
- The principal ARN of the container service.
The principal ARN can be used to create a trust relationship between your standard Amazon Web Services account and your Lightsail container service. This allows you to give your service permission to access resources in your standard Amazon Web Services account.
-
privateDomainName
The private domain name of the container service.
The private domain name is accessible only by other resources within the default virtual private cloud (VPC) of your Lightsail account.
- Returns:
- The private domain name of the container service.
The private domain name is accessible only by other resources within the default virtual private cloud (VPC) of your Lightsail account.
-
hasPublicDomainNames
public final boolean hasPublicDomainNames()For responses, this returns true if the service returned a value for the PublicDomainNames 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. -
publicDomainNames
The public domain name of the container service, such as
example.comandwww.example.com.You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the
CreateCertificateaction to create a certificate for the public domain names you want to use with your container service.See
CreateContainerServiceorUpdateContainerServicefor information about how to specify public domain names for your Lightsail container service.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
hasPublicDomainNames()method.- Returns:
- The public domain name of the container service, such as
example.comandwww.example.com.You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the
CreateCertificateaction to create a certificate for the public domain names you want to use with your container service.See
CreateContainerServiceorUpdateContainerServicefor information about how to specify public domain names for your Lightsail container service.
-
url
The publicly accessible URL of the container service.
If no public endpoint is specified in the
currentDeployment, this URL returns a 404 response.- Returns:
- The publicly accessible URL of the container service.
If no public endpoint is specified in the
currentDeployment, this URL returns a 404 response.
-
privateRegistryAccess
An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.
- Returns:
- An object that describes the configuration for the container service to access private container image
repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ContainerService.Builder,ContainerService> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description 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 interfaceSdkPojo- 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
-