/*
* 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.iot.model;
import java.io.Serializable;
import javax.annotation.Generated;
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeCustomMetricResult extends com.amazonaws.AmazonWebServiceResult
* The name of the custom metric.
*
* The Amazon Resource Number (ARN) of the custom metric.
*
* The type of the custom metric.
*
* The type
* Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this
* name as the metric identifier in the device metric report. Can be updated.
*
* The creation date of the custom metric in milliseconds since epoch.
*
* The time the custom metric was last modified in milliseconds since epoch.
*
* The name of the custom metric.
*
* The name of the custom metric.
*
* The name of the custom metric.
*
* The Amazon Resource Number (ARN) of the custom metric.
*
* The Amazon Resource Number (ARN) of the custom metric.
*
* The Amazon Resource Number (ARN) of the custom metric.
*
* The type of the custom metric.
*
* The type number
only takes a single metric value as an input, but while submitting the metrics value
* in the DeviceMetrics report, it must be passed as an array with a single value.
* number
only takes a single metric value as an input, but while submitting the metrics value
* in the DeviceMetrics report, it must be passed as an array with a single value.
*
* The type number
only takes a single metric value as an input, but while submitting the
* metrics value in the DeviceMetrics report, it must be passed as an array with a single value.
*
* The type of the custom metric. *
*
* The type number
only takes a single metric value as an input, but while submitting the metrics value
* in the DeviceMetrics report, it must be passed as an array with a single value.
*
* The type number
only takes a single metric value as an input, but while submitting the
* metrics value in the DeviceMetrics report, it must be passed as an array with a single value.
*
* The type of the custom metric. *
*
* The type number
only takes a single metric value as an input, but while submitting the metrics value
* in the DeviceMetrics report, it must be passed as an array with a single value.
*
* The type number
only takes a single metric value as an input, but while submitting the
* metrics value in the DeviceMetrics report, it must be passed as an array with a single value.
*
* The type of the custom metric. *
*
* The type number
only takes a single metric value as an input, but while submitting the metrics value
* in the DeviceMetrics report, it must be passed as an array with a single value.
*
* The type number
only takes a single metric value as an input, but while submitting the
* metrics value in the DeviceMetrics report, it must be passed as an array with a single value.
*
* Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this * name as the metric identifier in the device metric report. Can be updated. *
* * @param displayName * Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't * use this name as the metric identifier in the device metric report. Can be updated. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** ** Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this * name as the metric identifier in the device metric report. Can be updated. *
* * @return Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't * use this name as the metric identifier in the device metric report. Can be updated. */ public String getDisplayName() { return this.displayName; } /** ** Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this * name as the metric identifier in the device metric report. Can be updated. *
* * @param displayName * Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't * use this name as the metric identifier in the device metric report. Can be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomMetricResult withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** ** The creation date of the custom metric in milliseconds since epoch. *
* * @param creationDate * The creation date of the custom metric in milliseconds since epoch. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** ** The creation date of the custom metric in milliseconds since epoch. *
* * @return The creation date of the custom metric in milliseconds since epoch. */ public java.util.Date getCreationDate() { return this.creationDate; } /** ** The creation date of the custom metric in milliseconds since epoch. *
* * @param creationDate * The creation date of the custom metric in milliseconds since epoch. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomMetricResult withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** ** The time the custom metric was last modified in milliseconds since epoch. *
* * @param lastModifiedDate * The time the custom metric was last modified in milliseconds since epoch. */ public void setLastModifiedDate(java.util.Date lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** ** The time the custom metric was last modified in milliseconds since epoch. *
* * @return The time the custom metric was last modified in milliseconds since epoch. */ public java.util.Date getLastModifiedDate() { return this.lastModifiedDate; } /** ** The time the custom metric was last modified in milliseconds since epoch. *
* * @param lastModifiedDate * The time the custom metric was last modified in milliseconds since epoch. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomMetricResult withLastModifiedDate(java.util.Date lastModifiedDate) { setLastModifiedDate(lastModifiedDate); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getMetricName() != null) sb.append("MetricName: ").append(getMetricName()).append(","); if (getMetricArn() != null) sb.append("MetricArn: ").append(getMetricArn()).append(","); if (getMetricType() != null) sb.append("MetricType: ").append(getMetricType()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCustomMetricResult == false) return false; DescribeCustomMetricResult other = (DescribeCustomMetricResult) obj; if (other.getMetricName() == null ^ this.getMetricName() == null) return false; if (other.getMetricName() != null && other.getMetricName().equals(this.getMetricName()) == false) return false; if (other.getMetricArn() == null ^ this.getMetricArn() == null) return false; if (other.getMetricArn() != null && other.getMetricArn().equals(this.getMetricArn()) == false) return false; if (other.getMetricType() == null ^ this.getMetricType() == null) return false; if (other.getMetricType() != null && other.getMetricType().equals(this.getMetricType()) == false) return false; if (other.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getLastModifiedDate() == null ^ this.getLastModifiedDate() == null) return false; if (other.getLastModifiedDate() != null && other.getLastModifiedDate().equals(this.getLastModifiedDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMetricName() == null) ? 0 : getMetricName().hashCode()); hashCode = prime * hashCode + ((getMetricArn() == null) ? 0 : getMetricArn().hashCode()); hashCode = prime * hashCode + ((getMetricType() == null) ? 0 : getMetricType().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); return hashCode; } @Override public DescribeCustomMetricResult clone() { try { return (DescribeCustomMetricResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }