@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateStageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Requests API Gateway to create a Stage resource.
NOOP
Constructor and Description |
---|
CreateStageRequest() |
Modifier and Type | Method and Description |
---|---|
CreateStageRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateStageRequest |
addVariablesEntry(String key,
String value)
Add a single Variables entry
|
CreateStageRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateStageRequest |
clearVariablesEntries()
Removes all the entries added into Variables.
|
CreateStageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getCacheClusterEnabled()
Whether cache clustering is enabled for the stage.
|
String |
getCacheClusterSize()
The stage's cache capacity in GB.
|
CanarySettings |
getCanarySettings()
The canary deployment settings of this stage.
|
String |
getDeploymentId()
The identifier of the Deployment resource for the Stage resource.
|
String |
getDescription()
The description of the Stage resource.
|
String |
getDocumentationVersion()
The version of the associated API documentation.
|
String |
getRestApiId()
The string identifier of the associated RestApi.
|
String |
getStageName()
The name for the Stage resource.
|
Map<String,String> |
getTags()
The key-value map of strings.
|
Boolean |
getTracingEnabled()
Specifies whether active tracing with X-ray is enabled for the Stage.
|
Map<String,String> |
getVariables()
A map that defines the stage variables for the new Stage resource.
|
int |
hashCode() |
Boolean |
isCacheClusterEnabled()
Whether cache clustering is enabled for the stage.
|
Boolean |
isTracingEnabled()
Specifies whether active tracing with X-ray is enabled for the Stage.
|
void |
setCacheClusterEnabled(Boolean cacheClusterEnabled)
Whether cache clustering is enabled for the stage.
|
void |
setCacheClusterSize(String cacheClusterSize)
The stage's cache capacity in GB.
|
void |
setCanarySettings(CanarySettings canarySettings)
The canary deployment settings of this stage.
|
void |
setDeploymentId(String deploymentId)
The identifier of the Deployment resource for the Stage resource.
|
void |
setDescription(String description)
The description of the Stage resource.
|
void |
setDocumentationVersion(String documentationVersion)
The version of the associated API documentation.
|
void |
setRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
void |
setStageName(String stageName)
The name for the Stage resource.
|
void |
setTags(Map<String,String> tags)
The key-value map of strings.
|
void |
setTracingEnabled(Boolean tracingEnabled)
Specifies whether active tracing with X-ray is enabled for the Stage.
|
void |
setVariables(Map<String,String> variables)
A map that defines the stage variables for the new Stage resource.
|
String |
toString()
Returns a string representation of this object.
|
CreateStageRequest |
withCacheClusterEnabled(Boolean cacheClusterEnabled)
Whether cache clustering is enabled for the stage.
|
CreateStageRequest |
withCacheClusterSize(String cacheClusterSize)
The stage's cache capacity in GB.
|
CreateStageRequest |
withCanarySettings(CanarySettings canarySettings)
The canary deployment settings of this stage.
|
CreateStageRequest |
withDeploymentId(String deploymentId)
The identifier of the Deployment resource for the Stage resource.
|
CreateStageRequest |
withDescription(String description)
The description of the Stage resource.
|
CreateStageRequest |
withDocumentationVersion(String documentationVersion)
The version of the associated API documentation.
|
CreateStageRequest |
withRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
CreateStageRequest |
withStageName(String stageName)
The name for the Stage resource.
|
CreateStageRequest |
withTags(Map<String,String> tags)
The key-value map of strings.
|
CreateStageRequest |
withTracingEnabled(Boolean tracingEnabled)
Specifies whether active tracing with X-ray is enabled for the Stage.
|
CreateStageRequest |
withVariables(Map<String,String> variables)
A map that defines the stage variables for the new Stage resource.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId
- The string identifier of the associated RestApi.public String getRestApiId()
The string identifier of the associated RestApi.
public CreateStageRequest withRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId
- The string identifier of the associated RestApi.public void setStageName(String stageName)
The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
stageName
- The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and
underscores. Maximum length is 128 characters.public String getStageName()
The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
public CreateStageRequest withStageName(String stageName)
The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
stageName
- The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and
underscores. Maximum length is 128 characters.public void setDeploymentId(String deploymentId)
The identifier of the Deployment resource for the Stage resource.
deploymentId
- The identifier of the Deployment resource for the Stage resource.public String getDeploymentId()
The identifier of the Deployment resource for the Stage resource.
public CreateStageRequest withDeploymentId(String deploymentId)
The identifier of the Deployment resource for the Stage resource.
deploymentId
- The identifier of the Deployment resource for the Stage resource.public void setDescription(String description)
The description of the Stage resource.
description
- The description of the Stage resource.public String getDescription()
The description of the Stage resource.
public CreateStageRequest withDescription(String description)
The description of the Stage resource.
description
- The description of the Stage resource.public void setCacheClusterEnabled(Boolean cacheClusterEnabled)
Whether cache clustering is enabled for the stage.
cacheClusterEnabled
- Whether cache clustering is enabled for the stage.public Boolean getCacheClusterEnabled()
Whether cache clustering is enabled for the stage.
public CreateStageRequest withCacheClusterEnabled(Boolean cacheClusterEnabled)
Whether cache clustering is enabled for the stage.
cacheClusterEnabled
- Whether cache clustering is enabled for the stage.public Boolean isCacheClusterEnabled()
Whether cache clustering is enabled for the stage.
public void setCacheClusterSize(String cacheClusterSize)
The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
cacheClusterSize
- The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API
caching to enhance responsiveness.public String getCacheClusterSize()
The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
public CreateStageRequest withCacheClusterSize(String cacheClusterSize)
The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
cacheClusterSize
- The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API
caching to enhance responsiveness.public Map<String,String> getVariables()
A map that defines the stage variables for the new Stage resource. Variable names can have alphanumeric and
underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+
.
[A-Za-z0-9-._~:/?#&=,]+
.public void setVariables(Map<String,String> variables)
A map that defines the stage variables for the new Stage resource. Variable names can have alphanumeric and
underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+
.
variables
- A map that defines the stage variables for the new Stage resource. Variable names can have alphanumeric
and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+
.public CreateStageRequest withVariables(Map<String,String> variables)
A map that defines the stage variables for the new Stage resource. Variable names can have alphanumeric and
underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+
.
variables
- A map that defines the stage variables for the new Stage resource. Variable names can have alphanumeric
and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+
.public CreateStageRequest addVariablesEntry(String key, String value)
public CreateStageRequest clearVariablesEntries()
public void setDocumentationVersion(String documentationVersion)
The version of the associated API documentation.
documentationVersion
- The version of the associated API documentation.public String getDocumentationVersion()
The version of the associated API documentation.
public CreateStageRequest withDocumentationVersion(String documentationVersion)
The version of the associated API documentation.
documentationVersion
- The version of the associated API documentation.public void setCanarySettings(CanarySettings canarySettings)
The canary deployment settings of this stage.
canarySettings
- The canary deployment settings of this stage.public CanarySettings getCanarySettings()
The canary deployment settings of this stage.
public CreateStageRequest withCanarySettings(CanarySettings canarySettings)
The canary deployment settings of this stage.
canarySettings
- The canary deployment settings of this stage.public void setTracingEnabled(Boolean tracingEnabled)
Specifies whether active tracing with X-ray is enabled for the Stage.
tracingEnabled
- Specifies whether active tracing with X-ray is enabled for the Stage.public Boolean getTracingEnabled()
Specifies whether active tracing with X-ray is enabled for the Stage.
public CreateStageRequest withTracingEnabled(Boolean tracingEnabled)
Specifies whether active tracing with X-ray is enabled for the Stage.
tracingEnabled
- Specifies whether active tracing with X-ray is enabled for the Stage.public Boolean isTracingEnabled()
Specifies whether active tracing with X-ray is enabled for the Stage.
public Map<String,String> getTags()
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
aws:
. The tag value can be up to 256 characters.public void setTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:
. The tag value can be up to 256 characters.public CreateStageRequest withTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:
. The tag value can be up to 256 characters.public CreateStageRequest addTagsEntry(String key, String value)
public CreateStageRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateStageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()