/* * 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; /** *
* Error information returned when a DescribeEventDetailsForOrganization operation can't find a specified event. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OrganizationEventDetailsErrorItem implements Serializable, Cloneable, StructuredPojo { /** ** Error information returned when a DescribeEventDetailsForOrganization operation can't find a specified event. *
*/ private String awsAccountId; /** *
* 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 name of the error. *
*/ private String errorName; /** ** A message that describes the error. *
*
* If you call the DescribeEventDetailsForOrganization
operation and receive one of the following
* errors, follow the recommendations in the message:
*
* We couldn't find a public event that matches your request. To find an event that is account specific, you must * enter an Amazon Web Services account ID in the request. *
** We couldn't find an account specific event for the specified Amazon Web Services account. To find an event that * is public, you must enter a null value for the Amazon Web Services account ID in the request. *
** Your Amazon Web Services account doesn't include the Amazon Web Services Support plan required to use the Health * API. You must have either a Business, Enterprise On-Ramp, or Enterprise Support plan. *
** Error information returned when a DescribeEventDetailsForOrganization operation can't find a specified event. *
* * @param awsAccountId * Error information returned when a DescribeEventDetailsForOrganization operation can't find a specified event. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** Error information returned when a DescribeEventDetailsForOrganization operation can't find a specified event. *
* * @return Error information returned when a DescribeEventDetailsForOrganization operation can't find a specified event. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** Error information returned when a DescribeEventDetailsForOrganization operation can't find a specified event. *
* * @param awsAccountId * Error information returned when a DescribeEventDetailsForOrganization operation can't find a specified event. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationEventDetailsErrorItem withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); 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 OrganizationEventDetailsErrorItem withEventArn(String eventArn) {
setEventArn(eventArn);
return this;
}
/**
*
* The name of the error. *
* * @param errorName * The name of the error. */ public void setErrorName(String errorName) { this.errorName = errorName; } /** ** The name of the error. *
* * @return The name of the error. */ public String getErrorName() { return this.errorName; } /** ** The name of the error. *
* * @param errorName * The name of the error. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationEventDetailsErrorItem withErrorName(String errorName) { setErrorName(errorName); return this; } /** ** A message that describes the error. *
*
* If you call the DescribeEventDetailsForOrganization
operation and receive one of the following
* errors, follow the recommendations in the message:
*
* We couldn't find a public event that matches your request. To find an event that is account specific, you must * enter an Amazon Web Services account ID in the request. *
** We couldn't find an account specific event for the specified Amazon Web Services account. To find an event that * is public, you must enter a null value for the Amazon Web Services account ID in the request. *
** Your Amazon Web Services account doesn't include the Amazon Web Services Support plan required to use the Health * API. You must have either a Business, Enterprise On-Ramp, or Enterprise Support plan. *
*
* If you call the DescribeEventDetailsForOrganization
operation and receive one of the
* following errors, follow the recommendations in the message:
*
* We couldn't find a public event that matches your request. To find an event that is account specific, you * must enter an Amazon Web Services account ID in the request. *
** We couldn't find an account specific event for the specified Amazon Web Services account. To find an event * that is public, you must enter a null value for the Amazon Web Services account ID in the request. *
** Your Amazon Web Services account doesn't include the Amazon Web Services Support plan required to use the * Health API. You must have either a Business, Enterprise On-Ramp, or Enterprise Support plan. *
** A message that describes the error. *
*
* If you call the DescribeEventDetailsForOrganization
operation and receive one of the following
* errors, follow the recommendations in the message:
*
* We couldn't find a public event that matches your request. To find an event that is account specific, you must * enter an Amazon Web Services account ID in the request. *
** We couldn't find an account specific event for the specified Amazon Web Services account. To find an event that * is public, you must enter a null value for the Amazon Web Services account ID in the request. *
** Your Amazon Web Services account doesn't include the Amazon Web Services Support plan required to use the Health * API. You must have either a Business, Enterprise On-Ramp, or Enterprise Support plan. *
*
* If you call the DescribeEventDetailsForOrganization
operation and receive one of the
* following errors, follow the recommendations in the message:
*
* We couldn't find a public event that matches your request. To find an event that is account specific, you * must enter an Amazon Web Services account ID in the request. *
** We couldn't find an account specific event for the specified Amazon Web Services account. To find an * event that is public, you must enter a null value for the Amazon Web Services account ID in the request. *
** Your Amazon Web Services account doesn't include the Amazon Web Services Support plan required to use the * Health API. You must have either a Business, Enterprise On-Ramp, or Enterprise Support plan. *
** A message that describes the error. *
*
* If you call the DescribeEventDetailsForOrganization
operation and receive one of the following
* errors, follow the recommendations in the message:
*
* We couldn't find a public event that matches your request. To find an event that is account specific, you must * enter an Amazon Web Services account ID in the request. *
** We couldn't find an account specific event for the specified Amazon Web Services account. To find an event that * is public, you must enter a null value for the Amazon Web Services account ID in the request. *
** Your Amazon Web Services account doesn't include the Amazon Web Services Support plan required to use the Health * API. You must have either a Business, Enterprise On-Ramp, or Enterprise Support plan. *
*
* If you call the DescribeEventDetailsForOrganization
operation and receive one of the
* following errors, follow the recommendations in the message:
*
* We couldn't find a public event that matches your request. To find an event that is account specific, you * must enter an Amazon Web Services account ID in the request. *
** We couldn't find an account specific event for the specified Amazon Web Services account. To find an event * that is public, you must enter a null value for the Amazon Web Services account ID in the request. *
** Your Amazon Web Services account doesn't include the Amazon Web Services Support plan required to use the * Health API. You must have either a Business, Enterprise On-Ramp, or Enterprise Support plan. *
*