@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCustomMetricRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateCustomMetricRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCustomMetricRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientRequestToken()
Each custom metric must have a unique client request token.
|
String |
getDisplayName()
Field represents a friendly name in the console for the custom metric; it doesn't have to be unique.
|
String |
getMetricName()
The name of the custom metric.
|
String |
getMetricType()
The type of the custom metric.
|
List<Tag> |
getTags()
Metadata that can be used to manage the custom metric.
|
int |
hashCode() |
void |
setClientRequestToken(String clientRequestToken)
Each custom metric must have a unique client request token.
|
void |
setDisplayName(String displayName)
Field represents a friendly name in the console for the custom metric; it doesn't have to be unique.
|
void |
setMetricName(String metricName)
The name of the custom metric.
|
void |
setMetricType(String metricType)
The type of the custom metric.
|
void |
setTags(Collection<Tag> tags)
Metadata that can be used to manage the custom metric.
|
String |
toString()
Returns a string representation of this object.
|
CreateCustomMetricRequest |
withClientRequestToken(String clientRequestToken)
Each custom metric must have a unique client request token.
|
CreateCustomMetricRequest |
withDisplayName(String displayName)
Field represents a friendly name in the console for the custom metric; it doesn't have to be unique.
|
CreateCustomMetricRequest |
withMetricName(String metricName)
The name of the custom metric.
|
CreateCustomMetricRequest |
withMetricType(CustomMetricType metricType)
The type of the custom metric.
|
CreateCustomMetricRequest |
withMetricType(String metricType)
The type of the custom metric.
|
CreateCustomMetricRequest |
withTags(Collection<Tag> tags)
Metadata that can be used to manage the custom metric.
|
CreateCustomMetricRequest |
withTags(Tag... tags)
Metadata that can be used to manage the custom metric.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setMetricName(String metricName)
The name of the custom metric. This will be used in the metric report submitted from the device/thing. Shouldn't
begin with aws:
. Cannot be updated once defined.
metricName
- The name of the custom metric. This will be used in the metric report submitted from the device/thing.
Shouldn't begin with aws:
. Cannot be updated once defined.public String getMetricName()
The name of the custom metric. This will be used in the metric report submitted from the device/thing. Shouldn't
begin with aws:
. Cannot be updated once defined.
aws:
. Cannot be updated once defined.public CreateCustomMetricRequest withMetricName(String metricName)
The name of the custom metric. This will be used in the metric report submitted from the device/thing. Shouldn't
begin with aws:
. Cannot be updated once defined.
metricName
- The name of the custom metric. This will be used in the metric report submitted from the device/thing.
Shouldn't begin with aws:
. Cannot be updated once defined.public void setDisplayName(String displayName)
Field represents a friendly name in the console for the custom metric; it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated once defined.
displayName
- Field represents a friendly name in the console for the custom metric; it doesn't have to be unique. Don't
use this name as the metric identifier in the device metric report. Can be updated once defined.public String getDisplayName()
Field represents a friendly name in the console for the custom metric; it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated once defined.
public CreateCustomMetricRequest withDisplayName(String displayName)
Field represents a friendly name in the console for the custom metric; it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated once defined.
displayName
- Field represents a friendly name in the console for the custom metric; it doesn't have to be unique. Don't
use this name as the metric identifier in the device metric report. Can be updated once defined.public void setMetricType(String metricType)
The type of the custom metric. Types include string-list
, ip-address-list
,
number-list
, and number
.
metricType
- The type of the custom metric. Types include string-list
, ip-address-list
,
number-list
, and number
.CustomMetricType
public String getMetricType()
The type of the custom metric. Types include string-list
, ip-address-list
,
number-list
, and number
.
string-list
, ip-address-list
,
number-list
, and number
.CustomMetricType
public CreateCustomMetricRequest withMetricType(String metricType)
The type of the custom metric. Types include string-list
, ip-address-list
,
number-list
, and number
.
metricType
- The type of the custom metric. Types include string-list
, ip-address-list
,
number-list
, and number
.CustomMetricType
public CreateCustomMetricRequest withMetricType(CustomMetricType metricType)
The type of the custom metric. Types include string-list
, ip-address-list
,
number-list
, and number
.
metricType
- The type of the custom metric. Types include string-list
, ip-address-list
,
number-list
, and number
.CustomMetricType
public List<Tag> getTags()
Metadata that can be used to manage the custom metric.
public void setTags(Collection<Tag> tags)
Metadata that can be used to manage the custom metric.
tags
- Metadata that can be used to manage the custom metric.public CreateCustomMetricRequest withTags(Tag... tags)
Metadata that can be used to manage the custom metric.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Metadata that can be used to manage the custom metric.public CreateCustomMetricRequest withTags(Collection<Tag> tags)
Metadata that can be used to manage the custom metric.
tags
- Metadata that can be used to manage the custom metric.public void setClientRequestToken(String clientRequestToken)
Each custom metric must have a unique client request token. If you try to create a new custom metric that already exists with a different token, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
clientRequestToken
- Each custom metric must have a unique client request token. If you try to create a new custom metric that
already exists with a different token, an exception occurs. If you omit this value, AWS SDKs will
automatically generate a unique client request.public String getClientRequestToken()
Each custom metric must have a unique client request token. If you try to create a new custom metric that already exists with a different token, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
public CreateCustomMetricRequest withClientRequestToken(String clientRequestToken)
Each custom metric must have a unique client request token. If you try to create a new custom metric that already exists with a different token, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
clientRequestToken
- Each custom metric must have a unique client request token. If you try to create a new custom metric that
already exists with a different token, an exception occurs. If you omit this value, AWS SDKs will
automatically generate a unique client request.public String toString()
toString
in class Object
Object.toString()
public CreateCustomMetricRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()