@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Instance extends Object implements Serializable, Cloneable, StructuredPojo
Details discovered information about a running instance using Linux subscriptions.
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
boolean |
equals(Object obj) |
String |
getAccountID()
The account ID which owns the instance.
|
String |
getAmiId()
The AMI ID used to launch the instance.
|
String |
getInstanceID()
The instance ID of the resource.
|
String |
getInstanceType()
The instance type of the resource.
|
String |
getLastUpdatedTime()
The time in which the last discovery updated the instance details.
|
List<String> |
getProductCode()
The product code for the instance.
|
String |
getRegion()
The Region the instance is running in.
|
String |
getStatus()
The status of the instance.
|
String |
getSubscriptionName()
The name of the subscription being used by the instance.
|
String |
getUsageOperation()
The usage operation of the instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountID(String accountID)
The account ID which owns the instance.
|
void |
setAmiId(String amiId)
The AMI ID used to launch the instance.
|
void |
setInstanceID(String instanceID)
The instance ID of the resource.
|
void |
setInstanceType(String instanceType)
The instance type of the resource.
|
void |
setLastUpdatedTime(String lastUpdatedTime)
The time in which the last discovery updated the instance details.
|
void |
setProductCode(Collection<String> productCode)
The product code for the instance.
|
void |
setRegion(String region)
The Region the instance is running in.
|
void |
setStatus(String status)
The status of the instance.
|
void |
setSubscriptionName(String subscriptionName)
The name of the subscription being used by the instance.
|
void |
setUsageOperation(String usageOperation)
The usage operation of the instance.
|
String |
toString()
Returns a string representation of this object.
|
Instance |
withAccountID(String accountID)
The account ID which owns the instance.
|
Instance |
withAmiId(String amiId)
The AMI ID used to launch the instance.
|
Instance |
withInstanceID(String instanceID)
The instance ID of the resource.
|
Instance |
withInstanceType(String instanceType)
The instance type of the resource.
|
Instance |
withLastUpdatedTime(String lastUpdatedTime)
The time in which the last discovery updated the instance details.
|
Instance |
withProductCode(Collection<String> productCode)
The product code for the instance.
|
Instance |
withProductCode(String... productCode)
The product code for the instance.
|
Instance |
withRegion(String region)
The Region the instance is running in.
|
Instance |
withStatus(String status)
The status of the instance.
|
Instance |
withSubscriptionName(String subscriptionName)
The name of the subscription being used by the instance.
|
Instance |
withUsageOperation(String usageOperation)
The usage operation of the instance.
|
public void setAccountID(String accountID)
The account ID which owns the instance.
accountID
- The account ID which owns the instance.public String getAccountID()
The account ID which owns the instance.
public Instance withAccountID(String accountID)
The account ID which owns the instance.
accountID
- The account ID which owns the instance.public void setAmiId(String amiId)
The AMI ID used to launch the instance.
amiId
- The AMI ID used to launch the instance.public String getAmiId()
The AMI ID used to launch the instance.
public Instance withAmiId(String amiId)
The AMI ID used to launch the instance.
amiId
- The AMI ID used to launch the instance.public void setInstanceID(String instanceID)
The instance ID of the resource.
instanceID
- The instance ID of the resource.public String getInstanceID()
The instance ID of the resource.
public Instance withInstanceID(String instanceID)
The instance ID of the resource.
instanceID
- The instance ID of the resource.public void setInstanceType(String instanceType)
The instance type of the resource.
instanceType
- The instance type of the resource.public String getInstanceType()
The instance type of the resource.
public Instance withInstanceType(String instanceType)
The instance type of the resource.
instanceType
- The instance type of the resource.public void setLastUpdatedTime(String lastUpdatedTime)
The time in which the last discovery updated the instance details.
lastUpdatedTime
- The time in which the last discovery updated the instance details.public String getLastUpdatedTime()
The time in which the last discovery updated the instance details.
public Instance withLastUpdatedTime(String lastUpdatedTime)
The time in which the last discovery updated the instance details.
lastUpdatedTime
- The time in which the last discovery updated the instance details.public List<String> getProductCode()
The product code for the instance. For more information, see Usage operation values in the License Manager User Guide .
public void setProductCode(Collection<String> productCode)
The product code for the instance. For more information, see Usage operation values in the License Manager User Guide .
productCode
- The product code for the instance. For more information, see Usage operation values in the License Manager User Guide .public Instance withProductCode(String... productCode)
The product code for the instance. For more information, see Usage operation values in the License Manager User Guide .
NOTE: This method appends the values to the existing list (if any). Use
setProductCode(java.util.Collection)
or withProductCode(java.util.Collection)
if you want to
override the existing values.
productCode
- The product code for the instance. For more information, see Usage operation values in the License Manager User Guide .public Instance withProductCode(Collection<String> productCode)
The product code for the instance. For more information, see Usage operation values in the License Manager User Guide .
productCode
- The product code for the instance. For more information, see Usage operation values in the License Manager User Guide .public void setRegion(String region)
The Region the instance is running in.
region
- The Region the instance is running in.public String getRegion()
The Region the instance is running in.
public Instance withRegion(String region)
The Region the instance is running in.
region
- The Region the instance is running in.public void setStatus(String status)
The status of the instance.
status
- The status of the instance.public String getStatus()
The status of the instance.
public Instance withStatus(String status)
The status of the instance.
status
- The status of the instance.public void setSubscriptionName(String subscriptionName)
The name of the subscription being used by the instance.
subscriptionName
- The name of the subscription being used by the instance.public String getSubscriptionName()
The name of the subscription being used by the instance.
public Instance withSubscriptionName(String subscriptionName)
The name of the subscription being used by the instance.
subscriptionName
- The name of the subscription being used by the instance.public void setUsageOperation(String usageOperation)
The usage operation of the instance. For more information, see For more information, see Usage operation values in the License Manager User Guide.
usageOperation
- The usage operation of the instance. For more information, see For more information, see Usage operation values in the License Manager User Guide.public String getUsageOperation()
The usage operation of the instance. For more information, see For more information, see Usage operation values in the License Manager User Guide.
public Instance withUsageOperation(String usageOperation)
The usage operation of the instance. For more information, see For more information, see Usage operation values in the License Manager User Guide.
usageOperation
- The usage operation of the instance. For more information, see For more information, see Usage operation values in the License Manager User Guide.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.