shiver.me.timbers.aws.cloudfront.DistributionCookies Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.cloudfront;
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;
/**
* DistributionCookies
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"WhitelistedNames",
"Forward"
})
public class DistributionCookies implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-whitelistednames
*
*/
@JsonProperty("WhitelistedNames")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-whitelistednames")
private List whitelistedNames = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-forward
*
*/
@JsonProperty("Forward")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-forward")
private CharSequence forward;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-whitelistednames
*
*/
@JsonIgnore
public List getWhitelistedNames() {
return whitelistedNames;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-whitelistednames
*
*/
@JsonIgnore
public void setWhitelistedNames(List whitelistedNames) {
this.whitelistedNames = whitelistedNames;
}
public DistributionCookies withWhitelistedNames(List whitelistedNames) {
this.whitelistedNames = whitelistedNames;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-forward
*
*/
@JsonIgnore
public CharSequence getForward() {
return forward;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-forward
*
*/
@JsonIgnore
public void setForward(CharSequence forward) {
this.forward = forward;
}
public DistributionCookies withForward(CharSequence forward) {
this.forward = forward;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("whitelistedNames", whitelistedNames).append("forward", forward).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(whitelistedNames).append(forward).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DistributionCookies) == false) {
return false;
}
DistributionCookies rhs = ((DistributionCookies) other);
return new EqualsBuilder().append(whitelistedNames, rhs.whitelistedNames).append(forward, rhs.forward).isEquals();
}
}