shiver.me.timbers.aws.dlm.LifecyclePolicyPolicyDetails Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.dlm;
import java.util.ArrayList;
import java.util.List;
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;
import shiver.me.timbers.aws.Tag;
/**
* LifecyclePolicyPolicyDetails
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ResourceTypes",
"Schedules",
"PolicyType",
"Parameters",
"TargetTags"
})
public class LifecyclePolicyPolicyDetails implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcetypes
*
*/
@JsonProperty("ResourceTypes")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcetypes")
private List resourceTypes = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-schedules
*
*/
@JsonProperty("Schedules")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-schedules")
private List> schedules = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-policytype
*
*/
@JsonProperty("PolicyType")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-policytype")
private CharSequence policyType;
/**
* LifecyclePolicyParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html
*
*/
@JsonProperty("Parameters")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html")
private Property parameters;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-targettags
*
*/
@JsonProperty("TargetTags")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-targettags")
private List> targetTags = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcetypes
*
*/
@JsonIgnore
public List getResourceTypes() {
return resourceTypes;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcetypes
*
*/
@JsonIgnore
public void setResourceTypes(List resourceTypes) {
this.resourceTypes = resourceTypes;
}
public LifecyclePolicyPolicyDetails withResourceTypes(List resourceTypes) {
this.resourceTypes = resourceTypes;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-schedules
*
*/
@JsonIgnore
public List> getSchedules() {
return schedules;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-schedules
*
*/
@JsonIgnore
public void setSchedules(List> schedules) {
this.schedules = schedules;
}
public LifecyclePolicyPolicyDetails withSchedules(List> schedules) {
this.schedules = schedules;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-policytype
*
*/
@JsonIgnore
public CharSequence getPolicyType() {
return policyType;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-policytype
*
*/
@JsonIgnore
public void setPolicyType(CharSequence policyType) {
this.policyType = policyType;
}
public LifecyclePolicyPolicyDetails withPolicyType(CharSequence policyType) {
this.policyType = policyType;
return this;
}
/**
* LifecyclePolicyParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html
*
*/
@JsonIgnore
public Property getParameters() {
return parameters;
}
/**
* LifecyclePolicyParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html
*
*/
@JsonIgnore
public void setParameters(Property parameters) {
this.parameters = parameters;
}
public LifecyclePolicyPolicyDetails withParameters(Property parameters) {
this.parameters = parameters;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-targettags
*
*/
@JsonIgnore
public List> getTargetTags() {
return targetTags;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-targettags
*
*/
@JsonIgnore
public void setTargetTags(List> targetTags) {
this.targetTags = targetTags;
}
public LifecyclePolicyPolicyDetails withTargetTags(List> targetTags) {
this.targetTags = targetTags;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("resourceTypes", resourceTypes).append("schedules", schedules).append("policyType", policyType).append("parameters", parameters).append("targetTags", targetTags).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(resourceTypes).append(targetTags).append(parameters).append(schedules).append(policyType).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof LifecyclePolicyPolicyDetails) == false) {
return false;
}
LifecyclePolicyPolicyDetails rhs = ((LifecyclePolicyPolicyDetails) other);
return new EqualsBuilder().append(resourceTypes, rhs.resourceTypes).append(targetTags, rhs.targetTags).append(parameters, rhs.parameters).append(schedules, rhs.schedules).append(policyType, rhs.policyType).isEquals();
}
}