Class Subscription
- java.lang.Object
-
- software.amazon.awssdk.services.outposts.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>
Provides information about your Amazon Web Services Outposts subscriptions.
- 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 InstantbeginDate()The date your subscription starts.static Subscription.Builderbuilder()InstantendDate()The date your subscription ends.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasOrderIds()For responses, this returns true if the service returned a value for the OrderIds property.DoublemonthlyRecurringPrice()The amount you are billed each month in the subscription period.List<String>orderIds()The order ID for your subscription.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Subscription.Builder>serializableBuilderClass()StringsubscriptionId()The ID of the subscription that appears on the Amazon Web Services Billing Center console.SubscriptionStatussubscriptionStatus()The status of subscription which can be one of the following:StringsubscriptionStatusAsString()The status of subscription which can be one of the following:SubscriptionTypesubscriptionType()The type of subscription which can be one of the following:StringsubscriptionTypeAsString()The type of subscription which can be one of the following:Subscription.BuildertoBuilder()StringtoString()Returns a string representation of this object.DoubleupfrontPrice()The amount billed when the subscription is created.-
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
-
subscriptionId
public final String subscriptionId()
The ID of the subscription that appears on the Amazon Web Services Billing Center console.
- Returns:
- The ID of the subscription that appears on the Amazon Web Services Billing Center console.
-
subscriptionType
public final SubscriptionType subscriptionType()
The type of subscription which can be one of the following:
-
ORIGINAL - The first order on the Amazon Web Services Outposts.
-
RENEWAL - Renewal requests, both month to month and longer term.
-
CAPACITY_INCREASE - Capacity scaling orders.
If the service returns an enum value that is not available in the current SDK version,
subscriptionTypewill returnSubscriptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsubscriptionTypeAsString().- Returns:
- The type of subscription which can be one of the following:
-
ORIGINAL - The first order on the Amazon Web Services Outposts.
-
RENEWAL - Renewal requests, both month to month and longer term.
-
CAPACITY_INCREASE - Capacity scaling orders.
-
- See Also:
SubscriptionType
-
-
subscriptionTypeAsString
public final String subscriptionTypeAsString()
The type of subscription which can be one of the following:
-
ORIGINAL - The first order on the Amazon Web Services Outposts.
-
RENEWAL - Renewal requests, both month to month and longer term.
-
CAPACITY_INCREASE - Capacity scaling orders.
If the service returns an enum value that is not available in the current SDK version,
subscriptionTypewill returnSubscriptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsubscriptionTypeAsString().- Returns:
- The type of subscription which can be one of the following:
-
ORIGINAL - The first order on the Amazon Web Services Outposts.
-
RENEWAL - Renewal requests, both month to month and longer term.
-
CAPACITY_INCREASE - Capacity scaling orders.
-
- See Also:
SubscriptionType
-
-
subscriptionStatus
public final SubscriptionStatus subscriptionStatus()
The status of subscription which can be one of the following:
-
INACTIVE - Subscription requests that are inactive.
-
ACTIVE - Subscription requests that are in progress and have an end date in the future.
-
CANCELLED - Subscription requests that are cancelled.
If the service returns an enum value that is not available in the current SDK version,
subscriptionStatuswill returnSubscriptionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsubscriptionStatusAsString().- Returns:
- The status of subscription which can be one of the following:
-
INACTIVE - Subscription requests that are inactive.
-
ACTIVE - Subscription requests that are in progress and have an end date in the future.
-
CANCELLED - Subscription requests that are cancelled.
-
- See Also:
SubscriptionStatus
-
-
subscriptionStatusAsString
public final String subscriptionStatusAsString()
The status of subscription which can be one of the following:
-
INACTIVE - Subscription requests that are inactive.
-
ACTIVE - Subscription requests that are in progress and have an end date in the future.
-
CANCELLED - Subscription requests that are cancelled.
If the service returns an enum value that is not available in the current SDK version,
subscriptionStatuswill returnSubscriptionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsubscriptionStatusAsString().- Returns:
- The status of subscription which can be one of the following:
-
INACTIVE - Subscription requests that are inactive.
-
ACTIVE - Subscription requests that are in progress and have an end date in the future.
-
CANCELLED - Subscription requests that are cancelled.
-
- See Also:
SubscriptionStatus
-
-
hasOrderIds
public final boolean hasOrderIds()
For responses, this returns true if the service returned a value for the OrderIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
orderIds
public final List<String> orderIds()
The order ID for your subscription.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasOrderIds()method.- Returns:
- The order ID for your subscription.
-
beginDate
public final Instant beginDate()
The date your subscription starts.
- Returns:
- The date your subscription starts.
-
endDate
public final Instant endDate()
The date your subscription ends.
- Returns:
- The date your subscription ends.
-
monthlyRecurringPrice
public final Double monthlyRecurringPrice()
The amount you are billed each month in the subscription period.
- Returns:
- The amount you are billed each month in the subscription period.
-
upfrontPrice
public final Double upfrontPrice()
The amount billed when the subscription is created. This is a one-time charge.
- Returns:
- The amount billed when the subscription is created. This is a one-time charge.
-
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
-
-