@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoScalingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Describes an App Runner automatic scaling configuration resource.
A higher MinSize
increases the spread of your App Runner service over more Availability Zones in the
Amazon Web Services Region. The tradeoff is a higher minimal cost.
A lower MaxSize
controls your cost. The tradeoff is lower responsiveness during peak demand.
Multiple revisions of a configuration might have the same AutoScalingConfigurationName
and different
AutoScalingConfigurationRevision
values.
Constructor and Description |
---|
AutoScalingConfiguration() |
Modifier and Type | Method and Description |
---|---|
AutoScalingConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getAutoScalingConfigurationArn()
The Amazon Resource Name (ARN) of this auto scaling configuration.
|
String |
getAutoScalingConfigurationName()
The customer-provided auto scaling configuration name.
|
Integer |
getAutoScalingConfigurationRevision()
The revision of this auto scaling configuration.
|
Date |
getCreatedAt()
The time when the auto scaling configuration was created.
|
Date |
getDeletedAt()
The time when the auto scaling configuration was deleted.
|
Boolean |
getHasAssociatedService()
Indicates if this auto scaling configuration has an App Runner service associated with it.
|
Boolean |
getIsDefault()
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does
not have an auto scaling configuration ARN specified during creation.
|
Boolean |
getLatest()
It's set to
true for the configuration with the highest Revision among all
configurations that share the same AutoScalingConfigurationName . |
Integer |
getMaxConcurrency()
The maximum number of concurrent requests that an instance processes.
|
Integer |
getMaxSize()
The maximum number of instances that a service scales up to.
|
Integer |
getMinSize()
The minimum number of instances that App Runner provisions for a service.
|
String |
getStatus()
The current state of the auto scaling configuration.
|
int |
hashCode() |
Boolean |
isDefault()
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does
not have an auto scaling configuration ARN specified during creation.
|
Boolean |
isHasAssociatedService()
Indicates if this auto scaling configuration has an App Runner service associated with it.
|
Boolean |
isLatest()
It's set to
true for the configuration with the highest Revision among all
configurations that share the same AutoScalingConfigurationName . |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutoScalingConfigurationArn(String autoScalingConfigurationArn)
The Amazon Resource Name (ARN) of this auto scaling configuration.
|
void |
setAutoScalingConfigurationName(String autoScalingConfigurationName)
The customer-provided auto scaling configuration name.
|
void |
setAutoScalingConfigurationRevision(Integer autoScalingConfigurationRevision)
The revision of this auto scaling configuration.
|
void |
setCreatedAt(Date createdAt)
The time when the auto scaling configuration was created.
|
void |
setDeletedAt(Date deletedAt)
The time when the auto scaling configuration was deleted.
|
void |
setHasAssociatedService(Boolean hasAssociatedService)
Indicates if this auto scaling configuration has an App Runner service associated with it.
|
void |
setIsDefault(Boolean isDefault)
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does
not have an auto scaling configuration ARN specified during creation.
|
void |
setLatest(Boolean latest)
It's set to
true for the configuration with the highest Revision among all
configurations that share the same AutoScalingConfigurationName . |
void |
setMaxConcurrency(Integer maxConcurrency)
The maximum number of concurrent requests that an instance processes.
|
void |
setMaxSize(Integer maxSize)
The maximum number of instances that a service scales up to.
|
void |
setMinSize(Integer minSize)
The minimum number of instances that App Runner provisions for a service.
|
void |
setStatus(String status)
The current state of the auto scaling configuration.
|
String |
toString()
Returns a string representation of this object.
|
AutoScalingConfiguration |
withAutoScalingConfigurationArn(String autoScalingConfigurationArn)
The Amazon Resource Name (ARN) of this auto scaling configuration.
|
AutoScalingConfiguration |
withAutoScalingConfigurationName(String autoScalingConfigurationName)
The customer-provided auto scaling configuration name.
|
AutoScalingConfiguration |
withAutoScalingConfigurationRevision(Integer autoScalingConfigurationRevision)
The revision of this auto scaling configuration.
|
AutoScalingConfiguration |
withCreatedAt(Date createdAt)
The time when the auto scaling configuration was created.
|
AutoScalingConfiguration |
withDeletedAt(Date deletedAt)
The time when the auto scaling configuration was deleted.
|
AutoScalingConfiguration |
withHasAssociatedService(Boolean hasAssociatedService)
Indicates if this auto scaling configuration has an App Runner service associated with it.
|
AutoScalingConfiguration |
withIsDefault(Boolean isDefault)
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does
not have an auto scaling configuration ARN specified during creation.
|
AutoScalingConfiguration |
withLatest(Boolean latest)
It's set to
true for the configuration with the highest Revision among all
configurations that share the same AutoScalingConfigurationName . |
AutoScalingConfiguration |
withMaxConcurrency(Integer maxConcurrency)
The maximum number of concurrent requests that an instance processes.
|
AutoScalingConfiguration |
withMaxSize(Integer maxSize)
The maximum number of instances that a service scales up to.
|
AutoScalingConfiguration |
withMinSize(Integer minSize)
The minimum number of instances that App Runner provisions for a service.
|
AutoScalingConfiguration |
withStatus(AutoScalingConfigurationStatus status)
The current state of the auto scaling configuration.
|
AutoScalingConfiguration |
withStatus(String status)
The current state of the auto scaling configuration.
|
public void setAutoScalingConfigurationArn(String autoScalingConfigurationArn)
The Amazon Resource Name (ARN) of this auto scaling configuration.
autoScalingConfigurationArn
- The Amazon Resource Name (ARN) of this auto scaling configuration.public String getAutoScalingConfigurationArn()
The Amazon Resource Name (ARN) of this auto scaling configuration.
public AutoScalingConfiguration withAutoScalingConfigurationArn(String autoScalingConfigurationArn)
The Amazon Resource Name (ARN) of this auto scaling configuration.
autoScalingConfigurationArn
- The Amazon Resource Name (ARN) of this auto scaling configuration.public void setAutoScalingConfigurationName(String autoScalingConfigurationName)
The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.
autoScalingConfigurationName
- The customer-provided auto scaling configuration name. It can be used in multiple revisions of a
configuration.public String getAutoScalingConfigurationName()
The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.
public AutoScalingConfiguration withAutoScalingConfigurationName(String autoScalingConfigurationName)
The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.
autoScalingConfigurationName
- The customer-provided auto scaling configuration name. It can be used in multiple revisions of a
configuration.public void setAutoScalingConfigurationRevision(Integer autoScalingConfigurationRevision)
The revision of this auto scaling configuration. It's unique among all the active configurations (
"Status": "ACTIVE"
) that share the same AutoScalingConfigurationName
.
autoScalingConfigurationRevision
- The revision of this auto scaling configuration. It's unique among all the active configurations (
"Status": "ACTIVE"
) that share the same AutoScalingConfigurationName
.public Integer getAutoScalingConfigurationRevision()
The revision of this auto scaling configuration. It's unique among all the active configurations (
"Status": "ACTIVE"
) that share the same AutoScalingConfigurationName
.
"Status": "ACTIVE"
) that share the same AutoScalingConfigurationName
.public AutoScalingConfiguration withAutoScalingConfigurationRevision(Integer autoScalingConfigurationRevision)
The revision of this auto scaling configuration. It's unique among all the active configurations (
"Status": "ACTIVE"
) that share the same AutoScalingConfigurationName
.
autoScalingConfigurationRevision
- The revision of this auto scaling configuration. It's unique among all the active configurations (
"Status": "ACTIVE"
) that share the same AutoScalingConfigurationName
.public void setLatest(Boolean latest)
It's set to true
for the configuration with the highest Revision
among all
configurations that share the same AutoScalingConfigurationName
. It's set to false
otherwise.
latest
- It's set to true
for the configuration with the highest Revision
among all
configurations that share the same AutoScalingConfigurationName
. It's set to
false
otherwise.public Boolean getLatest()
It's set to true
for the configuration with the highest Revision
among all
configurations that share the same AutoScalingConfigurationName
. It's set to false
otherwise.
true
for the configuration with the highest Revision
among all
configurations that share the same AutoScalingConfigurationName
. It's set to
false
otherwise.public AutoScalingConfiguration withLatest(Boolean latest)
It's set to true
for the configuration with the highest Revision
among all
configurations that share the same AutoScalingConfigurationName
. It's set to false
otherwise.
latest
- It's set to true
for the configuration with the highest Revision
among all
configurations that share the same AutoScalingConfigurationName
. It's set to
false
otherwise.public Boolean isLatest()
It's set to true
for the configuration with the highest Revision
among all
configurations that share the same AutoScalingConfigurationName
. It's set to false
otherwise.
true
for the configuration with the highest Revision
among all
configurations that share the same AutoScalingConfigurationName
. It's set to
false
otherwise.public void setStatus(String status)
The current state of the auto scaling configuration. If the status of a configuration revision is
INACTIVE
, it was deleted and can't be used. Inactive configuration revisions are permanently removed
some time after they are deleted.
status
- The current state of the auto scaling configuration. If the status of a configuration revision is
INACTIVE
, it was deleted and can't be used. Inactive configuration revisions are permanently
removed some time after they are deleted.AutoScalingConfigurationStatus
public String getStatus()
The current state of the auto scaling configuration. If the status of a configuration revision is
INACTIVE
, it was deleted and can't be used. Inactive configuration revisions are permanently removed
some time after they are deleted.
INACTIVE
, it was deleted and can't be used. Inactive configuration revisions are permanently
removed some time after they are deleted.AutoScalingConfigurationStatus
public AutoScalingConfiguration withStatus(String status)
The current state of the auto scaling configuration. If the status of a configuration revision is
INACTIVE
, it was deleted and can't be used. Inactive configuration revisions are permanently removed
some time after they are deleted.
status
- The current state of the auto scaling configuration. If the status of a configuration revision is
INACTIVE
, it was deleted and can't be used. Inactive configuration revisions are permanently
removed some time after they are deleted.AutoScalingConfigurationStatus
public AutoScalingConfiguration withStatus(AutoScalingConfigurationStatus status)
The current state of the auto scaling configuration. If the status of a configuration revision is
INACTIVE
, it was deleted and can't be used. Inactive configuration revisions are permanently removed
some time after they are deleted.
status
- The current state of the auto scaling configuration. If the status of a configuration revision is
INACTIVE
, it was deleted and can't be used. Inactive configuration revisions are permanently
removed some time after they are deleted.AutoScalingConfigurationStatus
public void setMaxConcurrency(Integer maxConcurrency)
The maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service up.
maxConcurrency
- The maximum number of concurrent requests that an instance processes. If the number of concurrent requests
exceeds this limit, App Runner scales the service up.public Integer getMaxConcurrency()
The maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service up.
public AutoScalingConfiguration withMaxConcurrency(Integer maxConcurrency)
The maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service up.
maxConcurrency
- The maximum number of concurrent requests that an instance processes. If the number of concurrent requests
exceeds this limit, App Runner scales the service up.public void setMinSize(Integer minSize)
The minimum number of instances that App Runner provisions for a service. The service always has at least
MinSize
provisioned instances. Some of them actively serve traffic. The rest of them (provisioned
and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You
pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.
App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
minSize
- The minimum number of instances that App Runner provisions for a service. The service always has at least
MinSize
provisioned instances. Some of them actively serve traffic. The rest of them
(provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be
quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of
only the active subset.
App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
public Integer getMinSize()
The minimum number of instances that App Runner provisions for a service. The service always has at least
MinSize
provisioned instances. Some of them actively serve traffic. The rest of them (provisioned
and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You
pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.
App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
MinSize
provisioned instances. Some of them actively serve traffic. The rest of them
(provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be
quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of
only the active subset.
App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
public AutoScalingConfiguration withMinSize(Integer minSize)
The minimum number of instances that App Runner provisions for a service. The service always has at least
MinSize
provisioned instances. Some of them actively serve traffic. The rest of them (provisioned
and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You
pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.
App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
minSize
- The minimum number of instances that App Runner provisions for a service. The service always has at least
MinSize
provisioned instances. Some of them actively serve traffic. The rest of them
(provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be
quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of
only the active subset.
App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
public void setMaxSize(Integer maxSize)
The maximum number of instances that a service scales up to. At most MaxSize
instances actively
serve traffic for your service.
maxSize
- The maximum number of instances that a service scales up to. At most MaxSize
instances
actively serve traffic for your service.public Integer getMaxSize()
The maximum number of instances that a service scales up to. At most MaxSize
instances actively
serve traffic for your service.
MaxSize
instances
actively serve traffic for your service.public AutoScalingConfiguration withMaxSize(Integer maxSize)
The maximum number of instances that a service scales up to. At most MaxSize
instances actively
serve traffic for your service.
maxSize
- The maximum number of instances that a service scales up to. At most MaxSize
instances
actively serve traffic for your service.public void setCreatedAt(Date createdAt)
The time when the auto scaling configuration was created. It's in Unix time stamp format.
createdAt
- The time when the auto scaling configuration was created. It's in Unix time stamp format.public Date getCreatedAt()
The time when the auto scaling configuration was created. It's in Unix time stamp format.
public AutoScalingConfiguration withCreatedAt(Date createdAt)
The time when the auto scaling configuration was created. It's in Unix time stamp format.
createdAt
- The time when the auto scaling configuration was created. It's in Unix time stamp format.public void setDeletedAt(Date deletedAt)
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
deletedAt
- The time when the auto scaling configuration was deleted. It's in Unix time stamp format.public Date getDeletedAt()
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
public AutoScalingConfiguration withDeletedAt(Date deletedAt)
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
deletedAt
- The time when the auto scaling configuration was deleted. It's in Unix time stamp format.public void setHasAssociatedService(Boolean hasAssociatedService)
Indicates if this auto scaling configuration has an App Runner service associated with it. A value of
true
indicates one or more services are associated. A value of false
indicates no
services are associated.
hasAssociatedService
- Indicates if this auto scaling configuration has an App Runner service associated with it. A value of
true
indicates one or more services are associated. A value of false
indicates
no services are associated.public Boolean getHasAssociatedService()
Indicates if this auto scaling configuration has an App Runner service associated with it. A value of
true
indicates one or more services are associated. A value of false
indicates no
services are associated.
true
indicates one or more services are associated. A value of false
indicates
no services are associated.public AutoScalingConfiguration withHasAssociatedService(Boolean hasAssociatedService)
Indicates if this auto scaling configuration has an App Runner service associated with it. A value of
true
indicates one or more services are associated. A value of false
indicates no
services are associated.
hasAssociatedService
- Indicates if this auto scaling configuration has an App Runner service associated with it. A value of
true
indicates one or more services are associated. A value of false
indicates
no services are associated.public Boolean isHasAssociatedService()
Indicates if this auto scaling configuration has an App Runner service associated with it. A value of
true
indicates one or more services are associated. A value of false
indicates no
services are associated.
true
indicates one or more services are associated. A value of false
indicates
no services are associated.public void setIsDefault(Boolean isDefault)
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does
not have an auto scaling configuration ARN specified during creation. Each account can have only one default
AutoScalingConfiguration
per region. The default AutoScalingConfiguration
can be any
revision under the same AutoScalingConfigurationName
.
isDefault
- Indicates if this auto scaling configuration should be used as the default for a new App Runner service
that does not have an auto scaling configuration ARN specified during creation. Each account can have only
one default AutoScalingConfiguration
per region. The default
AutoScalingConfiguration
can be any revision under the same
AutoScalingConfigurationName
.public Boolean getIsDefault()
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does
not have an auto scaling configuration ARN specified during creation. Each account can have only one default
AutoScalingConfiguration
per region. The default AutoScalingConfiguration
can be any
revision under the same AutoScalingConfigurationName
.
AutoScalingConfiguration
per region. The default
AutoScalingConfiguration
can be any revision under the same
AutoScalingConfigurationName
.public AutoScalingConfiguration withIsDefault(Boolean isDefault)
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does
not have an auto scaling configuration ARN specified during creation. Each account can have only one default
AutoScalingConfiguration
per region. The default AutoScalingConfiguration
can be any
revision under the same AutoScalingConfigurationName
.
isDefault
- Indicates if this auto scaling configuration should be used as the default for a new App Runner service
that does not have an auto scaling configuration ARN specified during creation. Each account can have only
one default AutoScalingConfiguration
per region. The default
AutoScalingConfiguration
can be any revision under the same
AutoScalingConfigurationName
.public Boolean isDefault()
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does
not have an auto scaling configuration ARN specified during creation. Each account can have only one default
AutoScalingConfiguration
per region. The default AutoScalingConfiguration
can be any
revision under the same AutoScalingConfigurationName
.
AutoScalingConfiguration
per region. The default
AutoScalingConfiguration
can be any revision under the same
AutoScalingConfigurationName
.public String toString()
toString
in class Object
Object.toString()
public AutoScalingConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.