shiver.me.timbers.aws.apigateway.Deployment Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.apigateway;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;
/**
* Deployment
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"DeploymentCanarySettings",
"Description",
"RestApiId",
"StageDescription",
"StageName"
})
public class Deployment {
/**
* DeploymentDeploymentCanarySettings
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html
*
*/
@JsonProperty("DeploymentCanarySettings")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html")
private Property deploymentCanarySettings;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-description
*
*/
@JsonProperty("Description")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-description")
private CharSequence description;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-restapiid
*
*/
@JsonProperty("RestApiId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-restapiid")
private CharSequence restApiId;
/**
* DeploymentStageDescription
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html
*
*/
@JsonProperty("StageDescription")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html")
private Property stageDescription;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-stagename
*
*/
@JsonProperty("StageName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-stagename")
private CharSequence stageName;
/**
* DeploymentDeploymentCanarySettings
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html
*
*/
@JsonIgnore
public Property getDeploymentCanarySettings() {
return deploymentCanarySettings;
}
/**
* DeploymentDeploymentCanarySettings
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html
*
*/
@JsonIgnore
public void setDeploymentCanarySettings(Property deploymentCanarySettings) {
this.deploymentCanarySettings = deploymentCanarySettings;
}
public Deployment withDeploymentCanarySettings(Property deploymentCanarySettings) {
this.deploymentCanarySettings = deploymentCanarySettings;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-description
*
*/
@JsonIgnore
public CharSequence getDescription() {
return description;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-description
*
*/
@JsonIgnore
public void setDescription(CharSequence description) {
this.description = description;
}
public Deployment withDescription(CharSequence description) {
this.description = description;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-restapiid
*
*/
@JsonIgnore
public CharSequence getRestApiId() {
return restApiId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-restapiid
*
*/
@JsonIgnore
public void setRestApiId(CharSequence restApiId) {
this.restApiId = restApiId;
}
public Deployment withRestApiId(CharSequence restApiId) {
this.restApiId = restApiId;
return this;
}
/**
* DeploymentStageDescription
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html
*
*/
@JsonIgnore
public Property getStageDescription() {
return stageDescription;
}
/**
* DeploymentStageDescription
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html
*
*/
@JsonIgnore
public void setStageDescription(Property stageDescription) {
this.stageDescription = stageDescription;
}
public Deployment withStageDescription(Property stageDescription) {
this.stageDescription = stageDescription;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-stagename
*
*/
@JsonIgnore
public CharSequence getStageName() {
return stageName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-stagename
*
*/
@JsonIgnore
public void setStageName(CharSequence stageName) {
this.stageName = stageName;
}
public Deployment withStageName(CharSequence stageName) {
this.stageName = stageName;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("deploymentCanarySettings", deploymentCanarySettings).append("description", description).append("restApiId", restApiId).append("stageDescription", stageDescription).append("stageName", stageName).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(description).append(stageName).append(deploymentCanarySettings).append(restApiId).append(stageDescription).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Deployment) == false) {
return false;
}
Deployment rhs = ((Deployment) other);
return new EqualsBuilder().append(description, rhs.description).append(stageName, rhs.stageName).append(deploymentCanarySettings, rhs.deploymentCanarySettings).append(restApiId, rhs.restApiId).append(stageDescription, rhs.stageDescription).isEquals();
}
}