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

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


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;


/**
 * BucketBucketEncryption
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "ServerSideEncryptionConfiguration" }) public class BucketBucketEncryption implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html#cfn-s3-bucket-bucketencryption-serversideencryptionconfiguration * */ @JsonProperty("ServerSideEncryptionConfiguration") @JsonDeserialize(as = java.util.LinkedHashSet.class) @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html#cfn-s3-bucket-bucketencryption-serversideencryptionconfiguration") private Set> serverSideEncryptionConfiguration = new LinkedHashSet>(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html#cfn-s3-bucket-bucketencryption-serversideencryptionconfiguration * */ @JsonIgnore public Set> getServerSideEncryptionConfiguration() { return serverSideEncryptionConfiguration; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html#cfn-s3-bucket-bucketencryption-serversideencryptionconfiguration * */ @JsonIgnore public void setServerSideEncryptionConfiguration(Set> serverSideEncryptionConfiguration) { this.serverSideEncryptionConfiguration = serverSideEncryptionConfiguration; } public BucketBucketEncryption withServerSideEncryptionConfiguration(Set> serverSideEncryptionConfiguration) { this.serverSideEncryptionConfiguration = serverSideEncryptionConfiguration; return this; } @Override public String toString() { return new ToStringBuilder(this).append("serverSideEncryptionConfiguration", serverSideEncryptionConfiguration).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(serverSideEncryptionConfiguration).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof BucketBucketEncryption) == false) { return false; } BucketBucketEncryption rhs = ((BucketBucketEncryption) other); return new EqualsBuilder().append(serverSideEncryptionConfiguration, rhs.serverSideEncryptionConfiguration).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy