/* * Copyright 2018-2023 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.pinpointemail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object that defines the dimension configuration to use when you send Amazon Pinpoint email events to Amazon * CloudWatch. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CloudWatchDimensionConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the * following criteria: *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
*
* The location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. If you want
* Amazon Pinpoint to use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the
* SendEmail/SendRawEmail API, choose messageTag
. If you want Amazon Pinpoint to use your own email
* headers, choose emailHeader
. If you want Amazon Pinpoint to use link tags, choose
* linkTags
.
*
* The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the * dimension when you send an email. This value has to meet the following criteria: *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the * following criteria: *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the * following criteria: *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the * following criteria: *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
*
* The location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. If you want
* Amazon Pinpoint to use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the
* SendEmail/SendRawEmail API, choose messageTag
. If you want Amazon Pinpoint to use your own email
* headers, choose emailHeader
. If you want Amazon Pinpoint to use link tags, choose
* linkTags
.
*
messageTag
. If you want Amazon Pinpoint
* to use your own email headers, choose emailHeader
. If you want Amazon Pinpoint to use link
* tags, choose linkTags
.
* @see DimensionValueSource
*/
public void setDimensionValueSource(String dimensionValueSource) {
this.dimensionValueSource = dimensionValueSource;
}
/**
*
* The location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. If you want
* Amazon Pinpoint to use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the
* SendEmail/SendRawEmail API, choose messageTag
. If you want Amazon Pinpoint to use your own email
* headers, choose emailHeader
. If you want Amazon Pinpoint to use link tags, choose
* linkTags
.
*
messageTag
. If you want Amazon Pinpoint
* to use your own email headers, choose emailHeader
. If you want Amazon Pinpoint to use link
* tags, choose linkTags
.
* @see DimensionValueSource
*/
public String getDimensionValueSource() {
return this.dimensionValueSource;
}
/**
*
* The location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. If you want
* Amazon Pinpoint to use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the
* SendEmail/SendRawEmail API, choose messageTag
. If you want Amazon Pinpoint to use your own email
* headers, choose emailHeader
. If you want Amazon Pinpoint to use link tags, choose
* linkTags
.
*
messageTag
. If you want Amazon Pinpoint
* to use your own email headers, choose emailHeader
. If you want Amazon Pinpoint to use link
* tags, choose linkTags
.
* @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 location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. If you want
* Amazon Pinpoint to use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the
* SendEmail/SendRawEmail API, choose messageTag
. If you want Amazon Pinpoint to use your own email
* headers, choose emailHeader
. If you want Amazon Pinpoint to use link tags, choose
* linkTags
.
*
messageTag
. If you want Amazon Pinpoint
* to use your own email headers, choose emailHeader
. If you want Amazon Pinpoint to use link
* tags, choose linkTags
.
* @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 don't provide the value of the * dimension when you send an email. This value has to meet the following criteria: *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the * dimension when you send an email. This value has to meet the following criteria: *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the * dimension when you send an email. This value has to meet the following criteria: *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
** It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). *
** It can contain no more than 256 characters. *
*