@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Stage extends Object implements Serializable, Cloneable, StructuredPojo
Represents an API stage.
Constructor and Description |
---|
Stage() |
Modifier and Type | Method and Description |
---|---|
Stage |
addRouteSettingsEntry(String key,
RouteSettings value)
Add a single RouteSettings entry
|
Stage |
addStageVariablesEntry(String key,
String value)
Add a single StageVariables entry
|
Stage |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Stage |
clearRouteSettingsEntries()
Removes all the entries added into RouteSettings.
|
Stage |
clearStageVariablesEntries()
Removes all the entries added into StageVariables.
|
Stage |
clearTagsEntries()
Removes all the entries added into Tags.
|
Stage |
clone() |
boolean |
equals(Object obj) |
AccessLogSettings |
getAccessLogSettings()
Settings for logging access in this stage.
|
Boolean |
getApiGatewayManaged()
Specifies whether a stage is managed by API Gateway.
|
Boolean |
getAutoDeploy()
Specifies whether updates to an API automatically trigger a new deployment.
|
String |
getClientCertificateId()
The identifier of a client certificate for a Stage.
|
Date |
getCreatedDate()
The timestamp when the stage was created.
|
RouteSettings |
getDefaultRouteSettings()
Default route settings for the stage.
|
String |
getDeploymentId()
The identifier of the Deployment that the Stage is associated with.
|
String |
getDescription()
The description of the stage.
|
String |
getLastDeploymentStatusMessage()
Describes the status of the last deployment of a stage.
|
Date |
getLastUpdatedDate()
The timestamp when the stage was last updated.
|
Map<String,RouteSettings> |
getRouteSettings()
Route settings for the stage, by routeKey.
|
String |
getStageName()
The name of the stage.
|
Map<String,String> |
getStageVariables()
A map that defines the stage variables for a stage resource.
|
Map<String,String> |
getTags()
The collection of tags.
|
int |
hashCode() |
Boolean |
isApiGatewayManaged()
Specifies whether a stage is managed by API Gateway.
|
Boolean |
isAutoDeploy()
Specifies whether updates to an API automatically trigger a new deployment.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessLogSettings(AccessLogSettings accessLogSettings)
Settings for logging access in this stage.
|
void |
setApiGatewayManaged(Boolean apiGatewayManaged)
Specifies whether a stage is managed by API Gateway.
|
void |
setAutoDeploy(Boolean autoDeploy)
Specifies whether updates to an API automatically trigger a new deployment.
|
void |
setClientCertificateId(String clientCertificateId)
The identifier of a client certificate for a Stage.
|
void |
setCreatedDate(Date createdDate)
The timestamp when the stage was created.
|
void |
setDefaultRouteSettings(RouteSettings defaultRouteSettings)
Default route settings for the stage.
|
void |
setDeploymentId(String deploymentId)
The identifier of the Deployment that the Stage is associated with.
|
void |
setDescription(String description)
The description of the stage.
|
void |
setLastDeploymentStatusMessage(String lastDeploymentStatusMessage)
Describes the status of the last deployment of a stage.
|
void |
setLastUpdatedDate(Date lastUpdatedDate)
The timestamp when the stage was last updated.
|
void |
setRouteSettings(Map<String,RouteSettings> routeSettings)
Route settings for the stage, by routeKey.
|
void |
setStageName(String stageName)
The name of the stage.
|
void |
setStageVariables(Map<String,String> stageVariables)
A map that defines the stage variables for a stage resource.
|
void |
setTags(Map<String,String> tags)
The collection of tags.
|
String |
toString()
Returns a string representation of this object.
|
Stage |
withAccessLogSettings(AccessLogSettings accessLogSettings)
Settings for logging access in this stage.
|
Stage |
withApiGatewayManaged(Boolean apiGatewayManaged)
Specifies whether a stage is managed by API Gateway.
|
Stage |
withAutoDeploy(Boolean autoDeploy)
Specifies whether updates to an API automatically trigger a new deployment.
|
Stage |
withClientCertificateId(String clientCertificateId)
The identifier of a client certificate for a Stage.
|
Stage |
withCreatedDate(Date createdDate)
The timestamp when the stage was created.
|
Stage |
withDefaultRouteSettings(RouteSettings defaultRouteSettings)
Default route settings for the stage.
|
Stage |
withDeploymentId(String deploymentId)
The identifier of the Deployment that the Stage is associated with.
|
Stage |
withDescription(String description)
The description of the stage.
|
Stage |
withLastDeploymentStatusMessage(String lastDeploymentStatusMessage)
Describes the status of the last deployment of a stage.
|
Stage |
withLastUpdatedDate(Date lastUpdatedDate)
The timestamp when the stage was last updated.
|
Stage |
withRouteSettings(Map<String,RouteSettings> routeSettings)
Route settings for the stage, by routeKey.
|
Stage |
withStageName(String stageName)
The name of the stage.
|
Stage |
withStageVariables(Map<String,String> stageVariables)
A map that defines the stage variables for a stage resource.
|
Stage |
withTags(Map<String,String> tags)
The collection of tags.
|
public void setAccessLogSettings(AccessLogSettings accessLogSettings)
Settings for logging access in this stage.
accessLogSettings
- Settings for logging access in this stage.public AccessLogSettings getAccessLogSettings()
Settings for logging access in this stage.
public Stage withAccessLogSettings(AccessLogSettings accessLogSettings)
Settings for logging access in this stage.
accessLogSettings
- Settings for logging access in this stage.public void setApiGatewayManaged(Boolean apiGatewayManaged)
Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the $default stage is managed by API Gateway. You can't modify the $default stage.
apiGatewayManaged
- Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the
$default stage is managed by API Gateway. You can't modify the $default stage.public Boolean getApiGatewayManaged()
Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the $default stage is managed by API Gateway. You can't modify the $default stage.
public Stage withApiGatewayManaged(Boolean apiGatewayManaged)
Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the $default stage is managed by API Gateway. You can't modify the $default stage.
apiGatewayManaged
- Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the
$default stage is managed by API Gateway. You can't modify the $default stage.public Boolean isApiGatewayManaged()
Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the $default stage is managed by API Gateway. You can't modify the $default stage.
public void setAutoDeploy(Boolean autoDeploy)
Specifies whether updates to an API automatically trigger a new deployment. The default value is false.
autoDeploy
- Specifies whether updates to an API automatically trigger a new deployment. The default value is false.public Boolean getAutoDeploy()
Specifies whether updates to an API automatically trigger a new deployment. The default value is false.
public Stage withAutoDeploy(Boolean autoDeploy)
Specifies whether updates to an API automatically trigger a new deployment. The default value is false.
autoDeploy
- Specifies whether updates to an API automatically trigger a new deployment. The default value is false.public Boolean isAutoDeploy()
Specifies whether updates to an API automatically trigger a new deployment. The default value is false.
public void setClientCertificateId(String clientCertificateId)
The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.
clientCertificateId
- The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.public String getClientCertificateId()
The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.
public Stage withClientCertificateId(String clientCertificateId)
The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.
clientCertificateId
- The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.public void setCreatedDate(Date createdDate)
The timestamp when the stage was created.
createdDate
- The timestamp when the stage was created.public Date getCreatedDate()
The timestamp when the stage was created.
public Stage withCreatedDate(Date createdDate)
The timestamp when the stage was created.
createdDate
- The timestamp when the stage was created.public void setDefaultRouteSettings(RouteSettings defaultRouteSettings)
Default route settings for the stage.
defaultRouteSettings
- Default route settings for the stage.public RouteSettings getDefaultRouteSettings()
Default route settings for the stage.
public Stage withDefaultRouteSettings(RouteSettings defaultRouteSettings)
Default route settings for the stage.
defaultRouteSettings
- Default route settings for the stage.public void setDeploymentId(String deploymentId)
The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is enabled.
deploymentId
- The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is
enabled.public String getDeploymentId()
The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is enabled.
public Stage withDeploymentId(String deploymentId)
The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is enabled.
deploymentId
- The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is
enabled.public void setDescription(String description)
The description of the stage.
description
- The description of the stage.public String getDescription()
The description of the stage.
public Stage withDescription(String description)
The description of the stage.
description
- The description of the stage.public void setLastDeploymentStatusMessage(String lastDeploymentStatusMessage)
Describes the status of the last deployment of a stage. Supported only for stages with autoDeploy enabled.
lastDeploymentStatusMessage
- Describes the status of the last deployment of a stage. Supported only for stages with autoDeploy enabled.public String getLastDeploymentStatusMessage()
Describes the status of the last deployment of a stage. Supported only for stages with autoDeploy enabled.
public Stage withLastDeploymentStatusMessage(String lastDeploymentStatusMessage)
Describes the status of the last deployment of a stage. Supported only for stages with autoDeploy enabled.
lastDeploymentStatusMessage
- Describes the status of the last deployment of a stage. Supported only for stages with autoDeploy enabled.public void setLastUpdatedDate(Date lastUpdatedDate)
The timestamp when the stage was last updated.
lastUpdatedDate
- The timestamp when the stage was last updated.public Date getLastUpdatedDate()
The timestamp when the stage was last updated.
public Stage withLastUpdatedDate(Date lastUpdatedDate)
The timestamp when the stage was last updated.
lastUpdatedDate
- The timestamp when the stage was last updated.public Map<String,RouteSettings> getRouteSettings()
Route settings for the stage, by routeKey.
public void setRouteSettings(Map<String,RouteSettings> routeSettings)
Route settings for the stage, by routeKey.
routeSettings
- Route settings for the stage, by routeKey.public Stage withRouteSettings(Map<String,RouteSettings> routeSettings)
Route settings for the stage, by routeKey.
routeSettings
- Route settings for the stage, by routeKey.public Stage addRouteSettingsEntry(String key, RouteSettings value)
public Stage clearRouteSettingsEntries()
public void setStageName(String stageName)
The name of the stage.
stageName
- The name of the stage.public String getStageName()
The name of the stage.
public Stage withStageName(String stageName)
The name of the stage.
stageName
- The name of the stage.public Map<String,String> getStageVariables()
A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
public void setStageVariables(Map<String,String> stageVariables)
A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
stageVariables
- A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and
underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.public Stage withStageVariables(Map<String,String> stageVariables)
A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
stageVariables
- A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and
underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.public Stage addStageVariablesEntry(String key, String value)
public Stage clearStageVariablesEntries()
public Map<String,String> getTags()
The collection of tags. Each tag element is associated with a given resource.
public void setTags(Map<String,String> tags)
The collection of tags. Each tag element is associated with a given resource.
tags
- The collection of tags. Each tag element is associated with a given resource.public Stage withTags(Map<String,String> tags)
The collection of tags. Each tag element is associated with a given resource.
tags
- The collection of tags. Each tag element is associated with a given resource.public Stage clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.