@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AffectedEntity extends Object implements Serializable, Cloneable, StructuredPojo
Information about an entity that is affected by a Health event.
Constructor and Description |
---|
AffectedEntity() |
Modifier and Type | Method and Description |
---|---|
AffectedEntity |
addTagsEntry(String key,
String value) |
AffectedEntity |
clearTagsEntries()
Removes all the entries added into Tags.
|
AffectedEntity |
clone() |
boolean |
equals(Object obj) |
String |
getAwsAccountId()
The 12-digit AWS account number that contains the affected entity.
|
String |
getEntityArn()
The unique identifier for the entity.
|
String |
getEntityValue()
The ID of the affected entity.
|
String |
getEventArn()
The unique identifier for the event.
|
Date |
getLastUpdatedTime()
The most recent time that the entity was updated.
|
String |
getStatusCode()
The most recent status of the entity affected by the event.
|
Map<String,String> |
getTags()
A map of entity tags attached to the affected entity.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAwsAccountId(String awsAccountId)
The 12-digit AWS account number that contains the affected entity.
|
void |
setEntityArn(String entityArn)
The unique identifier for the entity.
|
void |
setEntityValue(String entityValue)
The ID of the affected entity.
|
void |
setEventArn(String eventArn)
The unique identifier for the event.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The most recent time that the entity was updated.
|
void |
setStatusCode(EntityStatusCode statusCode)
The most recent status of the entity affected by the event.
|
void |
setStatusCode(String statusCode)
The most recent status of the entity affected by the event.
|
void |
setTags(Map<String,String> tags)
A map of entity tags attached to the affected entity.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AffectedEntity |
withAwsAccountId(String awsAccountId)
The 12-digit AWS account number that contains the affected entity.
|
AffectedEntity |
withEntityArn(String entityArn)
The unique identifier for the entity.
|
AffectedEntity |
withEntityValue(String entityValue)
The ID of the affected entity.
|
AffectedEntity |
withEventArn(String eventArn)
The unique identifier for the event.
|
AffectedEntity |
withLastUpdatedTime(Date lastUpdatedTime)
The most recent time that the entity was updated.
|
AffectedEntity |
withStatusCode(EntityStatusCode statusCode)
The most recent status of the entity affected by the event.
|
AffectedEntity |
withStatusCode(String statusCode)
The most recent status of the entity affected by the event.
|
AffectedEntity |
withTags(Map<String,String> tags)
A map of entity tags attached to the affected entity.
|
public void setEntityArn(String entityArn)
The unique identifier for the entity. Format:
arn:aws:health:entity-region:aws-account:entity/entity-id
. Example:
arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
entityArn
- The unique identifier for the entity. Format:
arn:aws:health:entity-region:aws-account:entity/entity-id
. Example:
arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
public String getEntityArn()
The unique identifier for the entity. Format:
arn:aws:health:entity-region:aws-account:entity/entity-id
. Example:
arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
arn:aws:health:entity-region:aws-account:entity/entity-id
. Example:
arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
public AffectedEntity withEntityArn(String entityArn)
The unique identifier for the entity. Format:
arn:aws:health:entity-region:aws-account:entity/entity-id
. Example:
arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
entityArn
- The unique identifier for the entity. Format:
arn:aws:health:entity-region:aws-account:entity/entity-id
. Example:
arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
public void setEventArn(String eventArn)
The unique identifier for the event. Format:
arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID
. Example:
arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331
eventArn
- The unique identifier for the event. Format:
arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID
. Example:
arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331
public String getEventArn()
The unique identifier for the event. Format:
arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID
. Example:
arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331
arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID
. Example:
arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331
public AffectedEntity withEventArn(String eventArn)
The unique identifier for the event. Format:
arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID
. Example:
arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331
eventArn
- The unique identifier for the event. Format:
arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID
. Example:
arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331
public void setEntityValue(String entityValue)
The ID of the affected entity.
entityValue
- The ID of the affected entity.public String getEntityValue()
The ID of the affected entity.
public AffectedEntity withEntityValue(String entityValue)
The ID of the affected entity.
entityValue
- The ID of the affected entity.public void setAwsAccountId(String awsAccountId)
The 12-digit AWS account number that contains the affected entity.
awsAccountId
- The 12-digit AWS account number that contains the affected entity.public String getAwsAccountId()
The 12-digit AWS account number that contains the affected entity.
public AffectedEntity withAwsAccountId(String awsAccountId)
The 12-digit AWS account number that contains the affected entity.
awsAccountId
- The 12-digit AWS account number that contains the affected entity.public void setLastUpdatedTime(Date lastUpdatedTime)
The most recent time that the entity was updated.
lastUpdatedTime
- The most recent time that the entity was updated.public Date getLastUpdatedTime()
The most recent time that the entity was updated.
public AffectedEntity withLastUpdatedTime(Date lastUpdatedTime)
The most recent time that the entity was updated.
lastUpdatedTime
- The most recent time that the entity was updated.public void setStatusCode(String statusCode)
The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
UNIMPAIRED
, and UNKNOWN
.
statusCode
- The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
UNIMPAIRED
, and UNKNOWN
.EntityStatusCode
public String getStatusCode()
The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
UNIMPAIRED
, and UNKNOWN
.
IMPAIRED
, UNIMPAIRED
, and UNKNOWN
.EntityStatusCode
public AffectedEntity withStatusCode(String statusCode)
The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
UNIMPAIRED
, and UNKNOWN
.
statusCode
- The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
UNIMPAIRED
, and UNKNOWN
.EntityStatusCode
public void setStatusCode(EntityStatusCode statusCode)
The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
UNIMPAIRED
, and UNKNOWN
.
statusCode
- The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
UNIMPAIRED
, and UNKNOWN
.EntityStatusCode
public AffectedEntity withStatusCode(EntityStatusCode statusCode)
The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
UNIMPAIRED
, and UNKNOWN
.
statusCode
- The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
UNIMPAIRED
, and UNKNOWN
.EntityStatusCode
public Map<String,String> getTags()
A map of entity tags attached to the affected entity.
public void setTags(Map<String,String> tags)
A map of entity tags attached to the affected entity.
tags
- A map of entity tags attached to the affected entity.public AffectedEntity withTags(Map<String,String> tags)
A map of entity tags attached to the affected entity.
tags
- A map of entity tags attached to the affected entity.public AffectedEntity addTagsEntry(String key, String value)
public AffectedEntity clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public AffectedEntity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.