com.amazonaws.services.simpleemail.model.KinesisFirehoseDestination Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ses Show documentation
/*
* Copyright 2019-2024 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.simpleemail.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
*
*
* Event destinations, such as Amazon Kinesis Firehose, are associated with configuration sets, which enable you to
* publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class KinesisFirehoseDestination implements Serializable, Cloneable {
/**
*
* The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose
* stream.
*
*/
private String iAMRoleARN;
/**
*
* The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.
*
*/
private String deliveryStreamARN;
/**
*
* The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose
* stream.
*
*
* @param iAMRoleARN
* The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis
* Firehose stream.
*/
public void setIAMRoleARN(String iAMRoleARN) {
this.iAMRoleARN = iAMRoleARN;
}
/**
*
* The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose
* stream.
*
*
* @return The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis
* Firehose stream.
*/
public String getIAMRoleARN() {
return this.iAMRoleARN;
}
/**
*
* The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose
* stream.
*
*
* @param iAMRoleARN
* The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis
* Firehose stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public KinesisFirehoseDestination withIAMRoleARN(String iAMRoleARN) {
setIAMRoleARN(iAMRoleARN);
return this;
}
/**
*
* The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.
*
*
* @param deliveryStreamARN
* The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.
*/
public void setDeliveryStreamARN(String deliveryStreamARN) {
this.deliveryStreamARN = deliveryStreamARN;
}
/**
*
* The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.
*
*
* @return The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.
*/
public String getDeliveryStreamARN() {
return this.deliveryStreamARN;
}
/**
*
* The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.
*
*
* @param deliveryStreamARN
* The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public KinesisFirehoseDestination withDeliveryStreamARN(String deliveryStreamARN) {
setDeliveryStreamARN(deliveryStreamARN);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIAMRoleARN() != null)
sb.append("IAMRoleARN: ").append(getIAMRoleARN()).append(",");
if (getDeliveryStreamARN() != null)
sb.append("DeliveryStreamARN: ").append(getDeliveryStreamARN());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof KinesisFirehoseDestination == false)
return false;
KinesisFirehoseDestination other = (KinesisFirehoseDestination) obj;
if (other.getIAMRoleARN() == null ^ this.getIAMRoleARN() == null)
return false;
if (other.getIAMRoleARN() != null && other.getIAMRoleARN().equals(this.getIAMRoleARN()) == false)
return false;
if (other.getDeliveryStreamARN() == null ^ this.getDeliveryStreamARN() == null)
return false;
if (other.getDeliveryStreamARN() != null && other.getDeliveryStreamARN().equals(this.getDeliveryStreamARN()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIAMRoleARN() == null) ? 0 : getIAMRoleARN().hashCode());
hashCode = prime * hashCode + ((getDeliveryStreamARN() == null) ? 0 : getDeliveryStreamARN().hashCode());
return hashCode;
}
@Override
public KinesisFirehoseDestination clone() {
try {
return (KinesisFirehoseDestination) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}