All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shiver.me.timbers.aws.dlm.LifecyclePolicyRetainRule Maven / Gradle / Ivy


package shiver.me.timbers.aws.dlm;

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;


/**
 * LifecyclePolicyRetainRule
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "IntervalUnit", "Count", "Interval" }) public class LifecyclePolicyRetainRule implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-intervalunit * */ @JsonProperty("IntervalUnit") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-intervalunit") private CharSequence intervalUnit; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-count * */ @JsonProperty("Count") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-count") private Number count; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-interval * */ @JsonProperty("Interval") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-interval") private Number interval; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-intervalunit * */ @JsonIgnore public CharSequence getIntervalUnit() { return intervalUnit; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-intervalunit * */ @JsonIgnore public void setIntervalUnit(CharSequence intervalUnit) { this.intervalUnit = intervalUnit; } public LifecyclePolicyRetainRule withIntervalUnit(CharSequence intervalUnit) { this.intervalUnit = intervalUnit; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-count * */ @JsonIgnore public Number getCount() { return count; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-count * */ @JsonIgnore public void setCount(Number count) { this.count = count; } public LifecyclePolicyRetainRule withCount(Number count) { this.count = count; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-interval * */ @JsonIgnore public Number getInterval() { return interval; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-interval * */ @JsonIgnore public void setInterval(Number interval) { this.interval = interval; } public LifecyclePolicyRetainRule withInterval(Number interval) { this.interval = interval; return this; } @Override public String toString() { return new ToStringBuilder(this).append("intervalUnit", intervalUnit).append("count", count).append("interval", interval).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(count).append(interval).append(intervalUnit).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof LifecyclePolicyRetainRule) == false) { return false; } LifecyclePolicyRetainRule rhs = ((LifecyclePolicyRetainRule) other); return new EqualsBuilder().append(count, rhs.count).append(interval, rhs.interval).append(intervalUnit, rhs.intervalUnit).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy