shiver.me.timbers.aws.codedeploy.DeploymentGroupDeployment Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.codedeploy;
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;
/**
* DeploymentGroupDeployment
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Description",
"IgnoreApplicationStopFailures",
"Revision"
})
public class DeploymentGroupDeployment implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-description
*
*/
@JsonProperty("Description")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-description")
private CharSequence description;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-ignoreapplicationstopfailures
*
*/
@JsonProperty("IgnoreApplicationStopFailures")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-ignoreapplicationstopfailures")
private CharSequence ignoreApplicationStopFailures;
/**
* DeploymentGroupRevisionLocation
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html
*
*/
@JsonProperty("Revision")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html")
private Property revision;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-description
*
*/
@JsonIgnore
public CharSequence getDescription() {
return description;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-description
*
*/
@JsonIgnore
public void setDescription(CharSequence description) {
this.description = description;
}
public DeploymentGroupDeployment withDescription(CharSequence description) {
this.description = description;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-ignoreapplicationstopfailures
*
*/
@JsonIgnore
public CharSequence getIgnoreApplicationStopFailures() {
return ignoreApplicationStopFailures;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-ignoreapplicationstopfailures
*
*/
@JsonIgnore
public void setIgnoreApplicationStopFailures(CharSequence ignoreApplicationStopFailures) {
this.ignoreApplicationStopFailures = ignoreApplicationStopFailures;
}
public DeploymentGroupDeployment withIgnoreApplicationStopFailures(CharSequence ignoreApplicationStopFailures) {
this.ignoreApplicationStopFailures = ignoreApplicationStopFailures;
return this;
}
/**
* DeploymentGroupRevisionLocation
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html
*
*/
@JsonIgnore
public Property getRevision() {
return revision;
}
/**
* DeploymentGroupRevisionLocation
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html
*
*/
@JsonIgnore
public void setRevision(Property revision) {
this.revision = revision;
}
public DeploymentGroupDeployment withRevision(Property revision) {
this.revision = revision;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("description", description).append("ignoreApplicationStopFailures", ignoreApplicationStopFailures).append("revision", revision).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(description).append(ignoreApplicationStopFailures).append(revision).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DeploymentGroupDeployment) == false) {
return false;
}
DeploymentGroupDeployment rhs = ((DeploymentGroupDeployment) other);
return new EqualsBuilder().append(description, rhs.description).append(ignoreApplicationStopFailures, rhs.ignoreApplicationStopFailures).append(revision, rhs.revision).isEquals();
}
}