code: public CloudWatchDestination withDimensionConfigurations(CloudWatchDimensionConfiguration... dimensionConfigurations) {
          if (this.dimensionConfigurations == null) {
              setDimensionConfigurations(new java.util.ArrayList<CloudWatchDimensionConfiguration>(dimensionConfigurations.length));
          }
          for (CloudWatchDimensionConfiguration ele : dimensionConfigurations) {
              this.dimensionConfigurations.add(ele);
          }
          return this;
      }
docs: <p>
  An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDimensionConfigurations(java.util.Collection)} or
  {@link #withDimensionConfigurations(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param dimensionConfigurations
  An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch.
  @return Returns a reference to this object so that method calls can be chained together.