Class Subscription
- java.lang.Object
-
- software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.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>
An object which details a discovered Linux 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()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LonginstanceCount()The total amount of running instances using this subscription.Stringname()The name of the subscription.List<SdkField<?>>sdkFields()static Class<? extends Subscription.Builder>serializableBuilderClass()Subscription.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()The type of subscription.-
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
-
instanceCount
public final Long instanceCount()
The total amount of running instances using this subscription.
- Returns:
- The total amount of running instances using this subscription.
-
name
public final String name()
The name of the subscription.
- Returns:
- The name of the subscription.
-
type
public final String type()
The type of subscription. The type can be subscription-included with Amazon EC2, Bring Your Own Subscription model (BYOS), or from the Amazon Web Services Marketplace. Certain subscriptions may use licensing from the Amazon Web Services Marketplace as well as OS licensing from Amazon EC2 or BYOS.
- Returns:
- The type of subscription. The type can be subscription-included with Amazon EC2, Bring Your Own Subscription model (BYOS), or from the Amazon Web Services Marketplace. Certain subscriptions may use licensing from the Amazon Web Services Marketplace as well as OS licensing from Amazon EC2 or BYOS.
-
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.
-
-