@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()
The friendly name in the console for the custom metric.
|
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)
The friendly name in the console for the custom metric.
|
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)
The friendly name in the console for the custom metric.
|
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. The name
can't begin with aws:
. You can't change the name after you define it.
metricName
- The name of the custom metric. This will be used in the metric report submitted from the device/thing. The
name can't begin with aws:
. You can't change the name after you define it.public String getMetricName()
The name of the custom metric. This will be used in the metric report submitted from the device/thing. The name
can't begin with aws:
. You can't change the name after you define it.
aws:
. You can't change the name after you define it.public CreateCustomMetricRequest withMetricName(String metricName)
The name of the custom metric. This will be used in the metric report submitted from the device/thing. The name
can't begin with aws:
. You can't change the name after you define it.
metricName
- The name of the custom metric. This will be used in the metric report submitted from the device/thing. The
name can't begin with aws:
. You can't change the name after you define it.public void setDisplayName(String displayName)
The friendly name in the console for the custom metric. This name doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. You can update the friendly name after you define it.
displayName
- The friendly name in the console for the custom metric. This name doesn't have to be unique. Don't use
this name as the metric identifier in the device metric report. You can update the friendly name after you
define it.public String getDisplayName()
The friendly name in the console for the custom metric. This name doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. You can update the friendly name after you define it.
public CreateCustomMetricRequest withDisplayName(String displayName)
The friendly name in the console for the custom metric. This name doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. You can update the friendly name after you define it.
displayName
- The friendly name in the console for the custom metric. This name doesn't have to be unique. Don't use
this name as the metric identifier in the device metric report. You can update the friendly name after you
define it.public void setMetricType(String metricType)
The type of the custom metric.
The type number
only takes a single metric value as an input, but when you submit the metrics value
in the DeviceMetrics report, you must pass it as an array with a single value.
metricType
- The type of the custom metric.
The type number
only takes a single metric value as an input, but when you submit the metrics
value in the DeviceMetrics report, you must pass it as an array with a single value.
CustomMetricType
public String getMetricType()
The type of the custom metric.
The type number
only takes a single metric value as an input, but when you submit the metrics value
in the DeviceMetrics report, you must pass it as an array with a single value.
The type number
only takes a single metric value as an input, but when you submit the
metrics value in the DeviceMetrics report, you must pass it as an array with a single value.
CustomMetricType
public CreateCustomMetricRequest withMetricType(String metricType)
The type of the custom metric.
The type number
only takes a single metric value as an input, but when you submit the metrics value
in the DeviceMetrics report, you must pass it as an array with a single value.
metricType
- The type of the custom metric.
The type number
only takes a single metric value as an input, but when you submit the metrics
value in the DeviceMetrics report, you must pass it as an array with a single value.
CustomMetricType
public CreateCustomMetricRequest withMetricType(CustomMetricType metricType)
The type of the custom metric.
The type number
only takes a single metric value as an input, but when you submit the metrics value
in the DeviceMetrics report, you must pass it as an array with a single value.
metricType
- The type of the custom metric.
The type number
only takes a single metric value as an input, but when you submit the metrics
value in the DeviceMetrics report, you must pass it as an array with a single value.
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, Amazon Web Services 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, Amazon Web Services
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, Amazon Web Services 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, Amazon Web Services 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, Amazon Web Services
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()