Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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;
 

Represents the notification attributes of an identity, including whether an identity has Amazon Simple Notification Service (Amazon SNS) topics set for bounce, complaint, and/or delivery notifications, and whether feedback forwarding is enabled for bounce and complaint notifications.

 
 public class IdentityNotificationAttributes implements SerializableCloneable {

    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.
 
     private String bounceTopic;

    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.
 
     private String complaintTopic;

    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.
 
     private String deliveryTopic;

    
Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.
 
     private Boolean forwardingEnabled;

    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.

Returns:
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.
 
     public String getBounceTopic() {
         return ;
     }
    
    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.

Parameters:
bounceTopic The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.
 
     public void setBounceTopic(String bounceTopic) {
         this. = bounceTopic;
     }
    
    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.

Returns a reference to this object so that method calls can be chained together.

Parameters:
bounceTopic The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IdentityNotificationAttributes withBounceTopic(String bounceTopic) {
         this. = bounceTopic;
         return this;
     }

    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.

Returns:
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.
    public String getComplaintTopic() {
        return ;
    }
    
    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.

Parameters:
complaintTopic The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.
    public void setComplaintTopic(String complaintTopic) {
        this. = complaintTopic;
    }
    
    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.

Returns a reference to this object so that method calls can be chained together.

Parameters:
complaintTopic The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.
Returns:
A reference to this updated object so that method calls can be chained together.
    public IdentityNotificationAttributes withComplaintTopic(String complaintTopic) {
        this. = complaintTopic;
        return this;
    }

    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.

Returns:
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.
    public String getDeliveryTopic() {
        return ;
    }
    
    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.

Parameters:
deliveryTopic The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.
    public void setDeliveryTopic(String deliveryTopic) {
        this. = deliveryTopic;
    }
    
    
The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deliveryTopic The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.
Returns:
A reference to this updated object so that method calls can be chained together.
    public IdentityNotificationAttributes withDeliveryTopic(String deliveryTopic) {
        this. = deliveryTopic;
        return this;
    }

    
Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.

Returns:
Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.
    public Boolean isForwardingEnabled() {
        return ;
    }
    
    
Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.

Parameters:
forwardingEnabled Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.
    public void setForwardingEnabled(Boolean forwardingEnabled) {
        this. = forwardingEnabled;
    }
    
    
Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.

Returns a reference to this object so that method calls can be chained together.

Parameters:
forwardingEnabled Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.
Returns:
A reference to this updated object so that method calls can be chained together.
    public IdentityNotificationAttributes withForwardingEnabled(Boolean forwardingEnabled) {
        this. = forwardingEnabled;
        return this;
    }

    
Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.

Returns:
Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.
    public Boolean getForwardingEnabled() {
        return ;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getBounceTopic() != nullsb.append("BounceTopic: " + getBounceTopic() + ",");
        if (getComplaintTopic() != nullsb.append("ComplaintTopic: " + getComplaintTopic() + ",");
        if (getDeliveryTopic() != nullsb.append("DeliveryTopic: " + getDeliveryTopic() + ",");
        if (isForwardingEnabled() != nullsb.append("ForwardingEnabled: " + isForwardingEnabled() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getBounceTopic() == null) ? 0 : getBounceTopic().hashCode()); 
        hashCode = prime * hashCode + ((getComplaintTopic() == null) ? 0 : getComplaintTopic().hashCode()); 
        hashCode = prime * hashCode + ((getDeliveryTopic() == null) ? 0 : getDeliveryTopic().hashCode()); 
        hashCode = prime * hashCode + ((isForwardingEnabled() == null) ? 0 : isForwardingEnabled().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof IdentityNotificationAttributes == falsereturn false;
        
        if (other.getBounceTopic() == null ^ this.getBounceTopic() == nullreturn false;
        if (other.getBounceTopic() != null && other.getBounceTopic().equals(this.getBounceTopic()) == falsereturn false
        if (other.getComplaintTopic() == null ^ this.getComplaintTopic() == nullreturn false;
        if (other.getComplaintTopic() != null && other.getComplaintTopic().equals(this.getComplaintTopic()) == falsereturn false
        if (other.getDeliveryTopic() == null ^ this.getDeliveryTopic() == nullreturn false;
        if (other.getDeliveryTopic() != null && other.getDeliveryTopic().equals(this.getDeliveryTopic()) == falsereturn false
        if (other.isForwardingEnabled() == null ^ this.isForwardingEnabled() == nullreturn false;
        if (other.isForwardingEnabled() != null && other.isForwardingEnabled().equals(this.isForwardingEnabled()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (IdentityNotificationAttributessuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X