shiver.me.timbers.aws.CreationPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smt-cloudformation-objects Show documentation
Show all versions of smt-cloudformation-objects Show documentation
This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The
objects have been generated directly from the specification so should be a direct one to one mapping.
The newest version!
package shiver.me.timbers.aws;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
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;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"AutoScalingCreationPolicy",
"ResourceSignal"
})
public class CreationPolicy {
@JsonProperty("AutoScalingCreationPolicy")
private AutoScalingCreationPolicy autoScalingCreationPolicy;
@JsonProperty("ResourceSignal")
private ResourceSignal resourceSignal;
@JsonIgnore
public AutoScalingCreationPolicy getAutoScalingCreationPolicy() {
return autoScalingCreationPolicy;
}
@JsonIgnore
public void setAutoScalingCreationPolicy(AutoScalingCreationPolicy autoScalingCreationPolicy) {
this.autoScalingCreationPolicy = autoScalingCreationPolicy;
}
public CreationPolicy withAutoScalingCreationPolicy(AutoScalingCreationPolicy autoScalingCreationPolicy) {
this.autoScalingCreationPolicy = autoScalingCreationPolicy;
return this;
}
@JsonIgnore
public ResourceSignal getResourceSignal() {
return resourceSignal;
}
@JsonIgnore
public void setResourceSignal(ResourceSignal resourceSignal) {
this.resourceSignal = resourceSignal;
}
public CreationPolicy withResourceSignal(ResourceSignal resourceSignal) {
this.resourceSignal = resourceSignal;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("autoScalingCreationPolicy", autoScalingCreationPolicy).append("resourceSignal", resourceSignal).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(resourceSignal).append(autoScalingCreationPolicy).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof CreationPolicy) == false) {
return false;
}
CreationPolicy rhs = ((CreationPolicy) other);
return new EqualsBuilder().append(resourceSignal, rhs.resourceSignal).append(autoScalingCreationPolicy, rhs.autoScalingCreationPolicy).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy