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

com.amazonaws.services.simpleemail.model.CloudWatchDimensionConfiguration Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
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.simpleemail.model;

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

/**
 * 

* Contains the dimension configuration to use when you publish email sending events to Amazon CloudWatch. *

*

* For information about publishing email sending events to Amazon CloudWatch, see the Amazon SES Developer Guide. *

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

* The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must meet the * following requirements: *

*
    *
  • *

    * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or colons (:). *

    *
  • *
  • *

    * Contain 256 characters or fewer. *

    *
  • *
*/ private String dimensionName; /** *

* The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message * tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own email * headers, specify emailHeader. To put a custom tag on any link included in your email, specify * linkTag. *

*/ private String dimensionValueSource; /** *

* The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the * dimension when you send an email. The default value must meet the following requirements: *

*
    *
  • *

    * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at signs (@), or periods (.). *

    *
  • *
  • *

    * Contain 256 characters or fewer. *

    *
  • *
*/ private String defaultDimensionValue; /** *

* The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must meet the * following requirements: *

*
    *
  • *

    * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or colons (:). *

    *
  • *
  • *

    * Contain 256 characters or fewer. *

    *
  • *
* * @param dimensionName * The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must meet the * following requirements:

*
    *
  • *

    * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or colons (:). *

    *
  • *
  • *

    * Contain 256 characters or fewer. *

    *
  • */ public void setDimensionName(String dimensionName) { this.dimensionName = dimensionName; } /** *

    * The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must meet the * following requirements: *

    *
      *
    • *

      * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or colons (:). *

      *
    • *
    • *

      * Contain 256 characters or fewer. *

      *
    • *
    * * @return The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must meet * the following requirements:

    *
      *
    • *

      * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or colons (:). *

      *
    • *
    • *

      * Contain 256 characters or fewer. *

      *
    • */ public String getDimensionName() { return this.dimensionName; } /** *

      * The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must meet the * following requirements: *

      *
        *
      • *

        * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or colons (:). *

        *
      • *
      • *

        * Contain 256 characters or fewer. *

        *
      • *
      * * @param dimensionName * The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must meet the * following requirements:

      *
        *
      • *

        * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or colons (:). *

        *
      • *
      • *

        * Contain 256 characters or fewer. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public CloudWatchDimensionConfiguration withDimensionName(String dimensionName) { setDimensionName(dimensionName); return this; } /** *

        * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message * tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own email * headers, specify emailHeader. To put a custom tag on any link included in your email, specify * linkTag. *

        * * @param dimensionValueSource * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the * message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own * email headers, specify emailHeader. To put a custom tag on any link included in your email, * specify linkTag. * @see DimensionValueSource */ public void setDimensionValueSource(String dimensionValueSource) { this.dimensionValueSource = dimensionValueSource; } /** *

        * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message * tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own email * headers, specify emailHeader. To put a custom tag on any link included in your email, specify * linkTag. *

        * * @return The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the * message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own * email headers, specify emailHeader. To put a custom tag on any link included in your email, * specify linkTag. * @see DimensionValueSource */ public String getDimensionValueSource() { return this.dimensionValueSource; } /** *

        * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message * tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own email * headers, specify emailHeader. To put a custom tag on any link included in your email, specify * linkTag. *

        * * @param dimensionValueSource * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the * message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own * email headers, specify emailHeader. To put a custom tag on any link included in your email, * specify linkTag. * @return Returns a reference to this object so that method calls can be chained together. * @see DimensionValueSource */ public CloudWatchDimensionConfiguration withDimensionValueSource(String dimensionValueSource) { setDimensionValueSource(dimensionValueSource); return this; } /** *

        * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message * tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own email * headers, specify emailHeader. To put a custom tag on any link included in your email, specify * linkTag. *

        * * @param dimensionValueSource * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the * message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own * email headers, specify emailHeader. To put a custom tag on any link included in your email, * specify linkTag. * @see DimensionValueSource */ public void setDimensionValueSource(DimensionValueSource dimensionValueSource) { withDimensionValueSource(dimensionValueSource); } /** *

        * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message * tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own email * headers, specify emailHeader. To put a custom tag on any link included in your email, specify * linkTag. *

        * * @param dimensionValueSource * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the * message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the * SendEmail/SendRawEmail API, specify messageTag. To use your own * email headers, specify emailHeader. To put a custom tag on any link included in your email, * specify linkTag. * @return Returns a reference to this object so that method calls can be chained together. * @see DimensionValueSource */ public CloudWatchDimensionConfiguration withDimensionValueSource(DimensionValueSource dimensionValueSource) { this.dimensionValueSource = dimensionValueSource.toString(); return this; } /** *

        * The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the * dimension when you send an email. The default value must meet the following requirements: *

        *
          *
        • *

          * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at signs (@), or periods (.). *

          *
        • *
        • *

          * Contain 256 characters or fewer. *

          *
        • *
        * * @param defaultDimensionValue * The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value * of the dimension when you send an email. The default value must meet the following requirements:

        *
          *
        • *

          * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at signs (@), or * periods (.). *

          *
        • *
        • *

          * Contain 256 characters or fewer. *

          *
        • */ public void setDefaultDimensionValue(String defaultDimensionValue) { this.defaultDimensionValue = defaultDimensionValue; } /** *

          * The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the * dimension when you send an email. The default value must meet the following requirements: *

          *
            *
          • *

            * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at signs (@), or periods (.). *

            *
          • *
          • *

            * Contain 256 characters or fewer. *

            *
          • *
          * * @return The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value * of the dimension when you send an email. The default value must meet the following requirements:

          *
            *
          • *

            * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at signs (@), or * periods (.). *

            *
          • *
          • *

            * Contain 256 characters or fewer. *

            *
          • */ public String getDefaultDimensionValue() { return this.defaultDimensionValue; } /** *

            * The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the * dimension when you send an email. The default value must meet the following requirements: *

            *
              *
            • *

              * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at signs (@), or periods (.). *

              *
            • *
            • *

              * Contain 256 characters or fewer. *

              *
            • *
            * * @param defaultDimensionValue * The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value * of the dimension when you send an email. The default value must meet the following requirements:

            *
              *
            • *

              * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at signs (@), or * periods (.). *

              *
            • *
            • *

              * Contain 256 characters or fewer. *

              *
            • * @return Returns a reference to this object so that method calls can be chained together. */ public CloudWatchDimensionConfiguration withDefaultDimensionValue(String defaultDimensionValue) { setDefaultDimensionValue(defaultDimensionValue); 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 (getDimensionName() != null) sb.append("DimensionName: ").append(getDimensionName()).append(","); if (getDimensionValueSource() != null) sb.append("DimensionValueSource: ").append(getDimensionValueSource()).append(","); if (getDefaultDimensionValue() != null) sb.append("DefaultDimensionValue: ").append(getDefaultDimensionValue()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CloudWatchDimensionConfiguration == false) return false; CloudWatchDimensionConfiguration other = (CloudWatchDimensionConfiguration) obj; if (other.getDimensionName() == null ^ this.getDimensionName() == null) return false; if (other.getDimensionName() != null && other.getDimensionName().equals(this.getDimensionName()) == false) return false; if (other.getDimensionValueSource() == null ^ this.getDimensionValueSource() == null) return false; if (other.getDimensionValueSource() != null && other.getDimensionValueSource().equals(this.getDimensionValueSource()) == false) return false; if (other.getDefaultDimensionValue() == null ^ this.getDefaultDimensionValue() == null) return false; if (other.getDefaultDimensionValue() != null && other.getDefaultDimensionValue().equals(this.getDefaultDimensionValue()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDimensionName() == null) ? 0 : getDimensionName().hashCode()); hashCode = prime * hashCode + ((getDimensionValueSource() == null) ? 0 : getDimensionValueSource().hashCode()); hashCode = prime * hashCode + ((getDefaultDimensionValue() == null) ? 0 : getDefaultDimensionValue().hashCode()); return hashCode; } @Override public CloudWatchDimensionConfiguration clone() { try { return (CloudWatchDimensionConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy