/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.health.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about an entity that is affected by a Health event. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AffectedEntity implements Serializable, Cloneable, StructuredPojo { /** *
* 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
*
* 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
*
* The ID of the affected entity. *
*/ private String entityValue; /** ** The URL of the affected entity. *
*/ private String entityUrl; /** ** The 12-digit Amazon Web Services account number that contains the affected entity. *
*/ private String awsAccountId; /** ** The most recent time that the entity was updated. *
*/ private java.util.Date lastUpdatedTime; /** *
* The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
*
* A map of entity tags attached to the affected entity. *
*
* Currently, the tags
property isn't supported.
*
* 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 void setEntityArn(String entityArn) {
this.entityArn = 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
*
arn:aws:health:entity-region:aws-account:entity/entity-id
. Example:
* arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
*/
public String getEntityArn() {
return this.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
*
arn:aws:health:entity-region:aws-account:entity/entity-id
. Example:
* arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AffectedEntity withEntityArn(String entityArn) {
setEntityArn(entityArn);
return this;
}
/**
*
* 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 void setEventArn(String eventArn) {
this.eventArn = 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
*
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() {
return this.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
*
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
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AffectedEntity withEventArn(String eventArn) {
setEventArn(eventArn);
return this;
}
/**
*
* The ID of the affected entity. *
* * @param entityValue * The ID of the affected entity. */ public void setEntityValue(String entityValue) { this.entityValue = entityValue; } /** ** The ID of the affected entity. *
* * @return The ID of the affected entity. */ public String getEntityValue() { return this.entityValue; } /** ** The ID of the affected entity. *
* * @param entityValue * The ID of the affected entity. * @return Returns a reference to this object so that method calls can be chained together. */ public AffectedEntity withEntityValue(String entityValue) { setEntityValue(entityValue); return this; } /** ** The URL of the affected entity. *
* * @param entityUrl * The URL of the affected entity. */ public void setEntityUrl(String entityUrl) { this.entityUrl = entityUrl; } /** ** The URL of the affected entity. *
* * @return The URL of the affected entity. */ public String getEntityUrl() { return this.entityUrl; } /** ** The URL of the affected entity. *
* * @param entityUrl * The URL of the affected entity. * @return Returns a reference to this object so that method calls can be chained together. */ public AffectedEntity withEntityUrl(String entityUrl) { setEntityUrl(entityUrl); return this; } /** ** The 12-digit Amazon Web Services account number that contains the affected entity. *
* * @param awsAccountId * The 12-digit Amazon Web Services account number that contains the affected entity. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The 12-digit Amazon Web Services account number that contains the affected entity. *
* * @return The 12-digit Amazon Web Services account number that contains the affected entity. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The 12-digit Amazon Web Services account number that contains the affected entity. *
* * @param awsAccountId * The 12-digit Amazon Web Services account number that contains the affected entity. * @return Returns a reference to this object so that method calls can be chained together. */ public AffectedEntity withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** The most recent time that the entity was updated. *
* * @param lastUpdatedTime * The most recent time that the entity was updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** ** The most recent time that the entity was updated. *
* * @return The most recent time that the entity was updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** ** The most recent time that the entity was updated. *
* * @param lastUpdatedTime * The most recent time that the entity was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public AffectedEntity withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *
* The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
*
IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
* @see EntityStatusCode
*/
public void setStatusCode(String statusCode) {
this.statusCode = statusCode;
}
/**
*
* The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
*
IMPAIRED
* , UNIMPAIRED
, and UNKNOWN
.
* @see EntityStatusCode
*/
public String getStatusCode() {
return this.statusCode;
}
/**
*
* The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
*
IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EntityStatusCode
*/
public AffectedEntity withStatusCode(String statusCode) {
setStatusCode(statusCode);
return this;
}
/**
*
* The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
*
IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
* @see EntityStatusCode
*/
public void setStatusCode(EntityStatusCode statusCode) {
withStatusCode(statusCode);
}
/**
*
* The most recent status of the entity affected by the event. The possible values are IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
*
IMPAIRED
,
* UNIMPAIRED
, and UNKNOWN
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EntityStatusCode
*/
public AffectedEntity withStatusCode(EntityStatusCode statusCode) {
this.statusCode = statusCode.toString();
return this;
}
/**
* * A map of entity tags attached to the affected entity. *
*
* Currently, the tags
property isn't supported.
*
* Currently, the tags
property isn't supported.
*
* A map of entity tags attached to the affected entity. *
*
* Currently, the tags
property isn't supported.
*
* Currently, the tags
property isn't supported.
*
* A map of entity tags attached to the affected entity. *
*
* Currently, the tags
property isn't supported.
*
* Currently, the tags
property isn't supported.
*