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 interfaceSubscription.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Subscription.Builderbuilder()Stringdestination()The Region or Availability Zone that's the target for the subscription.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()MetricTypemetric()The metric used for the subscription.StringmetricAsString()The metric used for the subscription.PeriodTypeperiod()The data aggregation time for the subscription.StringperiodAsString()The data aggregation time for the subscription.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Subscription.Builder>serializableBuilderClass()Stringsource()The Region or Availability Zone that's the source for the subscription.StatisticTypestatistic()The statistic used for the subscription.StringstatisticAsString()The statistic used for the subscription.Subscription.BuildertoBuilder()StringtoString()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,
metricwill 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,
metricwill 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,
statisticwill 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,
statisticwill 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,
periodwill 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,
periodwill 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:
toBuilderin 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:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo
-
-