@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subscription extends Object implements Serializable, Cloneable, StructuredPojo
An object which details a discovered Linux subscription.
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
Subscription |
clone() |
boolean |
equals(Object obj) |
Long |
getInstanceCount()
The total amount of running instances using this subscription.
|
String |
getName()
The name of the subscription.
|
String |
getType()
The type of subscription.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstanceCount(Long instanceCount)
The total amount of running instances using this subscription.
|
void |
setName(String name)
The name of the subscription.
|
void |
setType(String type)
The type of subscription.
|
String |
toString()
Returns a string representation of this object.
|
Subscription |
withInstanceCount(Long instanceCount)
The total amount of running instances using this subscription.
|
Subscription |
withName(String name)
The name of the subscription.
|
Subscription |
withType(String type)
The type of subscription.
|
public void setInstanceCount(Long instanceCount)
The total amount of running instances using this subscription.
instanceCount
- The total amount of running instances using this subscription.public Long getInstanceCount()
The total amount of running instances using this subscription.
public Subscription withInstanceCount(Long instanceCount)
The total amount of running instances using this subscription.
instanceCount
- The total amount of running instances using this subscription.public void setName(String name)
The name of the subscription.
name
- The name of the subscription.public String getName()
The name of the subscription.
public Subscription withName(String name)
The name of the subscription.
name
- The name of the subscription.public void setType(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.
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.public String getType()
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.
public Subscription withType(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.
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.public String toString()
toString
in class Object
Object.toString()
public Subscription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.