@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)
Add a single Tags entry
|
AffectedEntity |
clearTagsEntries()
Removes all the entries added into Tags.
|
AffectedEntity |
clone() |
boolean |
equals(Object obj) |
String |
getAwsAccountId()
The 12-digit Amazon Web Services account number that contains the affected entity.
|
String |
getEntityArn()
The unique identifier for the entity.
|
String |
getEntityUrl()
The URL of the affected 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 Amazon Web Services account number that contains the affected entity.
|
void |
setEntityArn(String entityArn)
The unique identifier for the entity.
|
void |
setEntityUrl(String entityUrl)
The URL of the affected 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.
|
AffectedEntity |
withAwsAccountId(String awsAccountId)
The 12-digit Amazon Web Services account number that contains the affected entity.
|
AffectedEntity |
withEntityArn(String entityArn)
The unique identifier for the entity.
|
AffectedEntity |
withEntityUrl(String entityUrl)
The URL of the affected 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. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
eventArn
- The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
public String getEventArn()
The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
public AffectedEntity withEventArn(String eventArn)
The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
eventArn
- The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
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 setEntityUrl(String entityUrl)
The URL of the affected entity.
entityUrl
- The URL of the affected entity.public String getEntityUrl()
The URL of the affected entity.
public AffectedEntity withEntityUrl(String entityUrl)
The URL of the affected entity.
entityUrl
- The URL of the affected entity.public void setAwsAccountId(String awsAccountId)
The 12-digit Amazon Web Services account number that contains the affected entity.
awsAccountId
- The 12-digit Amazon Web Services account number that contains the affected entity.public String getAwsAccountId()
The 12-digit Amazon Web Services account number that contains the affected entity.
public AffectedEntity withAwsAccountId(String awsAccountId)
The 12-digit Amazon Web Services account number that contains the affected entity.
awsAccountId
- The 12-digit Amazon Web Services 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.
Currently, the tags
property isn't supported.
Currently, the tags
property isn't supported.
public void setTags(Map<String,String> tags)
A map of entity tags attached to the affected entity.
Currently, the tags
property isn't supported.
tags
- A map of entity tags attached to the affected entity.
Currently, the tags
property isn't supported.
public AffectedEntity withTags(Map<String,String> tags)
A map of entity tags attached to the affected entity.
Currently, the tags
property isn't supported.
tags
- A map of entity tags attached to the affected entity.
Currently, the tags
property isn't supported.
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.