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

com.amazonaws.services.simpleemailv2.model.PutConfigurationSetSuppressionOptionsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Simple Email module holds the client classes that are used for communicating with Amazon Simple Email Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.simpleemailv2.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* A request to change the account suppression list preferences for a specific configuration set. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutConfigurationSetSuppressionOptionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the configuration set to change the suppression list preferences for. *

*/ private String configurationSetName; /** *

* A list that contains the reasons that email addresses are automatically added to the suppression list for your * account. This list can contain any or all of the following: *

*
    *
  • *

    * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a complaint. *

    *
  • *
  • *

    * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a hard bounce. *

    *
  • *
*/ private java.util.List suppressedReasons; /** *

* The name of the configuration set to change the suppression list preferences for. *

* * @param configurationSetName * The name of the configuration set to change the suppression list preferences for. */ public void setConfigurationSetName(String configurationSetName) { this.configurationSetName = configurationSetName; } /** *

* The name of the configuration set to change the suppression list preferences for. *

* * @return The name of the configuration set to change the suppression list preferences for. */ public String getConfigurationSetName() { return this.configurationSetName; } /** *

* The name of the configuration set to change the suppression list preferences for. *

* * @param configurationSetName * The name of the configuration set to change the suppression list preferences for. * @return Returns a reference to this object so that method calls can be chained together. */ public PutConfigurationSetSuppressionOptionsRequest withConfigurationSetName(String configurationSetName) { setConfigurationSetName(configurationSetName); return this; } /** *

* A list that contains the reasons that email addresses are automatically added to the suppression list for your * account. This list can contain any or all of the following: *

*
    *
  • *

    * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a complaint. *

    *
  • *
  • *

    * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a hard bounce. *

    *
  • *
* * @return A list that contains the reasons that email addresses are automatically added to the suppression list for * your account. This list can contain any or all of the following:

*
    *
  • *

    * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a complaint. *

    *
  • *
  • *

    * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce. *

    *
  • * @see SuppressionListReason */ public java.util.List getSuppressedReasons() { return suppressedReasons; } /** *

    * A list that contains the reasons that email addresses are automatically added to the suppression list for your * account. This list can contain any or all of the following: *

    *
      *
    • *

      * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a complaint. *

      *
    • *
    • *

      * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a hard bounce. *

      *
    • *
    * * @param suppressedReasons * A list that contains the reasons that email addresses are automatically added to the suppression list for * your account. This list can contain any or all of the following:

    *
      *
    • *

      * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a complaint. *

      *
    • *
    • *

      * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce. *

      *
    • * @see SuppressionListReason */ public void setSuppressedReasons(java.util.Collection suppressedReasons) { if (suppressedReasons == null) { this.suppressedReasons = null; return; } this.suppressedReasons = new java.util.ArrayList(suppressedReasons); } /** *

      * A list that contains the reasons that email addresses are automatically added to the suppression list for your * account. This list can contain any or all of the following: *

      *
        *
      • *

        * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a complaint. *

        *
      • *
      • *

        * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a hard bounce. *

        *
      • *
      *

      * NOTE: This method appends the values to the existing list (if any). Use * {@link #setSuppressedReasons(java.util.Collection)} or {@link #withSuppressedReasons(java.util.Collection)} if * you want to override the existing values. *

      * * @param suppressedReasons * A list that contains the reasons that email addresses are automatically added to the suppression list for * your account. This list can contain any or all of the following:

      *
        *
      • *

        * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a complaint. *

        *
      • *
      • *

        * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see SuppressionListReason */ public PutConfigurationSetSuppressionOptionsRequest withSuppressedReasons(String... suppressedReasons) { if (this.suppressedReasons == null) { setSuppressedReasons(new java.util.ArrayList(suppressedReasons.length)); } for (String ele : suppressedReasons) { this.suppressedReasons.add(ele); } return this; } /** *

        * A list that contains the reasons that email addresses are automatically added to the suppression list for your * account. This list can contain any or all of the following: *

        *
          *
        • *

          * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a complaint. *

          *
        • *
        • *

          * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a hard bounce. *

          *
        • *
        * * @param suppressedReasons * A list that contains the reasons that email addresses are automatically added to the suppression list for * your account. This list can contain any or all of the following:

        *
          *
        • *

          * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a complaint. *

          *
        • *
        • *

          * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see SuppressionListReason */ public PutConfigurationSetSuppressionOptionsRequest withSuppressedReasons(java.util.Collection suppressedReasons) { setSuppressedReasons(suppressedReasons); return this; } /** *

          * A list that contains the reasons that email addresses are automatically added to the suppression list for your * account. This list can contain any or all of the following: *

          *
            *
          • *

            * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a complaint. *

            *
          • *
          • *

            * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message * sent to that address results in a hard bounce. *

            *
          • *
          * * @param suppressedReasons * A list that contains the reasons that email addresses are automatically added to the suppression list for * your account. This list can contain any or all of the following:

          *
            *
          • *

            * COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a complaint. *

            *
          • *
          • *

            * BOUNCE – Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce. *

            *
          • * @return Returns a reference to this object so that method calls can be chained together. * @see SuppressionListReason */ public PutConfigurationSetSuppressionOptionsRequest withSuppressedReasons(SuppressionListReason... suppressedReasons) { java.util.ArrayList suppressedReasonsCopy = new java.util.ArrayList(suppressedReasons.length); for (SuppressionListReason value : suppressedReasons) { suppressedReasonsCopy.add(value.toString()); } if (getSuppressedReasons() == null) { setSuppressedReasons(suppressedReasonsCopy); } else { getSuppressedReasons().addAll(suppressedReasonsCopy); } 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 (getConfigurationSetName() != null) sb.append("ConfigurationSetName: ").append(getConfigurationSetName()).append(","); if (getSuppressedReasons() != null) sb.append("SuppressedReasons: ").append(getSuppressedReasons()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutConfigurationSetSuppressionOptionsRequest == false) return false; PutConfigurationSetSuppressionOptionsRequest other = (PutConfigurationSetSuppressionOptionsRequest) obj; if (other.getConfigurationSetName() == null ^ this.getConfigurationSetName() == null) return false; if (other.getConfigurationSetName() != null && other.getConfigurationSetName().equals(this.getConfigurationSetName()) == false) return false; if (other.getSuppressedReasons() == null ^ this.getSuppressedReasons() == null) return false; if (other.getSuppressedReasons() != null && other.getSuppressedReasons().equals(this.getSuppressedReasons()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSetName() == null) ? 0 : getConfigurationSetName().hashCode()); hashCode = prime * hashCode + ((getSuppressedReasons() == null) ? 0 : getSuppressedReasons().hashCode()); return hashCode; } @Override public PutConfigurationSetSuppressionOptionsRequest clone() { return (PutConfigurationSetSuppressionOptionsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy