@Generated(value="software.amazon.awssdk:codegen") public final class Subscription extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Subscription.Builder,Subscription>
Describes an Infrastructure Performance subscription.
Modifier and Type | Class and Description |
---|---|
static interface |
Subscription.Builder |
Modifier and Type | Method and Description |
---|---|
static Subscription.Builder |
builder() |
String |
destination()
The Region or Availability Zone that's the target for the subscription.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
MetricType |
metric()
The metric used for the subscription.
|
String |
metricAsString()
The metric used for the subscription.
|
PeriodType |
period()
The data aggregation time for the subscription.
|
String |
periodAsString()
The data aggregation time for the subscription.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Subscription.Builder> |
serializableBuilderClass() |
String |
source()
The Region or Availability Zone that's the source for the subscription.
|
StatisticType |
statistic()
The statistic used for the subscription.
|
String |
statisticAsString()
The statistic used for the subscription.
|
Subscription.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String source()
The Region or Availability Zone that's the source for the subscription. For example, us-east-1
.
us-east-1
.public final String destination()
The Region or Availability Zone that's the target for the subscription. For example, eu-west-1
.
eu-west-1
.public final MetricType metric()
The metric used for the subscription.
If the service returns an enum value that is not available in the current SDK version, metric
will
return MetricType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
metricAsString()
.
MetricType
public final String metricAsString()
The metric used for the subscription.
If the service returns an enum value that is not available in the current SDK version, metric
will
return MetricType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
metricAsString()
.
MetricType
public final StatisticType statistic()
The statistic used for the subscription.
If the service returns an enum value that is not available in the current SDK version, statistic
will
return StatisticType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statisticAsString()
.
StatisticType
public final String statisticAsString()
The statistic used for the subscription.
If the service returns an enum value that is not available in the current SDK version, statistic
will
return StatisticType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statisticAsString()
.
StatisticType
public final PeriodType period()
The data aggregation time for the subscription.
If the service returns an enum value that is not available in the current SDK version, period
will
return PeriodType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
periodAsString()
.
PeriodType
public final String periodAsString()
The data aggregation time for the subscription.
If the service returns an enum value that is not available in the current SDK version, period
will
return PeriodType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
periodAsString()
.
PeriodType
public Subscription.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Subscription.Builder,Subscription>
public static Subscription.Builder builder()
public static Class<? extends Subscription.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.