@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EntityAccountFilter extends Object implements Serializable, Cloneable, StructuredPojo
A JSON set of elements including the awsAccountId
, eventArn
and a set of
statusCodes
.
Constructor and Description |
---|
EntityAccountFilter() |
Modifier and Type | Method and Description |
---|---|
EntityAccountFilter |
clone() |
boolean |
equals(Object obj) |
String |
getAwsAccountId()
The 12-digit Amazon Web Services account numbers that contains the affected entities.
|
String |
getEventArn()
The unique identifier for the event.
|
List<String> |
getStatusCodes()
A list of entity status codes.
|
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 numbers that contains the affected entities.
|
void |
setEventArn(String eventArn)
The unique identifier for the event.
|
void |
setStatusCodes(Collection<String> statusCodes)
A list of entity status codes.
|
String |
toString()
Returns a string representation of this object.
|
EntityAccountFilter |
withAwsAccountId(String awsAccountId)
The 12-digit Amazon Web Services account numbers that contains the affected entities.
|
EntityAccountFilter |
withEventArn(String eventArn)
The unique identifier for the event.
|
EntityAccountFilter |
withStatusCodes(Collection<String> statusCodes)
A list of entity status codes.
|
EntityAccountFilter |
withStatusCodes(EntityStatusCode... statusCodes)
A list of entity status codes.
|
EntityAccountFilter |
withStatusCodes(String... statusCodes)
A list of entity status codes.
|
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 EntityAccountFilter 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 setAwsAccountId(String awsAccountId)
The 12-digit Amazon Web Services account numbers that contains the affected entities.
awsAccountId
- The 12-digit Amazon Web Services account numbers that contains the affected entities.public String getAwsAccountId()
The 12-digit Amazon Web Services account numbers that contains the affected entities.
public EntityAccountFilter withAwsAccountId(String awsAccountId)
The 12-digit Amazon Web Services account numbers that contains the affected entities.
awsAccountId
- The 12-digit Amazon Web Services account numbers that contains the affected entities.public List<String> getStatusCodes()
A list of entity status codes.
EntityStatusCode
public void setStatusCodes(Collection<String> statusCodes)
A list of entity status codes.
statusCodes
- A list of entity status codes.EntityStatusCode
public EntityAccountFilter withStatusCodes(String... statusCodes)
A list of entity status codes.
NOTE: This method appends the values to the existing list (if any). Use
setStatusCodes(java.util.Collection)
or withStatusCodes(java.util.Collection)
if you want to
override the existing values.
statusCodes
- A list of entity status codes.EntityStatusCode
public EntityAccountFilter withStatusCodes(Collection<String> statusCodes)
A list of entity status codes.
statusCodes
- A list of entity status codes.EntityStatusCode
public EntityAccountFilter withStatusCodes(EntityStatusCode... statusCodes)
A list of entity status codes.
statusCodes
- A list of entity status codes.EntityStatusCode
public String toString()
toString
in class Object
Object.toString()
public EntityAccountFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.