public CloudWatchDimensionConfiguration withDimensionName(String dimensionName) {
        setDimensionName(dimensionName);
        return this;
    }
<p>
The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the
following criteria:
</p>
<ul>
<li>
<p>
It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
</p>
</li>
<li>
<p>
It can contain no more than 256 characters.
</p>
</li>
</ul>

@param dimensionName
       The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet
       the following criteria:</p>
       <ul>
       <li>
       <p>
       It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
       </p>
       </li>
       <li>
       <p>
       It can contain no more than 256 characters.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpointemail/src/main/java/com/amazonaws/services/pinpointemail/model/CloudWatchDimensionConfiguration.java