/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.apprunner.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateAutoScalingConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region,
* App Runner creates revision number 1
of this name. When you use the same name in subsequent calls,
* App Runner creates incremental revisions of the configuration.
*
* The name DefaultConfiguration
is reserved (it's the configuration that App Runner uses if you don't
* provide a custome one). You can't use it to create a new auto scaling configuration, and you can't create a
* revision of it.
*
* When you want to use your own auto scaling configuration for your App Runner service, create a configuration * with a different name, and then provide it when you create or update your service. *
** The maximum number of concurrent requests that you want an instance to process. If the number of concurrent * requests exceeds this limit, App Runner scales up your service. *
*
* Default: 100
*
* The minimum number of instances that App Runner provisions for your 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. *
*
* Default: 1
*
* The maximum number of instances that your service scales up to. At most MaxSize
instances actively
* serve traffic for your service.
*
* Default: 25
*
* A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a * key-value pair. *
*/ private java.util.List
* A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region,
* App Runner creates revision number 1
of this name. When you use the same name in subsequent calls,
* App Runner creates incremental revisions of the configuration.
*
* The name DefaultConfiguration
is reserved (it's the configuration that App Runner uses if you don't
* provide a custome one). You can't use it to create a new auto scaling configuration, and you can't create a
* revision of it.
*
* When you want to use your own auto scaling configuration for your App Runner service, create a configuration * with a different name, and then provide it when you create or update your service. *
*1
of this name. When you use the same name in
* subsequent calls, App Runner creates incremental revisions of the configuration.
* The name DefaultConfiguration
is reserved (it's the configuration that App Runner uses if you
* don't provide a custome one). You can't use it to create a new auto scaling configuration, and you can't
* create a revision of it.
*
* When you want to use your own auto scaling configuration for your App Runner service, create a * configuration with a different name, and then provide it when you create or update your service. *
*/ public void setAutoScalingConfigurationName(String autoScalingConfigurationName) { this.autoScalingConfigurationName = autoScalingConfigurationName; } /** *
* A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region,
* App Runner creates revision number 1
of this name. When you use the same name in subsequent calls,
* App Runner creates incremental revisions of the configuration.
*
* The name DefaultConfiguration
is reserved (it's the configuration that App Runner uses if you don't
* provide a custome one). You can't use it to create a new auto scaling configuration, and you can't create a
* revision of it.
*
* When you want to use your own auto scaling configuration for your App Runner service, create a configuration * with a different name, and then provide it when you create or update your service. *
*1
of this name. When you use the same name in
* subsequent calls, App Runner creates incremental revisions of the configuration.
* The name DefaultConfiguration
is reserved (it's the configuration that App Runner uses if
* you don't provide a custome one). You can't use it to create a new auto scaling configuration, and you
* can't create a revision of it.
*
* When you want to use your own auto scaling configuration for your App Runner service, create a * configuration with a different name, and then provide it when you create or update your service. *
*/ public String getAutoScalingConfigurationName() { return this.autoScalingConfigurationName; } /** *
* A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region,
* App Runner creates revision number 1
of this name. When you use the same name in subsequent calls,
* App Runner creates incremental revisions of the configuration.
*
* The name DefaultConfiguration
is reserved (it's the configuration that App Runner uses if you don't
* provide a custome one). You can't use it to create a new auto scaling configuration, and you can't create a
* revision of it.
*
* When you want to use your own auto scaling configuration for your App Runner service, create a configuration * with a different name, and then provide it when you create or update your service. *
*1
of this name. When you use the same name in
* subsequent calls, App Runner creates incremental revisions of the configuration.
* The name DefaultConfiguration
is reserved (it's the configuration that App Runner uses if you
* don't provide a custome one). You can't use it to create a new auto scaling configuration, and you can't
* create a revision of it.
*
* When you want to use your own auto scaling configuration for your App Runner service, create a * configuration with a different name, and then provide it when you create or update your service. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateAutoScalingConfigurationRequest withAutoScalingConfigurationName(String autoScalingConfigurationName) { setAutoScalingConfigurationName(autoScalingConfigurationName); return this; } /** ** The maximum number of concurrent requests that you want an instance to process. If the number of concurrent * requests exceeds this limit, App Runner scales up your service. *
*
* Default: 100
*
* Default: 100
*/
public void setMaxConcurrency(Integer maxConcurrency) {
this.maxConcurrency = maxConcurrency;
}
/**
*
* The maximum number of concurrent requests that you want an instance to process. If the number of concurrent * requests exceeds this limit, App Runner scales up your service. *
*
* Default: 100
*
* Default: 100
*/
public Integer getMaxConcurrency() {
return this.maxConcurrency;
}
/**
*
* The maximum number of concurrent requests that you want an instance to process. If the number of concurrent * requests exceeds this limit, App Runner scales up your service. *
*
* Default: 100
*
* Default: 100
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAutoScalingConfigurationRequest withMaxConcurrency(Integer maxConcurrency) {
setMaxConcurrency(maxConcurrency);
return this;
}
/**
*
* The minimum number of instances that App Runner provisions for your 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. *
*
* Default: 1
*
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. *
*
* Default: 1
*/
public void setMinSize(Integer minSize) {
this.minSize = minSize;
}
/**
*
* The minimum number of instances that App Runner provisions for your 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. *
*
* Default: 1
*
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. *
*
* Default: 1
*/
public Integer getMinSize() {
return this.minSize;
}
/**
*
* The minimum number of instances that App Runner provisions for your 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. *
*
* Default: 1
*
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. *
*
* Default: 1
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAutoScalingConfigurationRequest withMinSize(Integer minSize) {
setMinSize(minSize);
return this;
}
/**
*
* The maximum number of instances that your service scales up to. At most MaxSize
instances actively
* serve traffic for your service.
*
* Default: 25
*
MaxSize
instances
* actively serve traffic for your service.
*
* Default: 25
*/
public void setMaxSize(Integer maxSize) {
this.maxSize = maxSize;
}
/**
*
* The maximum number of instances that your service scales up to. At most MaxSize
instances actively
* serve traffic for your service.
*
* Default: 25
*
MaxSize
instances
* actively serve traffic for your service.
*
* Default: 25
*/
public Integer getMaxSize() {
return this.maxSize;
}
/**
*
* The maximum number of instances that your service scales up to. At most MaxSize
instances actively
* serve traffic for your service.
*
* Default: 25
*
MaxSize
instances
* actively serve traffic for your service.
*
* Default: 25
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAutoScalingConfigurationRequest withMaxSize(Integer maxSize) {
setMaxSize(maxSize);
return this;
}
/**
*
* A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a * key-value pair. *
* * @return A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a * key-value pair. */ public java.util.List* A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a * key-value pair. *
* * @param tags * A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a * key-value pair. */ public void setTags(java.util.Collection* A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a * key-value pair. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a * key-value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAutoScalingConfigurationRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a * key-value pair. *
* * @param tags * A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a * key-value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAutoScalingConfigurationRequest withTags(java.util.Collection