@Generated(value="software.amazon.awssdk:codegen") public final class MetricSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricSpecification.Builder,MetricSpecification>
An object containing information about a metric.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricSpecification.Builder |
static class |
MetricSpecification.Type |
| Modifier and Type | Method and Description |
|---|---|
static MetricSpecification.Builder |
builder() |
CustomizedMetricSpecification |
customized()
Information about a customized metric.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static MetricSpecification |
fromCustomized(Consumer<CustomizedMetricSpecification.Builder> customized)
Create an instance of this class with
customized() initialized to the given value. |
static MetricSpecification |
fromCustomized(CustomizedMetricSpecification customized)
Create an instance of this class with
customized() initialized to the given value. |
static MetricSpecification |
fromPredefined(Consumer<PredefinedMetricSpecification.Builder> predefined)
Create an instance of this class with
predefined() initialized to the given value. |
static MetricSpecification |
fromPredefined(PredefinedMetricSpecification predefined)
Create an instance of this class with
predefined() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
PredefinedMetricSpecification |
predefined()
Information about a predefined metric.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricSpecification.Builder> |
serializableBuilderClass() |
MetricSpecification.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
MetricSpecification.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final PredefinedMetricSpecification predefined()
Information about a predefined metric.
public final CustomizedMetricSpecification customized()
Information about a customized metric.
public MetricSpecification.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricSpecification.Builder,MetricSpecification>public static MetricSpecification.Builder builder()
public static Class<? extends MetricSpecification.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static MetricSpecification fromPredefined(PredefinedMetricSpecification predefined)
predefined() initialized to the given value.
Information about a predefined metric.
predefined - Information about a predefined metric.public static MetricSpecification fromPredefined(Consumer<PredefinedMetricSpecification.Builder> predefined)
predefined() initialized to the given value.
Information about a predefined metric.
predefined - Information about a predefined metric.public static MetricSpecification fromCustomized(CustomizedMetricSpecification customized)
customized() initialized to the given value.
Information about a customized metric.
customized - Information about a customized metric.public static MetricSpecification fromCustomized(Consumer<CustomizedMetricSpecification.Builder> customized)
customized() initialized to the given value.
Information about a customized metric.
customized - Information about a customized metric.public MetricSpecification.Type type()
MetricSpecification.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be MetricSpecification.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.