@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceSummary extends Object implements Serializable, Cloneable, StructuredPojo
Describes an EC2 instance providing user-based subscriptions.
Constructor and Description |
---|
InstanceSummary() |
Modifier and Type | Method and Description |
---|---|
InstanceSummary |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceId()
The ID of the EC2 instance, which provides user-based subscriptions.
|
String |
getLastStatusCheckDate()
The date of the last status check.
|
List<String> |
getProducts()
A list of provided user-based subscription products.
|
String |
getStatus()
The status of an EC2 instance resource.
|
String |
getStatusMessage()
The status message for an EC2 instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstanceId(String instanceId)
The ID of the EC2 instance, which provides user-based subscriptions.
|
void |
setLastStatusCheckDate(String lastStatusCheckDate)
The date of the last status check.
|
void |
setProducts(Collection<String> products)
A list of provided user-based subscription products.
|
void |
setStatus(String status)
The status of an EC2 instance resource.
|
void |
setStatusMessage(String statusMessage)
The status message for an EC2 instance.
|
String |
toString()
Returns a string representation of this object.
|
InstanceSummary |
withInstanceId(String instanceId)
The ID of the EC2 instance, which provides user-based subscriptions.
|
InstanceSummary |
withLastStatusCheckDate(String lastStatusCheckDate)
The date of the last status check.
|
InstanceSummary |
withProducts(Collection<String> products)
A list of provided user-based subscription products.
|
InstanceSummary |
withProducts(String... products)
A list of provided user-based subscription products.
|
InstanceSummary |
withStatus(String status)
The status of an EC2 instance resource.
|
InstanceSummary |
withStatusMessage(String statusMessage)
The status message for an EC2 instance.
|
public void setInstanceId(String instanceId)
The ID of the EC2 instance, which provides user-based subscriptions.
instanceId
- The ID of the EC2 instance, which provides user-based subscriptions.public String getInstanceId()
The ID of the EC2 instance, which provides user-based subscriptions.
public InstanceSummary withInstanceId(String instanceId)
The ID of the EC2 instance, which provides user-based subscriptions.
instanceId
- The ID of the EC2 instance, which provides user-based subscriptions.public void setLastStatusCheckDate(String lastStatusCheckDate)
The date of the last status check.
lastStatusCheckDate
- The date of the last status check.public String getLastStatusCheckDate()
The date of the last status check.
public InstanceSummary withLastStatusCheckDate(String lastStatusCheckDate)
The date of the last status check.
lastStatusCheckDate
- The date of the last status check.public List<String> getProducts()
A list of provided user-based subscription products.
public void setProducts(Collection<String> products)
A list of provided user-based subscription products.
products
- A list of provided user-based subscription products.public InstanceSummary withProducts(String... products)
A list of provided user-based subscription products.
NOTE: This method appends the values to the existing list (if any). Use
setProducts(java.util.Collection)
or withProducts(java.util.Collection)
if you want to override
the existing values.
products
- A list of provided user-based subscription products.public InstanceSummary withProducts(Collection<String> products)
A list of provided user-based subscription products.
products
- A list of provided user-based subscription products.public void setStatus(String status)
The status of an EC2 instance resource.
status
- The status of an EC2 instance resource.public String getStatus()
The status of an EC2 instance resource.
public InstanceSummary withStatus(String status)
The status of an EC2 instance resource.
status
- The status of an EC2 instance resource.public void setStatusMessage(String statusMessage)
The status message for an EC2 instance.
statusMessage
- The status message for an EC2 instance.public String getStatusMessage()
The status message for an EC2 instance.
public InstanceSummary withStatusMessage(String statusMessage)
The status message for an EC2 instance.
statusMessage
- The status message for an EC2 instance.public String toString()
toString
in class Object
Object.toString()
public InstanceSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.