@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDeploymentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Requests API Gateway to create a Deployment resource.
NOOP
Constructor and Description |
---|
CreateDeploymentRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDeploymentRequest |
addVariablesEntry(String key,
String value)
Add a single Variables entry
|
CreateDeploymentRequest |
clearVariablesEntries()
Removes all the entries added into Variables.
|
CreateDeploymentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getCacheClusterEnabled()
Enables a cache cluster for the Stage resource specified in the input.
|
String |
getCacheClusterSize()
The stage's cache capacity in GB.
|
DeploymentCanarySettings |
getCanarySettings()
The input configuration for the canary deployment when the deployment is a canary release deployment.
|
String |
getDescription()
The description for the Deployment resource to create.
|
String |
getRestApiId()
The string identifier of the associated RestApi.
|
String |
getStageDescription()
The description of the Stage resource for the Deployment resource to create.
|
String |
getStageName()
The name of the Stage resource for the Deployment resource to create.
|
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 Stage resource that is associated with the new deployment.
|
int |
hashCode() |
Boolean |
isCacheClusterEnabled()
Enables a cache cluster for the Stage resource specified in the input.
|
Boolean |
isTracingEnabled()
Specifies whether active tracing with X-ray is enabled for the Stage.
|
void |
setCacheClusterEnabled(Boolean cacheClusterEnabled)
Enables a cache cluster for the Stage resource specified in the input.
|
void |
setCacheClusterSize(String cacheClusterSize)
The stage's cache capacity in GB.
|
void |
setCanarySettings(DeploymentCanarySettings canarySettings)
The input configuration for the canary deployment when the deployment is a canary release deployment.
|
void |
setDescription(String description)
The description for the Deployment resource to create.
|
void |
setRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
void |
setStageDescription(String stageDescription)
The description of the Stage resource for the Deployment resource to create.
|
void |
setStageName(String stageName)
The name of the Stage resource for the Deployment resource to create.
|
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 Stage resource that is associated with the new deployment.
|
String |
toString()
Returns a string representation of this object.
|
CreateDeploymentRequest |
withCacheClusterEnabled(Boolean cacheClusterEnabled)
Enables a cache cluster for the Stage resource specified in the input.
|
CreateDeploymentRequest |
withCacheClusterSize(String cacheClusterSize)
The stage's cache capacity in GB.
|
CreateDeploymentRequest |
withCanarySettings(DeploymentCanarySettings canarySettings)
The input configuration for the canary deployment when the deployment is a canary release deployment.
|
CreateDeploymentRequest |
withDescription(String description)
The description for the Deployment resource to create.
|
CreateDeploymentRequest |
withRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
CreateDeploymentRequest |
withStageDescription(String stageDescription)
The description of the Stage resource for the Deployment resource to create.
|
CreateDeploymentRequest |
withStageName(String stageName)
The name of the Stage resource for the Deployment resource to create.
|
CreateDeploymentRequest |
withTracingEnabled(Boolean tracingEnabled)
Specifies whether active tracing with X-ray is enabled for the Stage.
|
CreateDeploymentRequest |
withVariables(Map<String,String> variables)
A map that defines the stage variables for the Stage resource that is associated with the new deployment.
|
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 CreateDeploymentRequest 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 of the Stage resource for the Deployment resource to create.
stageName
- The name of the Stage resource for the Deployment resource to create.public String getStageName()
The name of the Stage resource for the Deployment resource to create.
public CreateDeploymentRequest withStageName(String stageName)
The name of the Stage resource for the Deployment resource to create.
stageName
- The name of the Stage resource for the Deployment resource to create.public void setStageDescription(String stageDescription)
The description of the Stage resource for the Deployment resource to create.
stageDescription
- The description of the Stage resource for the Deployment resource to create.public String getStageDescription()
The description of the Stage resource for the Deployment resource to create.
public CreateDeploymentRequest withStageDescription(String stageDescription)
The description of the Stage resource for the Deployment resource to create.
stageDescription
- The description of the Stage resource for the Deployment resource to create.public void setDescription(String description)
The description for the Deployment resource to create.
description
- The description for the Deployment resource to create.public String getDescription()
The description for the Deployment resource to create.
public CreateDeploymentRequest withDescription(String description)
The description for the Deployment resource to create.
description
- The description for the Deployment resource to create.public void setCacheClusterEnabled(Boolean cacheClusterEnabled)
Enables a cache cluster for the Stage resource specified in the input.
cacheClusterEnabled
- Enables a cache cluster for the Stage resource specified in the input.public Boolean getCacheClusterEnabled()
Enables a cache cluster for the Stage resource specified in the input.
public CreateDeploymentRequest withCacheClusterEnabled(Boolean cacheClusterEnabled)
Enables a cache cluster for the Stage resource specified in the input.
cacheClusterEnabled
- Enables a cache cluster for the Stage resource specified in the input.public Boolean isCacheClusterEnabled()
Enables a cache cluster for the Stage resource specified in the input.
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 CreateDeploymentRequest 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 Stage resource that is associated with the new deployment.
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 Stage resource that is associated with the new deployment.
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 Stage resource that is associated with the new deployment.
Variable names can have alphanumeric and underscore characters, and the values must match
[A-Za-z0-9-._~:/?#&=,]+
.public CreateDeploymentRequest withVariables(Map<String,String> variables)
A map that defines the stage variables for the Stage resource that is associated with the new deployment.
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 Stage resource that is associated with the new deployment.
Variable names can have alphanumeric and underscore characters, and the values must match
[A-Za-z0-9-._~:/?#&=,]+
.public CreateDeploymentRequest addVariablesEntry(String key, String value)
public CreateDeploymentRequest clearVariablesEntries()
public void setCanarySettings(DeploymentCanarySettings canarySettings)
The input configuration for the canary deployment when the deployment is a canary release deployment.
canarySettings
- The input configuration for the canary deployment when the deployment is a canary release deployment.public DeploymentCanarySettings getCanarySettings()
The input configuration for the canary deployment when the deployment is a canary release deployment.
public CreateDeploymentRequest withCanarySettings(DeploymentCanarySettings canarySettings)
The input configuration for the canary deployment when the deployment is a canary release deployment.
canarySettings
- The input configuration for the canary deployment when the deployment is a canary release deployment.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 CreateDeploymentRequest 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 String toString()
toString
in class Object
Object.toString()
public CreateDeploymentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()