Class Subscription
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.Subscription
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Subscription.Builder,Subscription>
@Generated("software.amazon.awssdk:codegen") public final class Subscription extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Subscription.Builder,Subscription>
Describes an Infrastructure Performance subscription.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Subscription.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.Map<String,SdkField<?>>
sdkFieldNameToField()
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.-
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
-
source
public final String source()
The Region or Availability Zone that's the source for the subscription. For example,
us-east-1
.- Returns:
- The Region or Availability Zone that's the source for the subscription. For example,
us-east-1
.
-
destination
public final String destination()
The Region or Availability Zone that's the target for the subscription. For example,
eu-west-1
.- Returns:
- The Region or Availability Zone that's the target for the subscription. For example,
eu-west-1
.
-
metric
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 returnMetricType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommetricAsString()
.- Returns:
- The metric used for the subscription.
- See Also:
MetricType
-
metricAsString
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 returnMetricType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommetricAsString()
.- Returns:
- The metric used for the subscription.
- See Also:
MetricType
-
statistic
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 returnStatisticType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatisticAsString()
.- Returns:
- The statistic used for the subscription.
- See Also:
StatisticType
-
statisticAsString
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 returnStatisticType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatisticAsString()
.- Returns:
- The statistic used for the subscription.
- See Also:
StatisticType
-
period
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 returnPeriodType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromperiodAsString()
.- Returns:
- The data aggregation time for the subscription.
- See Also:
PeriodType
-
periodAsString
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 returnPeriodType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromperiodAsString()
.- Returns:
- The data aggregation time for the subscription.
- See Also:
PeriodType
-
toBuilder
public Subscription.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<Subscription.Builder,Subscription>
-
builder
public static Subscription.Builder builder()
-
serializableBuilderClass
public static Class<? extends Subscription.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-