/** * <p> * A CloudWatch metric dimension. * </p> * * @param dimensions * A CloudWatch metric dimension. * @return Returns a reference to this object so that method calls can be chained together. */ public CloudWatchAlarmDefinition withDimensions(java.util.Collection<MetricDimension> dimensions) { setDimensions(dimensions); return this; }
/** * <p> * A CloudWatch metric dimension. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDimensions(java.util.Collection)} or {@link #withDimensions(java.util.Collection)} if you want to * override the existing values. * </p> * * @param dimensions * A CloudWatch metric dimension. * @return Returns a reference to this object so that method calls can be chained together. */ public CloudWatchAlarmDefinition withDimensions(MetricDimension... dimensions) { if (this.dimensions == null) { setDimensions(new com.amazonaws.internal.SdkInternalList<MetricDimension>(dimensions.length)); } for (MetricDimension ele : dimensions) { this.dimensions.add(ele); } return this; }
cloudWatchAlarmDefinition.setDimensions(new ListUnmarshaller<MetricDimension>(MetricDimensionJsonUnmarshaller.getInstance()) .unmarshall(context));
/** * <p> * A CloudWatch metric dimension. * </p> * * @param dimensions * A CloudWatch metric dimension. * @return Returns a reference to this object so that method calls can be chained together. */ public CloudWatchAlarmDefinition withDimensions(java.util.Collection<MetricDimension> dimensions) { setDimensions(dimensions); return this; }
/** * <p> * A CloudWatch metric dimension. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDimensions(java.util.Collection)} or {@link #withDimensions(java.util.Collection)} if you want to * override the existing values. * </p> * * @param dimensions * A CloudWatch metric dimension. * @return Returns a reference to this object so that method calls can be chained together. */ public CloudWatchAlarmDefinition withDimensions(MetricDimension... dimensions) { if (this.dimensions == null) { setDimensions(new com.amazonaws.internal.SdkInternalList<MetricDimension>(dimensions.length)); } for (MetricDimension ele : dimensions) { this.dimensions.add(ele); } return this; }
cloudWatchAlarmDefinition.setDimensions(new ListUnmarshaller<MetricDimension>(MetricDimensionJsonUnmarshaller.getInstance()) .unmarshall(context));