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

com.amazonaws.services.config.model.DeliveryChannel Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
 * Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 *  http://aws.amazon.com/apache2.0
 *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

package com.amazonaws.services.config.model;

import java.io.Serializable;

/**
 * 

* A logical container used for storing the configuration changes of an AWS * resource. *

*/ public class DeliveryChannel implements Serializable, Cloneable { /** *

* The name of the delivery channel. By default, AWS Config automatically * assigns the name "default" when creating the delivery channel. * You cannot change the assigned name. *

*/ private String name; /** *

* The name of the Amazon S3 bucket used to store configuration history for * the delivery channel. *

*/ private String s3BucketName; /** *

* The prefix for the specified Amazon S3 bucket. *

*/ private String s3KeyPrefix; /** *

* The Amazon Resource Name (ARN) of the SNS topic that AWS Config delivers * notifications to. *

*/ private String snsTopicARN; private ConfigSnapshotDeliveryProperties configSnapshotDeliveryProperties; /** *

* The name of the delivery channel. By default, AWS Config automatically * assigns the name "default" when creating the delivery channel. * You cannot change the assigned name. *

* * @param name * The name of the delivery channel. By default, AWS Config * automatically assigns the name "default" when creating * the delivery channel. You cannot change the assigned name. */ public void setName(String name) { this.name = name; } /** *

* The name of the delivery channel. By default, AWS Config automatically * assigns the name "default" when creating the delivery channel. * You cannot change the assigned name. *

* * @return The name of the delivery channel. By default, AWS Config * automatically assigns the name "default" when creating * the delivery channel. You cannot change the assigned name. */ public String getName() { return this.name; } /** *

* The name of the delivery channel. By default, AWS Config automatically * assigns the name "default" when creating the delivery channel. * You cannot change the assigned name. *

* * @param name * The name of the delivery channel. By default, AWS Config * automatically assigns the name "default" when creating * the delivery channel. You cannot change the assigned name. * @return Returns a reference to this object so that method calls can be * chained together. */ public DeliveryChannel withName(String name) { setName(name); return this; } /** *

* The name of the Amazon S3 bucket used to store configuration history for * the delivery channel. *

* * @param s3BucketName * The name of the Amazon S3 bucket used to store configuration * history for the delivery channel. */ public void setS3BucketName(String s3BucketName) { this.s3BucketName = s3BucketName; } /** *

* The name of the Amazon S3 bucket used to store configuration history for * the delivery channel. *

* * @return The name of the Amazon S3 bucket used to store configuration * history for the delivery channel. */ public String getS3BucketName() { return this.s3BucketName; } /** *

* The name of the Amazon S3 bucket used to store configuration history for * the delivery channel. *

* * @param s3BucketName * The name of the Amazon S3 bucket used to store configuration * history for the delivery channel. * @return Returns a reference to this object so that method calls can be * chained together. */ public DeliveryChannel withS3BucketName(String s3BucketName) { setS3BucketName(s3BucketName); return this; } /** *

* The prefix for the specified Amazon S3 bucket. *

* * @param s3KeyPrefix * The prefix for the specified Amazon S3 bucket. */ public void setS3KeyPrefix(String s3KeyPrefix) { this.s3KeyPrefix = s3KeyPrefix; } /** *

* The prefix for the specified Amazon S3 bucket. *

* * @return The prefix for the specified Amazon S3 bucket. */ public String getS3KeyPrefix() { return this.s3KeyPrefix; } /** *

* The prefix for the specified Amazon S3 bucket. *

* * @param s3KeyPrefix * The prefix for the specified Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be * chained together. */ public DeliveryChannel withS3KeyPrefix(String s3KeyPrefix) { setS3KeyPrefix(s3KeyPrefix); return this; } /** *

* The Amazon Resource Name (ARN) of the SNS topic that AWS Config delivers * notifications to. *

* * @param snsTopicARN * The Amazon Resource Name (ARN) of the SNS topic that AWS Config * delivers notifications to. */ public void setSnsTopicARN(String snsTopicARN) { this.snsTopicARN = snsTopicARN; } /** *

* The Amazon Resource Name (ARN) of the SNS topic that AWS Config delivers * notifications to. *

* * @return The Amazon Resource Name (ARN) of the SNS topic that AWS Config * delivers notifications to. */ public String getSnsTopicARN() { return this.snsTopicARN; } /** *

* The Amazon Resource Name (ARN) of the SNS topic that AWS Config delivers * notifications to. *

* * @param snsTopicARN * The Amazon Resource Name (ARN) of the SNS topic that AWS Config * delivers notifications to. * @return Returns a reference to this object so that method calls can be * chained together. */ public DeliveryChannel withSnsTopicARN(String snsTopicARN) { setSnsTopicARN(snsTopicARN); return this; } /** * @param configSnapshotDeliveryProperties */ public void setConfigSnapshotDeliveryProperties( ConfigSnapshotDeliveryProperties configSnapshotDeliveryProperties) { this.configSnapshotDeliveryProperties = configSnapshotDeliveryProperties; } /** * @return */ public ConfigSnapshotDeliveryProperties getConfigSnapshotDeliveryProperties() { return this.configSnapshotDeliveryProperties; } /** * @param configSnapshotDeliveryProperties * @return Returns a reference to this object so that method calls can be * chained together. */ public DeliveryChannel withConfigSnapshotDeliveryProperties( ConfigSnapshotDeliveryProperties configSnapshotDeliveryProperties) { setConfigSnapshotDeliveryProperties(configSnapshotDeliveryProperties); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: " + getName() + ","); if (getS3BucketName() != null) sb.append("S3BucketName: " + getS3BucketName() + ","); if (getS3KeyPrefix() != null) sb.append("S3KeyPrefix: " + getS3KeyPrefix() + ","); if (getSnsTopicARN() != null) sb.append("SnsTopicARN: " + getSnsTopicARN() + ","); if (getConfigSnapshotDeliveryProperties() != null) sb.append("ConfigSnapshotDeliveryProperties: " + getConfigSnapshotDeliveryProperties()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeliveryChannel == false) return false; DeliveryChannel other = (DeliveryChannel) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getS3BucketName() == null ^ this.getS3BucketName() == null) return false; if (other.getS3BucketName() != null && other.getS3BucketName().equals(this.getS3BucketName()) == false) return false; if (other.getS3KeyPrefix() == null ^ this.getS3KeyPrefix() == null) return false; if (other.getS3KeyPrefix() != null && other.getS3KeyPrefix().equals(this.getS3KeyPrefix()) == false) return false; if (other.getSnsTopicARN() == null ^ this.getSnsTopicARN() == null) return false; if (other.getSnsTopicARN() != null && other.getSnsTopicARN().equals(this.getSnsTopicARN()) == false) return false; if (other.getConfigSnapshotDeliveryProperties() == null ^ this.getConfigSnapshotDeliveryProperties() == null) return false; if (other.getConfigSnapshotDeliveryProperties() != null && other.getConfigSnapshotDeliveryProperties().equals( this.getConfigSnapshotDeliveryProperties()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getS3BucketName() == null) ? 0 : getS3BucketName() .hashCode()); hashCode = prime * hashCode + ((getS3KeyPrefix() == null) ? 0 : getS3KeyPrefix().hashCode()); hashCode = prime * hashCode + ((getSnsTopicARN() == null) ? 0 : getSnsTopicARN().hashCode()); hashCode = prime * hashCode + ((getConfigSnapshotDeliveryProperties() == null) ? 0 : getConfigSnapshotDeliveryProperties().hashCode()); return hashCode; } @Override public DeliveryChannel clone() { try { return (DeliveryChannel) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy