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

shiver.me.timbers.aws.redshift.ClusterLoggingProperties Maven / Gradle / Ivy


package shiver.me.timbers.aws.redshift;

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;


/**
 * ClusterLoggingProperties
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "BucketName", "S3KeyPrefix" }) public class ClusterLoggingProperties implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-bucketname * */ @JsonProperty("BucketName") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-bucketname") private CharSequence bucketName; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-s3keyprefix * */ @JsonProperty("S3KeyPrefix") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-s3keyprefix") private CharSequence s3KeyPrefix; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-bucketname * */ @JsonIgnore public CharSequence getBucketName() { return bucketName; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-bucketname * */ @JsonIgnore public void setBucketName(CharSequence bucketName) { this.bucketName = bucketName; } public ClusterLoggingProperties withBucketName(CharSequence bucketName) { this.bucketName = bucketName; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-s3keyprefix * */ @JsonIgnore public CharSequence getS3KeyPrefix() { return s3KeyPrefix; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-s3keyprefix * */ @JsonIgnore public void setS3KeyPrefix(CharSequence s3KeyPrefix) { this.s3KeyPrefix = s3KeyPrefix; } public ClusterLoggingProperties withS3KeyPrefix(CharSequence s3KeyPrefix) { this.s3KeyPrefix = s3KeyPrefix; return this; } @Override public String toString() { return new ToStringBuilder(this).append("bucketName", bucketName).append("s3KeyPrefix", s3KeyPrefix).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(bucketName).append(s3KeyPrefix).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ClusterLoggingProperties) == false) { return false; } ClusterLoggingProperties rhs = ((ClusterLoggingProperties) other); return new EqualsBuilder().append(bucketName, rhs.bucketName).append(s3KeyPrefix, rhs.s3KeyPrefix).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy