Class UpdateCustomMetricResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.iot.model.IotResponse
-
- software.amazon.awssdk.services.iot.model.UpdateCustomMetricResponse
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<UpdateCustomMetricResponse.Builder,UpdateCustomMetricResponse>
@Generated("software.amazon.awssdk:codegen") public final class UpdateCustomMetricResponse extends IotResponse implements ToCopyableBuilder<UpdateCustomMetricResponse.Builder,UpdateCustomMetricResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
UpdateCustomMetricResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateCustomMetricResponse.Builder
builder()
Instant
creationDate()
The creation date of the custom metric in milliseconds since epoch.String
displayName()
A friendly name in the console for the custom metricboolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Instant
lastModifiedDate()
The time the custom metric was last modified in milliseconds since epoch.String
metricArn()
The Amazon Resource Number (ARN) of the custom metric.String
metricName()
The name of the custom metric.CustomMetricType
metricType()
The type of the custom metric.String
metricTypeAsString()
The type of the custom metric.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends UpdateCustomMetricResponse.Builder>
serializableBuilderClass()
UpdateCustomMetricResponse.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.iot.model.IotResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
metricName
public final String metricName()
The name of the custom metric.
- Returns:
- The name of the custom metric.
-
metricArn
public final String metricArn()
The Amazon Resource Number (ARN) of the custom metric.
- Returns:
- The Amazon Resource Number (ARN) of the custom metric.
-
metricType
public final CustomMetricType metricType()
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.If the service returns an enum value that is not available in the current SDK version,
metricType
will returnCustomMetricType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommetricTypeAsString()
.- Returns:
- 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. - See Also:
CustomMetricType
-
metricTypeAsString
public final String metricTypeAsString()
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.If the service returns an enum value that is not available in the current SDK version,
metricType
will returnCustomMetricType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommetricTypeAsString()
.- Returns:
- 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. - See Also:
CustomMetricType
-
displayName
public final String displayName()
A friendly name in the console for the custom metric
- Returns:
- A friendly name in the console for the custom metric
-
creationDate
public final Instant creationDate()
The creation date of the custom metric in milliseconds since epoch.
- Returns:
- The creation date of the custom metric in milliseconds since epoch.
-
lastModifiedDate
public final Instant lastModifiedDate()
The time the custom metric was last modified in milliseconds since epoch.
- Returns:
- The time the custom metric was last modified in milliseconds since epoch.
-
toBuilder
public UpdateCustomMetricResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<UpdateCustomMetricResponse.Builder,UpdateCustomMetricResponse>
- Specified by:
toBuilder
in classAwsResponse
-
builder
public static UpdateCustomMetricResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateCustomMetricResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-