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

shiver.me.timbers.aws.s3.BucketRule Maven / Gradle / Ivy

Go to download

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.s3;

import java.util.LinkedHashSet;
import java.util.Set;
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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
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;


/**
 * BucketRule
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "AbortIncompleteMultipartUpload", "ExpirationDate", "ExpirationInDays", "Id", "NoncurrentVersionExpirationInDays", "NoncurrentVersionTransition", "NoncurrentVersionTransitions", "Prefix", "Status", "TagFilters", "Transition", "Transitions" }) public class BucketRule implements Property { /** * BucketAbortIncompleteMultipartUpload *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-abortincompletemultipartupload.html * */ @JsonProperty("AbortIncompleteMultipartUpload") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-abortincompletemultipartupload.html") private Property abortIncompleteMultipartUpload; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationdate * */ @JsonProperty("ExpirationDate") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationdate") private CharSequence expirationDate; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationindays * */ @JsonProperty("ExpirationInDays") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationindays") private Number expirationInDays; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-id * */ @JsonProperty("Id") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-id") private CharSequence id; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversionexpirationindays * */ @JsonProperty("NoncurrentVersionExpirationInDays") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversionexpirationindays") private Number noncurrentVersionExpirationInDays; /** * BucketNoncurrentVersionTransition *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html * */ @JsonProperty("NoncurrentVersionTransition") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html") private Property noncurrentVersionTransition; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversiontransitions * */ @JsonProperty("NoncurrentVersionTransitions") @JsonDeserialize(as = java.util.LinkedHashSet.class) @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversiontransitions") private Set> noncurrentVersionTransitions = new LinkedHashSet>(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-prefix * */ @JsonProperty("Prefix") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-prefix") private CharSequence prefix; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-status * */ @JsonProperty("Status") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-status") private CharSequence status; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-tagfilters * */ @JsonProperty("TagFilters") @JsonDeserialize(as = java.util.LinkedHashSet.class) @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-tagfilters") private Set> tagFilters = new LinkedHashSet>(); /** * BucketNoncurrentVersionTransition *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html * */ @JsonProperty("Transition") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html") private Property transition; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-transitions * */ @JsonProperty("Transitions") @JsonDeserialize(as = java.util.LinkedHashSet.class) @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-transitions") private Set> transitions = new LinkedHashSet>(); /** * BucketAbortIncompleteMultipartUpload *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-abortincompletemultipartupload.html * */ @JsonIgnore public Property getAbortIncompleteMultipartUpload() { return abortIncompleteMultipartUpload; } /** * BucketAbortIncompleteMultipartUpload *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-abortincompletemultipartupload.html * */ @JsonIgnore public void setAbortIncompleteMultipartUpload(Property abortIncompleteMultipartUpload) { this.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload; } public BucketRule withAbortIncompleteMultipartUpload(Property abortIncompleteMultipartUpload) { this.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationdate * */ @JsonIgnore public CharSequence getExpirationDate() { return expirationDate; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationdate * */ @JsonIgnore public void setExpirationDate(CharSequence expirationDate) { this.expirationDate = expirationDate; } public BucketRule withExpirationDate(CharSequence expirationDate) { this.expirationDate = expirationDate; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationindays * */ @JsonIgnore public Number getExpirationInDays() { return expirationInDays; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationindays * */ @JsonIgnore public void setExpirationInDays(Number expirationInDays) { this.expirationInDays = expirationInDays; } public BucketRule withExpirationInDays(Number expirationInDays) { this.expirationInDays = expirationInDays; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-id * */ @JsonIgnore public CharSequence getId() { return id; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-id * */ @JsonIgnore public void setId(CharSequence id) { this.id = id; } public BucketRule withId(CharSequence id) { this.id = id; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversionexpirationindays * */ @JsonIgnore public Number getNoncurrentVersionExpirationInDays() { return noncurrentVersionExpirationInDays; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversionexpirationindays * */ @JsonIgnore public void setNoncurrentVersionExpirationInDays(Number noncurrentVersionExpirationInDays) { this.noncurrentVersionExpirationInDays = noncurrentVersionExpirationInDays; } public BucketRule withNoncurrentVersionExpirationInDays(Number noncurrentVersionExpirationInDays) { this.noncurrentVersionExpirationInDays = noncurrentVersionExpirationInDays; return this; } /** * BucketNoncurrentVersionTransition *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html * */ @JsonIgnore public Property getNoncurrentVersionTransition() { return noncurrentVersionTransition; } /** * BucketNoncurrentVersionTransition *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html * */ @JsonIgnore public void setNoncurrentVersionTransition(Property noncurrentVersionTransition) { this.noncurrentVersionTransition = noncurrentVersionTransition; } public BucketRule withNoncurrentVersionTransition(Property noncurrentVersionTransition) { this.noncurrentVersionTransition = noncurrentVersionTransition; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversiontransitions * */ @JsonIgnore public Set> getNoncurrentVersionTransitions() { return noncurrentVersionTransitions; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversiontransitions * */ @JsonIgnore public void setNoncurrentVersionTransitions(Set> noncurrentVersionTransitions) { this.noncurrentVersionTransitions = noncurrentVersionTransitions; } public BucketRule withNoncurrentVersionTransitions(Set> noncurrentVersionTransitions) { this.noncurrentVersionTransitions = noncurrentVersionTransitions; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-prefix * */ @JsonIgnore public CharSequence getPrefix() { return prefix; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-prefix * */ @JsonIgnore public void setPrefix(CharSequence prefix) { this.prefix = prefix; } public BucketRule withPrefix(CharSequence prefix) { this.prefix = prefix; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-status * */ @JsonIgnore public CharSequence getStatus() { return status; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-status * */ @JsonIgnore public void setStatus(CharSequence status) { this.status = status; } public BucketRule withStatus(CharSequence status) { this.status = status; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-tagfilters * */ @JsonIgnore public Set> getTagFilters() { return tagFilters; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-tagfilters * */ @JsonIgnore public void setTagFilters(Set> tagFilters) { this.tagFilters = tagFilters; } public BucketRule withTagFilters(Set> tagFilters) { this.tagFilters = tagFilters; return this; } /** * BucketNoncurrentVersionTransition *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html * */ @JsonIgnore public Property getTransition() { return transition; } /** * BucketNoncurrentVersionTransition *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html * */ @JsonIgnore public void setTransition(Property transition) { this.transition = transition; } public BucketRule withTransition(Property transition) { this.transition = transition; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-transitions * */ @JsonIgnore public Set> getTransitions() { return transitions; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-transitions * */ @JsonIgnore public void setTransitions(Set> transitions) { this.transitions = transitions; } public BucketRule withTransitions(Set> transitions) { this.transitions = transitions; return this; } @Override public String toString() { return new ToStringBuilder(this).append("abortIncompleteMultipartUpload", abortIncompleteMultipartUpload).append("expirationDate", expirationDate).append("expirationInDays", expirationInDays).append("id", id).append("noncurrentVersionExpirationInDays", noncurrentVersionExpirationInDays).append("noncurrentVersionTransition", noncurrentVersionTransition).append("noncurrentVersionTransitions", noncurrentVersionTransitions).append("prefix", prefix).append("status", status).append("tagFilters", tagFilters).append("transition", transition).append("transitions", transitions).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(prefix).append(abortIncompleteMultipartUpload).append(transitions).append(noncurrentVersionTransitions).append(transition).append(expirationInDays).append(noncurrentVersionTransition).append(tagFilters).append(id).append(noncurrentVersionExpirationInDays).append(expirationDate).append(status).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof BucketRule) == false) { return false; } BucketRule rhs = ((BucketRule) other); return new EqualsBuilder().append(prefix, rhs.prefix).append(abortIncompleteMultipartUpload, rhs.abortIncompleteMultipartUpload).append(transitions, rhs.transitions).append(noncurrentVersionTransitions, rhs.noncurrentVersionTransitions).append(transition, rhs.transition).append(expirationInDays, rhs.expirationInDays).append(noncurrentVersionTransition, rhs.noncurrentVersionTransition).append(tagFilters, rhs.tagFilters).append(id, rhs.id).append(noncurrentVersionExpirationInDays, rhs.noncurrentVersionExpirationInDays).append(expirationDate, rhs.expirationDate).append(status, rhs.status).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy