public class DescribeCustomMetricResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DescribeCustomMetricResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreationDate()
The creation date of the custom metric in milliseconds since epoch.
|
java.lang.String |
getDisplayName()
Field represents a friendly name in the console for the custom metric;
doesn't have to be unique.
|
java.util.Date |
getLastModifiedDate()
The time the custom metric was last modified in milliseconds since epoch.
|
java.lang.String |
getMetricArn()
The Amazon Resource Number (ARN) of the custom metric.
|
java.lang.String |
getMetricName()
The name of the custom metric.
|
java.lang.String |
getMetricType()
The type of the custom metric.
|
int |
hashCode() |
void |
setCreationDate(java.util.Date creationDate)
The creation date of the custom metric in milliseconds since epoch.
|
void |
setDisplayName(java.lang.String displayName)
Field represents a friendly name in the console for the custom metric;
doesn't have to be unique.
|
void |
setLastModifiedDate(java.util.Date lastModifiedDate)
The time the custom metric was last modified in milliseconds since epoch.
|
void |
setMetricArn(java.lang.String metricArn)
The Amazon Resource Number (ARN) of the custom metric.
|
void |
setMetricName(java.lang.String metricName)
The name of the custom metric.
|
void |
setMetricType(CustomMetricType metricType)
The type of the custom metric.
|
void |
setMetricType(java.lang.String metricType)
The type of the custom metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeCustomMetricResult |
withCreationDate(java.util.Date creationDate)
The creation date of the custom metric in milliseconds since epoch.
|
DescribeCustomMetricResult |
withDisplayName(java.lang.String displayName)
Field represents a friendly name in the console for the custom metric;
doesn't have to be unique.
|
DescribeCustomMetricResult |
withLastModifiedDate(java.util.Date lastModifiedDate)
The time the custom metric was last modified in milliseconds since epoch.
|
DescribeCustomMetricResult |
withMetricArn(java.lang.String metricArn)
The Amazon Resource Number (ARN) of the custom metric.
|
DescribeCustomMetricResult |
withMetricName(java.lang.String metricName)
The name of the custom metric.
|
DescribeCustomMetricResult |
withMetricType(CustomMetricType metricType)
The type of the custom metric.
|
DescribeCustomMetricResult |
withMetricType(java.lang.String metricType)
The type of the custom metric.
|
public java.lang.String getMetricName()
The name of the custom metric.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the custom metric.
public void setMetricName(java.lang.String metricName)
The name of the custom metric.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
metricName
- The name of the custom metric.
public DescribeCustomMetricResult withMetricName(java.lang.String metricName)
The name of the custom metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
metricName
- The name of the custom metric.
public java.lang.String getMetricArn()
The Amazon Resource Number (ARN) of the custom metric.
The Amazon Resource Number (ARN) of the custom metric.
public void setMetricArn(java.lang.String metricArn)
The Amazon Resource Number (ARN) of the custom metric.
metricArn
- The Amazon Resource Number (ARN) of the custom metric.
public DescribeCustomMetricResult withMetricArn(java.lang.String metricArn)
The Amazon Resource Number (ARN) of the custom metric.
Returns a reference to this object so that method calls can be chained together.
metricArn
- The Amazon Resource Number (ARN) of the custom metric.
public java.lang.String getMetricType()
The type of the custom metric. Types include string-list
,
ip-address-list
, number-list
, and
number
.
Constraints:
Allowed Values: string-list, ip-address-list, number-list, number
The type of the custom metric. Types include
string-list
, ip-address-list
,
number-list
, and number
.
CustomMetricType
public void setMetricType(java.lang.String metricType)
The type of the custom metric. Types include string-list
,
ip-address-list
, number-list
, and
number
.
Constraints:
Allowed Values: string-list, ip-address-list, number-list, number
metricType
-
The type of the custom metric. Types include
string-list
, ip-address-list
,
number-list
, and number
.
CustomMetricType
public DescribeCustomMetricResult withMetricType(java.lang.String metricType)
The type of the custom metric. Types include string-list
,
ip-address-list
, number-list
, and
number
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: string-list, ip-address-list, number-list, number
metricType
-
The type of the custom metric. Types include
string-list
, ip-address-list
,
number-list
, and number
.
CustomMetricType
public void setMetricType(CustomMetricType metricType)
The type of the custom metric. Types include string-list
,
ip-address-list
, number-list
, and
number
.
Constraints:
Allowed Values: string-list, ip-address-list, number-list, number
metricType
-
The type of the custom metric. Types include
string-list
, ip-address-list
,
number-list
, and number
.
CustomMetricType
public DescribeCustomMetricResult withMetricType(CustomMetricType metricType)
The type of the custom metric. Types include string-list
,
ip-address-list
, number-list
, and
number
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: string-list, ip-address-list, number-list, number
metricType
-
The type of the custom metric. Types include
string-list
, ip-address-list
,
number-list
, and number
.
CustomMetricType
public java.lang.String getDisplayName()
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.
Constraints:
Length: - 128
Pattern: [\p{Graph}\x20]*
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(java.lang.String 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.
Constraints:
Length: - 128
Pattern: [\p{Graph}\x20]*
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 DescribeCustomMetricResult withDisplayName(java.lang.String 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 128
Pattern: [\p{Graph}\x20]*
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 java.util.Date getCreationDate()
The creation date of the custom metric in milliseconds since epoch.
The creation date of the custom metric in milliseconds since epoch.
public void setCreationDate(java.util.Date creationDate)
The creation date of the custom metric in milliseconds since epoch.
creationDate
- The creation date of the custom metric in milliseconds since epoch.
public DescribeCustomMetricResult withCreationDate(java.util.Date creationDate)
The creation date of the custom metric in milliseconds since epoch.
Returns a reference to this object so that method calls can be chained together.
creationDate
- The creation date of the custom metric in milliseconds since epoch.
public java.util.Date getLastModifiedDate()
The time the custom metric was last modified in milliseconds since epoch.
The time the custom metric was last modified in milliseconds since epoch.
public void setLastModifiedDate(java.util.Date lastModifiedDate)
The time the custom metric was last modified in milliseconds since epoch.
lastModifiedDate
- The time the custom metric was last modified in milliseconds since epoch.
public DescribeCustomMetricResult withLastModifiedDate(java.util.Date lastModifiedDate)
The time the custom metric was last modified in milliseconds since epoch.
Returns a reference to this object so that method calls can be chained together.
lastModifiedDate
- The time the custom metric was last modified in milliseconds since epoch.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.