/* * Copyright 2010-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.iot.model; import java.io.Serializable; public class CreateCustomMetricResult implements Serializable { /** *
* The name of the custom metric to be used in the metric report. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*/
private String metricName;
/**
*
* The Amazon Resource Number (ARN) of the custom metric. For example,
* arn:aws-partition:iot:region:accountId:custommetric/metricName
*
* The name of the custom metric to be used in the metric report. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @return
* The name of the custom metric to be used in the metric report. *
*/ public String getMetricName() { return metricName; } /** ** The name of the custom metric to be used in the metric report. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @param metricName
* The name of the custom metric to be used in the metric report. *
*/ public void setMetricName(String metricName) { this.metricName = metricName; } /** ** The name of the custom metric to be used in the metric report. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @param metricName
* The name of the custom metric to be used in the metric report. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateCustomMetricResult withMetricName(String metricName) { this.metricName = metricName; return this; } /** *
* The Amazon Resource Number (ARN) of the custom metric. For example,
* arn:aws-partition:iot:region:accountId:custommetric/metricName
*
* The Amazon Resource Number (ARN) of the custom metric. For
* example,
* arn:aws-partition:iot:region:accountId:custommetric/metricName
*
* The Amazon Resource Number (ARN) of the custom metric. For example,
* arn:aws-partition:iot:region:accountId:custommetric/metricName
*
* The Amazon Resource Number (ARN) of the custom metric. For
* example,
* arn:aws-partition:iot:region:accountId:custommetric/metricName
*
* The Amazon Resource Number (ARN) of the custom metric. For example,
* arn:aws-partition:iot:region:accountId:custommetric/metricName
*
* Returns a reference to this object so that method calls can be chained * together. * * @param metricArn
* The Amazon Resource Number (ARN) of the custom metric. For
* example,
* arn:aws-partition:iot:region:accountId:custommetric/metricName
*