shiver.me.timbers.aws.mediastore.Container Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.mediastore;
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;
/**
* Container
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Policy",
"MetricPolicy",
"ContainerName",
"CorsPolicy",
"LifecyclePolicy",
"AccessLoggingEnabled",
"Tags"
})
public class Container {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-policy
*
*/
@JsonProperty("Policy")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-policy")
private CharSequence policy;
/**
* ContainerMetricPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediastore-container-metricpolicy.html
*
*/
@JsonProperty("MetricPolicy")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediastore-container-metricpolicy.html")
private Property metricPolicy;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-containername
*
*/
@JsonProperty("ContainerName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-containername")
private CharSequence containerName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-corspolicy
*
*/
@JsonProperty("CorsPolicy")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-corspolicy")
private List> corsPolicy = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-lifecyclepolicy
*
*/
@JsonProperty("LifecyclePolicy")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-lifecyclepolicy")
private CharSequence lifecyclePolicy;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-accessloggingenabled
*
*/
@JsonProperty("AccessLoggingEnabled")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-accessloggingenabled")
private CharSequence accessLoggingEnabled;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-tags
*
*/
@JsonProperty("Tags")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-tags")
private List> tags = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-policy
*
*/
@JsonIgnore
public CharSequence getPolicy() {
return policy;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-policy
*
*/
@JsonIgnore
public void setPolicy(CharSequence policy) {
this.policy = policy;
}
public Container withPolicy(CharSequence policy) {
this.policy = policy;
return this;
}
/**
* ContainerMetricPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediastore-container-metricpolicy.html
*
*/
@JsonIgnore
public Property getMetricPolicy() {
return metricPolicy;
}
/**
* ContainerMetricPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediastore-container-metricpolicy.html
*
*/
@JsonIgnore
public void setMetricPolicy(Property metricPolicy) {
this.metricPolicy = metricPolicy;
}
public Container withMetricPolicy(Property metricPolicy) {
this.metricPolicy = metricPolicy;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-containername
*
*/
@JsonIgnore
public CharSequence getContainerName() {
return containerName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-containername
*
*/
@JsonIgnore
public void setContainerName(CharSequence containerName) {
this.containerName = containerName;
}
public Container withContainerName(CharSequence containerName) {
this.containerName = containerName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-corspolicy
*
*/
@JsonIgnore
public List> getCorsPolicy() {
return corsPolicy;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-corspolicy
*
*/
@JsonIgnore
public void setCorsPolicy(List> corsPolicy) {
this.corsPolicy = corsPolicy;
}
public Container withCorsPolicy(List> corsPolicy) {
this.corsPolicy = corsPolicy;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-lifecyclepolicy
*
*/
@JsonIgnore
public CharSequence getLifecyclePolicy() {
return lifecyclePolicy;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-lifecyclepolicy
*
*/
@JsonIgnore
public void setLifecyclePolicy(CharSequence lifecyclePolicy) {
this.lifecyclePolicy = lifecyclePolicy;
}
public Container withLifecyclePolicy(CharSequence lifecyclePolicy) {
this.lifecyclePolicy = lifecyclePolicy;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-accessloggingenabled
*
*/
@JsonIgnore
public CharSequence getAccessLoggingEnabled() {
return accessLoggingEnabled;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-accessloggingenabled
*
*/
@JsonIgnore
public void setAccessLoggingEnabled(CharSequence accessLoggingEnabled) {
this.accessLoggingEnabled = accessLoggingEnabled;
}
public Container withAccessLoggingEnabled(CharSequence accessLoggingEnabled) {
this.accessLoggingEnabled = accessLoggingEnabled;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-tags
*
*/
@JsonIgnore
public List> getTags() {
return tags;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-tags
*
*/
@JsonIgnore
public void setTags(List> tags) {
this.tags = tags;
}
public Container withTags(List> tags) {
this.tags = tags;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("policy", policy).append("metricPolicy", metricPolicy).append("containerName", containerName).append("corsPolicy", corsPolicy).append("lifecyclePolicy", lifecyclePolicy).append("accessLoggingEnabled", accessLoggingEnabled).append("tags", tags).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(lifecyclePolicy).append(containerName).append(metricPolicy).append(corsPolicy).append(policy).append(accessLoggingEnabled).append(tags).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Container) == false) {
return false;
}
Container rhs = ((Container) other);
return new EqualsBuilder().append(lifecyclePolicy, rhs.lifecyclePolicy).append(containerName, rhs.containerName).append(metricPolicy, rhs.metricPolicy).append(corsPolicy, rhs.corsPolicy).append(policy, rhs.policy).append(accessLoggingEnabled, rhs.accessLoggingEnabled).append(tags, rhs.tags).isEquals();
}
}