feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,953 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/health/model/DescribeAffectedAccountsForOrganizationResult.h>
#include <aws/health/model/DescribeAffectedEntitiesResult.h>
#include <aws/health/model/DescribeAffectedEntitiesForOrganizationResult.h>
#include <aws/health/model/DescribeEntityAggregatesResult.h>
#include <aws/health/model/DescribeEventAggregatesResult.h>
#include <aws/health/model/DescribeEventDetailsResult.h>
#include <aws/health/model/DescribeEventDetailsForOrganizationResult.h>
#include <aws/health/model/DescribeEventTypesResult.h>
#include <aws/health/model/DescribeEventsResult.h>
#include <aws/health/model/DescribeEventsForOrganizationResult.h>
#include <aws/health/model/DescribeHealthServiceStatusForOrganizationResult.h>
#include <aws/core/NoResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
namespace Aws
{
namespace Http
{
class HttpClient;
class HttpClientFactory;
} // namespace Http
namespace Utils
{
template< typename R, typename E> class Outcome;
namespace Threading
{
class Executor;
} // namespace Threading
} // namespace Utils
namespace Auth
{
class AWSCredentials;
class AWSCredentialsProvider;
} // namespace Auth
namespace Client
{
class RetryStrategy;
} // namespace Client
namespace Health
{
namespace Model
{
class DescribeAffectedAccountsForOrganizationRequest;
class DescribeAffectedEntitiesRequest;
class DescribeAffectedEntitiesForOrganizationRequest;
class DescribeEntityAggregatesRequest;
class DescribeEventAggregatesRequest;
class DescribeEventDetailsRequest;
class DescribeEventDetailsForOrganizationRequest;
class DescribeEventTypesRequest;
class DescribeEventsRequest;
class DescribeEventsForOrganizationRequest;
typedef Aws::Utils::Outcome<DescribeAffectedAccountsForOrganizationResult, HealthError> DescribeAffectedAccountsForOrganizationOutcome;
typedef Aws::Utils::Outcome<DescribeAffectedEntitiesResult, HealthError> DescribeAffectedEntitiesOutcome;
typedef Aws::Utils::Outcome<DescribeAffectedEntitiesForOrganizationResult, HealthError> DescribeAffectedEntitiesForOrganizationOutcome;
typedef Aws::Utils::Outcome<DescribeEntityAggregatesResult, HealthError> DescribeEntityAggregatesOutcome;
typedef Aws::Utils::Outcome<DescribeEventAggregatesResult, HealthError> DescribeEventAggregatesOutcome;
typedef Aws::Utils::Outcome<DescribeEventDetailsResult, HealthError> DescribeEventDetailsOutcome;
typedef Aws::Utils::Outcome<DescribeEventDetailsForOrganizationResult, HealthError> DescribeEventDetailsForOrganizationOutcome;
typedef Aws::Utils::Outcome<DescribeEventTypesResult, HealthError> DescribeEventTypesOutcome;
typedef Aws::Utils::Outcome<DescribeEventsResult, HealthError> DescribeEventsOutcome;
typedef Aws::Utils::Outcome<DescribeEventsForOrganizationResult, HealthError> DescribeEventsForOrganizationOutcome;
typedef Aws::Utils::Outcome<DescribeHealthServiceStatusForOrganizationResult, HealthError> DescribeHealthServiceStatusForOrganizationOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, HealthError> DisableHealthServiceAccessForOrganizationOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, HealthError> EnableHealthServiceAccessForOrganizationOutcome;
typedef std::future<DescribeAffectedAccountsForOrganizationOutcome> DescribeAffectedAccountsForOrganizationOutcomeCallable;
typedef std::future<DescribeAffectedEntitiesOutcome> DescribeAffectedEntitiesOutcomeCallable;
typedef std::future<DescribeAffectedEntitiesForOrganizationOutcome> DescribeAffectedEntitiesForOrganizationOutcomeCallable;
typedef std::future<DescribeEntityAggregatesOutcome> DescribeEntityAggregatesOutcomeCallable;
typedef std::future<DescribeEventAggregatesOutcome> DescribeEventAggregatesOutcomeCallable;
typedef std::future<DescribeEventDetailsOutcome> DescribeEventDetailsOutcomeCallable;
typedef std::future<DescribeEventDetailsForOrganizationOutcome> DescribeEventDetailsForOrganizationOutcomeCallable;
typedef std::future<DescribeEventTypesOutcome> DescribeEventTypesOutcomeCallable;
typedef std::future<DescribeEventsOutcome> DescribeEventsOutcomeCallable;
typedef std::future<DescribeEventsForOrganizationOutcome> DescribeEventsForOrganizationOutcomeCallable;
typedef std::future<DescribeHealthServiceStatusForOrganizationOutcome> DescribeHealthServiceStatusForOrganizationOutcomeCallable;
typedef std::future<DisableHealthServiceAccessForOrganizationOutcome> DisableHealthServiceAccessForOrganizationOutcomeCallable;
typedef std::future<EnableHealthServiceAccessForOrganizationOutcome> EnableHealthServiceAccessForOrganizationOutcomeCallable;
} // namespace Model
class HealthClient;
typedef std::function<void(const HealthClient*, const Model::DescribeAffectedAccountsForOrganizationRequest&, const Model::DescribeAffectedAccountsForOrganizationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeAffectedAccountsForOrganizationResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeAffectedEntitiesRequest&, const Model::DescribeAffectedEntitiesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeAffectedEntitiesResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeAffectedEntitiesForOrganizationRequest&, const Model::DescribeAffectedEntitiesForOrganizationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeAffectedEntitiesForOrganizationResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeEntityAggregatesRequest&, const Model::DescribeEntityAggregatesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeEntityAggregatesResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeEventAggregatesRequest&, const Model::DescribeEventAggregatesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeEventAggregatesResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeEventDetailsRequest&, const Model::DescribeEventDetailsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeEventDetailsResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeEventDetailsForOrganizationRequest&, const Model::DescribeEventDetailsForOrganizationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeEventDetailsForOrganizationResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeEventTypesRequest&, const Model::DescribeEventTypesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeEventTypesResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeEventsRequest&, const Model::DescribeEventsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeEventsResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeEventsForOrganizationRequest&, const Model::DescribeEventsForOrganizationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeEventsForOrganizationResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DescribeHealthServiceStatusForOrganizationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeHealthServiceStatusForOrganizationResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::DisableHealthServiceAccessForOrganizationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DisableHealthServiceAccessForOrganizationResponseReceivedHandler;
typedef std::function<void(const HealthClient*, const Model::EnableHealthServiceAccessForOrganizationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > EnableHealthServiceAccessForOrganizationResponseReceivedHandler;
/**
* <fullname>AWS Health</fullname> <p>The AWS Health API provides programmatic
* access to the AWS Health information that appears in the <a
* href="https://phd.aws.amazon.com/phd/home#/">AWS Personal Health Dashboard</a>.
* You can use the API operations to get information about AWS Health events that
* affect your AWS services and resources.</p> <p>You must have a Business
* or Enterprise support plan from <a
* href="http://aws.amazon.com/premiumsupport/">AWS Support</a> to use the AWS
* Health API. If you call the AWS Health API from an AWS account that doesn't have
* a Business or Enterprise support plan, you receive a
* <code>SubscriptionRequiredException</code> error.</p> <p>AWS Health has
* a single endpoint: health.us-east-1.amazonaws.com (HTTPS). Use this endpoint to
* call the AWS Health API operations.</p> <p>For authentication of requests, AWS
* Health uses the <a
* href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
* Version 4 Signing Process</a>.</p> <p>If your AWS account is part of AWS
* Organizations, you can use the AWS Health organizational view feature. This
* feature provides a centralized view of AWS Health events across all accounts in
* your organization. You can aggregate AWS Health events in real time to identify
* accounts in your organization that are affected by an operational event or get
* notified of security vulnerabilities. Use the organizational view API operations
* to enable this feature and return event information. For more information, see
* <a
* href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
* AWS Health events</a> in the <i>AWS Health User Guide</i>.</p> <p>When
* you use the AWS Health API operations to return AWS Health events, see the
* following recommendations:</p> <ul> <li> <p>Use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a>
* parameter to specify whether to return AWS Health events that are public or
* account-specific.</p> </li> <li> <p>Use pagination to view all events from the
* response. For example, if you call the
* <code>DescribeEventsForOrganization</code> operation to get all events in your
* organization, you might receive several page results. Specify the
* <code>nextToken</code> in the next request to return more results.</p> </li>
* </ul>
*/
class AWS_HEALTH_API HealthClient : public Aws::Client::AWSJsonClient
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
HealthClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
HealthClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
HealthClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~HealthClient();
/**
* <p>Returns a list of accounts in the organization from AWS Organizations that
* are affected by the provided event. For more information about the different
* types of AWS Health events, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
* </p> <p>Before you can call this operation, you must first enable AWS Health to
* work with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master account.</p> <p>This API
* operation uses pagination. Specify the <code>nextToken</code> parameter in the
* next request to return more results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">AWS
* API Reference</a></p>
*/
virtual Model::DescribeAffectedAccountsForOrganizationOutcome DescribeAffectedAccountsForOrganization(const Model::DescribeAffectedAccountsForOrganizationRequest& request) const;
/**
* <p>Returns a list of accounts in the organization from AWS Organizations that
* are affected by the provided event. For more information about the different
* types of AWS Health events, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
* </p> <p>Before you can call this operation, you must first enable AWS Health to
* work with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master account.</p> <p>This API
* operation uses pagination. Specify the <code>nextToken</code> parameter in the
* next request to return more results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeAffectedAccountsForOrganizationOutcomeCallable DescribeAffectedAccountsForOrganizationCallable(const Model::DescribeAffectedAccountsForOrganizationRequest& request) const;
/**
* <p>Returns a list of accounts in the organization from AWS Organizations that
* are affected by the provided event. For more information about the different
* types of AWS Health events, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
* </p> <p>Before you can call this operation, you must first enable AWS Health to
* work with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master account.</p> <p>This API
* operation uses pagination. Specify the <code>nextToken</code> parameter in the
* next request to return more results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeAffectedAccountsForOrganizationAsync(const Model::DescribeAffectedAccountsForOrganizationRequest& request, const DescribeAffectedAccountsForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns a list of entities that have been affected by the specified events,
* based on the specified filter criteria. Entities can refer to individual
* customer resources, groups of customer resources, or any other construct,
* depending on the AWS service. Events that have impact beyond that of the
* affected entities, or where the extent of impact is unknown, include at least
* one entity indicating this.</p> <p>At least one event ARN is required. Results
* are sorted by the <code>lastUpdatedTime</code> of the entity, starting with the
* most recent.</p> <p>This API operation uses pagination. Specify the
* <code>nextToken</code> parameter in the next request to return more results.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">AWS
* API Reference</a></p>
*/
virtual Model::DescribeAffectedEntitiesOutcome DescribeAffectedEntities(const Model::DescribeAffectedEntitiesRequest& request) const;
/**
* <p>Returns a list of entities that have been affected by the specified events,
* based on the specified filter criteria. Entities can refer to individual
* customer resources, groups of customer resources, or any other construct,
* depending on the AWS service. Events that have impact beyond that of the
* affected entities, or where the extent of impact is unknown, include at least
* one entity indicating this.</p> <p>At least one event ARN is required. Results
* are sorted by the <code>lastUpdatedTime</code> of the entity, starting with the
* most recent.</p> <p>This API operation uses pagination. Specify the
* <code>nextToken</code> parameter in the next request to return more results.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeAffectedEntitiesOutcomeCallable DescribeAffectedEntitiesCallable(const Model::DescribeAffectedEntitiesRequest& request) const;
/**
* <p>Returns a list of entities that have been affected by the specified events,
* based on the specified filter criteria. Entities can refer to individual
* customer resources, groups of customer resources, or any other construct,
* depending on the AWS service. Events that have impact beyond that of the
* affected entities, or where the extent of impact is unknown, include at least
* one entity indicating this.</p> <p>At least one event ARN is required. Results
* are sorted by the <code>lastUpdatedTime</code> of the entity, starting with the
* most recent.</p> <p>This API operation uses pagination. Specify the
* <code>nextToken</code> parameter in the next request to return more results.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeAffectedEntitiesAsync(const Model::DescribeAffectedEntitiesRequest& request, const DescribeAffectedEntitiesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns a list of entities that have been affected by one or more events for
* one or more accounts in your organization in AWS Organizations, based on the
* filter criteria. Entities can refer to individual customer resources, groups of
* customer resources, or any other construct, depending on the AWS service.</p>
* <p>At least one event Amazon Resource Name (ARN) and account ID are required.
* Results are sorted by the <code>lastUpdatedTime</code> of the entity, starting
* with the most recent.</p> <p>Before you can call this operation, you must first
* enable AWS Health to work with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master account. </p> <p>This API
* operation uses pagination. Specify the <code>nextToken</code> parameter in the
* next request to return more results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">AWS
* API Reference</a></p>
*/
virtual Model::DescribeAffectedEntitiesForOrganizationOutcome DescribeAffectedEntitiesForOrganization(const Model::DescribeAffectedEntitiesForOrganizationRequest& request) const;
/**
* <p>Returns a list of entities that have been affected by one or more events for
* one or more accounts in your organization in AWS Organizations, based on the
* filter criteria. Entities can refer to individual customer resources, groups of
* customer resources, or any other construct, depending on the AWS service.</p>
* <p>At least one event Amazon Resource Name (ARN) and account ID are required.
* Results are sorted by the <code>lastUpdatedTime</code> of the entity, starting
* with the most recent.</p> <p>Before you can call this operation, you must first
* enable AWS Health to work with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master account. </p> <p>This API
* operation uses pagination. Specify the <code>nextToken</code> parameter in the
* next request to return more results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeAffectedEntitiesForOrganizationOutcomeCallable DescribeAffectedEntitiesForOrganizationCallable(const Model::DescribeAffectedEntitiesForOrganizationRequest& request) const;
/**
* <p>Returns a list of entities that have been affected by one or more events for
* one or more accounts in your organization in AWS Organizations, based on the
* filter criteria. Entities can refer to individual customer resources, groups of
* customer resources, or any other construct, depending on the AWS service.</p>
* <p>At least one event Amazon Resource Name (ARN) and account ID are required.
* Results are sorted by the <code>lastUpdatedTime</code> of the entity, starting
* with the most recent.</p> <p>Before you can call this operation, you must first
* enable AWS Health to work with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master account. </p> <p>This API
* operation uses pagination. Specify the <code>nextToken</code> parameter in the
* next request to return more results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeAffectedEntitiesForOrganizationAsync(const Model::DescribeAffectedEntitiesForOrganizationRequest& request, const DescribeAffectedEntitiesForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns the number of entities that are affected by each of the specified
* events. If no events are specified, the counts of all affected entities are
* returned.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">AWS
* API Reference</a></p>
*/
virtual Model::DescribeEntityAggregatesOutcome DescribeEntityAggregates(const Model::DescribeEntityAggregatesRequest& request) const;
/**
* <p>Returns the number of entities that are affected by each of the specified
* events. If no events are specified, the counts of all affected entities are
* returned.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeEntityAggregatesOutcomeCallable DescribeEntityAggregatesCallable(const Model::DescribeEntityAggregatesRequest& request) const;
/**
* <p>Returns the number of entities that are affected by each of the specified
* events. If no events are specified, the counts of all affected entities are
* returned.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeEntityAggregatesAsync(const Model::DescribeEntityAggregatesRequest& request, const DescribeEntityAggregatesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns the number of events of each event type (issue, scheduled change, and
* account notification). If no filter is specified, the counts of all events in
* each category are returned.</p> <p>This API operation uses pagination.
* Specify the <code>nextToken</code> parameter in the next request to return more
* results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">AWS
* API Reference</a></p>
*/
virtual Model::DescribeEventAggregatesOutcome DescribeEventAggregates(const Model::DescribeEventAggregatesRequest& request) const;
/**
* <p>Returns the number of events of each event type (issue, scheduled change, and
* account notification). If no filter is specified, the counts of all events in
* each category are returned.</p> <p>This API operation uses pagination.
* Specify the <code>nextToken</code> parameter in the next request to return more
* results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeEventAggregatesOutcomeCallable DescribeEventAggregatesCallable(const Model::DescribeEventAggregatesRequest& request) const;
/**
* <p>Returns the number of events of each event type (issue, scheduled change, and
* account notification). If no filter is specified, the counts of all events in
* each category are returned.</p> <p>This API operation uses pagination.
* Specify the <code>nextToken</code> parameter in the next request to return more
* results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeEventAggregatesAsync(const Model::DescribeEventAggregatesRequest& request, const DescribeEventAggregatesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns detailed information about one or more specified events. Information
* includes standard event data (Region, service, and so on, as returned by <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
* a detailed event description, and possible additional metadata that depends upon
* the nature of the event. Affected entities are not included. To retrieve those,
* use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
* operation.</p> <p>If a specified event cannot be retrieved, an error message is
* returned for that event.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">AWS
* API Reference</a></p>
*/
virtual Model::DescribeEventDetailsOutcome DescribeEventDetails(const Model::DescribeEventDetailsRequest& request) const;
/**
* <p>Returns detailed information about one or more specified events. Information
* includes standard event data (Region, service, and so on, as returned by <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
* a detailed event description, and possible additional metadata that depends upon
* the nature of the event. Affected entities are not included. To retrieve those,
* use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
* operation.</p> <p>If a specified event cannot be retrieved, an error message is
* returned for that event.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeEventDetailsOutcomeCallable DescribeEventDetailsCallable(const Model::DescribeEventDetailsRequest& request) const;
/**
* <p>Returns detailed information about one or more specified events. Information
* includes standard event data (Region, service, and so on, as returned by <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
* a detailed event description, and possible additional metadata that depends upon
* the nature of the event. Affected entities are not included. To retrieve those,
* use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
* operation.</p> <p>If a specified event cannot be retrieved, an error message is
* returned for that event.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeEventDetailsAsync(const Model::DescribeEventDetailsRequest& request, const DescribeEventDetailsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns detailed information about one or more specified events for one or
* more accounts in your organization. Information includes standard event data
* (Region, service, and so on, as returned by <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventsForOrganization.html">DescribeEventsForOrganization</a>),
* a detailed event description, and possible additional metadata that depends upon
* the nature of the event. Affected entities are not included; to retrieve those,
* use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
* operation.</p> <p>Before you can call this operation, you must first enable AWS
* Health to work with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master account.</p> <p>When you call the
* <code>DescribeEventDetailsForOrganization</code> operation, you specify the
* <code>organizationEventDetailFilters</code> object in the request. Depending on
* the AWS Health event type, note the following differences:</p> <ul> <li> <p>If
* the event is public, the <code>awsAccountId</code> parameter must be empty. If
* you specify an account ID for a public event, then an error message is returned.
* That's because the event might apply to all AWS accounts and isn't specific to
* an account in your organization.</p> </li> <li> <p>If the event is specific to
* an account, then you must specify the <code>awsAccountId</code> parameter in the
* request. If you don't specify an account ID, an error message returns because
* the event is specific to an AWS account in your organization. </p> </li> </ul>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">AWS
* API Reference</a></p>
*/
virtual Model::DescribeEventDetailsForOrganizationOutcome DescribeEventDetailsForOrganization(const Model::DescribeEventDetailsForOrganizationRequest& request) const;
/**
* <p>Returns detailed information about one or more specified events for one or
* more accounts in your organization. Information includes standard event data
* (Region, service, and so on, as returned by <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventsForOrganization.html">DescribeEventsForOrganization</a>),
* a detailed event description, and possible additional metadata that depends upon
* the nature of the event. Affected entities are not included; to retrieve those,
* use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
* operation.</p> <p>Before you can call this operation, you must first enable AWS
* Health to work with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master account.</p> <p>When you call the
* <code>DescribeEventDetailsForOrganization</code> operation, you specify the
* <code>organizationEventDetailFilters</code> object in the request. Depending on
* the AWS Health event type, note the following differences:</p> <ul> <li> <p>If
* the event is public, the <code>awsAccountId</code> parameter must be empty. If
* you specify an account ID for a public event, then an error message is returned.
* That's because the event might apply to all AWS accounts and isn't specific to
* an account in your organization.</p> </li> <li> <p>If the event is specific to
* an account, then you must specify the <code>awsAccountId</code> parameter in the
* request. If you don't specify an account ID, an error message returns because
* the event is specific to an AWS account in your organization. </p> </li> </ul>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeEventDetailsForOrganizationOutcomeCallable DescribeEventDetailsForOrganizationCallable(const Model::DescribeEventDetailsForOrganizationRequest& request) const;
/**
* <p>Returns detailed information about one or more specified events for one or
* more accounts in your organization. Information includes standard event data
* (Region, service, and so on, as returned by <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventsForOrganization.html">DescribeEventsForOrganization</a>),
* a detailed event description, and possible additional metadata that depends upon
* the nature of the event. Affected entities are not included; to retrieve those,
* use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
* operation.</p> <p>Before you can call this operation, you must first enable AWS
* Health to work with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master account.</p> <p>When you call the
* <code>DescribeEventDetailsForOrganization</code> operation, you specify the
* <code>organizationEventDetailFilters</code> object in the request. Depending on
* the AWS Health event type, note the following differences:</p> <ul> <li> <p>If
* the event is public, the <code>awsAccountId</code> parameter must be empty. If
* you specify an account ID for a public event, then an error message is returned.
* That's because the event might apply to all AWS accounts and isn't specific to
* an account in your organization.</p> </li> <li> <p>If the event is specific to
* an account, then you must specify the <code>awsAccountId</code> parameter in the
* request. If you don't specify an account ID, an error message returns because
* the event is specific to an AWS account in your organization. </p> </li> </ul>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeEventDetailsForOrganizationAsync(const Model::DescribeEventDetailsForOrganizationRequest& request, const DescribeEventDetailsForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns the event types that meet the specified filter criteria. If no filter
* criteria are specified, all event types are returned, in no particular
* order.</p> <p>This API operation uses pagination. Specify the
* <code>nextToken</code> parameter in the next request to return more results.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">AWS
* API Reference</a></p>
*/
virtual Model::DescribeEventTypesOutcome DescribeEventTypes(const Model::DescribeEventTypesRequest& request) const;
/**
* <p>Returns the event types that meet the specified filter criteria. If no filter
* criteria are specified, all event types are returned, in no particular
* order.</p> <p>This API operation uses pagination. Specify the
* <code>nextToken</code> parameter in the next request to return more results.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeEventTypesOutcomeCallable DescribeEventTypesCallable(const Model::DescribeEventTypesRequest& request) const;
/**
* <p>Returns the event types that meet the specified filter criteria. If no filter
* criteria are specified, all event types are returned, in no particular
* order.</p> <p>This API operation uses pagination. Specify the
* <code>nextToken</code> parameter in the next request to return more results.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeEventTypesAsync(const Model::DescribeEventTypesRequest& request, const DescribeEventTypesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Returns information about events that meet the specified filter criteria.
* Events are returned in a summary form and do not include the detailed
* description, any additional metadata that depends on the event type, or any
* affected resources. To retrieve that information, use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
* and <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
* operations.</p> <p>If no filter criteria are specified, all events are returned.
* Results are sorted by <code>lastModifiedTime</code>, starting with the most
* recent event.</p> <ul> <li> <p>When you call the
* <code>DescribeEvents</code> operation and specify an entity for the
* <code>entityValues</code> parameter, AWS Health might return public events that
* aren't specific to that resource. For example, if you call
* <code>DescribeEvents</code> and specify an ID for an Amazon Elastic Compute
* Cloud (Amazon EC2) instance, AWS Health might return events that aren't specific
* to that resource or service. To get events that are specific to a service, use
* the <code>services</code> parameter in the <code>filter</code> object. For more
* information, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p>
* </li> <li> <p>This API operation uses pagination. Specify the
* <code>nextToken</code> parameter in the next request to return more results.</p>
* </li> </ul> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">AWS
* API Reference</a></p>
*/
virtual Model::DescribeEventsOutcome DescribeEvents(const Model::DescribeEventsRequest& request) const;
/**
* <p> Returns information about events that meet the specified filter criteria.
* Events are returned in a summary form and do not include the detailed
* description, any additional metadata that depends on the event type, or any
* affected resources. To retrieve that information, use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
* and <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
* operations.</p> <p>If no filter criteria are specified, all events are returned.
* Results are sorted by <code>lastModifiedTime</code>, starting with the most
* recent event.</p> <ul> <li> <p>When you call the
* <code>DescribeEvents</code> operation and specify an entity for the
* <code>entityValues</code> parameter, AWS Health might return public events that
* aren't specific to that resource. For example, if you call
* <code>DescribeEvents</code> and specify an ID for an Amazon Elastic Compute
* Cloud (Amazon EC2) instance, AWS Health might return events that aren't specific
* to that resource or service. To get events that are specific to a service, use
* the <code>services</code> parameter in the <code>filter</code> object. For more
* information, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p>
* </li> <li> <p>This API operation uses pagination. Specify the
* <code>nextToken</code> parameter in the next request to return more results.</p>
* </li> </ul> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeEventsOutcomeCallable DescribeEventsCallable(const Model::DescribeEventsRequest& request) const;
/**
* <p> Returns information about events that meet the specified filter criteria.
* Events are returned in a summary form and do not include the detailed
* description, any additional metadata that depends on the event type, or any
* affected resources. To retrieve that information, use the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
* and <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
* operations.</p> <p>If no filter criteria are specified, all events are returned.
* Results are sorted by <code>lastModifiedTime</code>, starting with the most
* recent event.</p> <ul> <li> <p>When you call the
* <code>DescribeEvents</code> operation and specify an entity for the
* <code>entityValues</code> parameter, AWS Health might return public events that
* aren't specific to that resource. For example, if you call
* <code>DescribeEvents</code> and specify an ID for an Amazon Elastic Compute
* Cloud (Amazon EC2) instance, AWS Health might return events that aren't specific
* to that resource or service. To get events that are specific to a service, use
* the <code>services</code> parameter in the <code>filter</code> object. For more
* information, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p>
* </li> <li> <p>This API operation uses pagination. Specify the
* <code>nextToken</code> parameter in the next request to return more results.</p>
* </li> </ul> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeEventsAsync(const Model::DescribeEventsRequest& request, const DescribeEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns information about events across your organization in AWS
* Organizations. You can use the<code>filters</code> parameter to specify the
* events that you want to return. Events are returned in a summary form and don't
* include the affected accounts, detailed description, any additional metadata
* that depends on the event type, or any affected resources. To retrieve that
* information, use the following operations:</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
* </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
* </p> </li> </ul> <p>If you don't specify a <code>filter</code>, the
* <code>DescribeEventsForOrganizations</code> returns all events across your
* organization. Results are sorted by <code>lastModifiedTime</code>, starting with
* the most recent event. </p> <p>For more information about the different types of
* AWS Health events, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p>
* <p>Before you can call this operation, you must first enable AWS Health to work
* with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master AWS account.</p> <p>This API
* operation uses pagination. Specify the <code>nextToken</code> parameter in the
* next request to return more results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">AWS
* API Reference</a></p>
*/
virtual Model::DescribeEventsForOrganizationOutcome DescribeEventsForOrganization(const Model::DescribeEventsForOrganizationRequest& request) const;
/**
* <p>Returns information about events across your organization in AWS
* Organizations. You can use the<code>filters</code> parameter to specify the
* events that you want to return. Events are returned in a summary form and don't
* include the affected accounts, detailed description, any additional metadata
* that depends on the event type, or any affected resources. To retrieve that
* information, use the following operations:</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
* </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
* </p> </li> </ul> <p>If you don't specify a <code>filter</code>, the
* <code>DescribeEventsForOrganizations</code> returns all events across your
* organization. Results are sorted by <code>lastModifiedTime</code>, starting with
* the most recent event. </p> <p>For more information about the different types of
* AWS Health events, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p>
* <p>Before you can call this operation, you must first enable AWS Health to work
* with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master AWS account.</p> <p>This API
* operation uses pagination. Specify the <code>nextToken</code> parameter in the
* next request to return more results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeEventsForOrganizationOutcomeCallable DescribeEventsForOrganizationCallable(const Model::DescribeEventsForOrganizationRequest& request) const;
/**
* <p>Returns information about events across your organization in AWS
* Organizations. You can use the<code>filters</code> parameter to specify the
* events that you want to return. Events are returned in a summary form and don't
* include the affected accounts, detailed description, any additional metadata
* that depends on the event type, or any affected resources. To retrieve that
* information, use the following operations:</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
* </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
* </p> </li> </ul> <p>If you don't specify a <code>filter</code>, the
* <code>DescribeEventsForOrganizations</code> returns all events across your
* organization. Results are sorted by <code>lastModifiedTime</code>, starting with
* the most recent event. </p> <p>For more information about the different types of
* AWS Health events, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p>
* <p>Before you can call this operation, you must first enable AWS Health to work
* with AWS Organizations. To do this, call the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
* operation from your organization's master AWS account.</p> <p>This API
* operation uses pagination. Specify the <code>nextToken</code> parameter in the
* next request to return more results.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeEventsForOrganizationAsync(const Model::DescribeEventsForOrganizationRequest& request, const DescribeEventsForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation provides status information on enabling or disabling AWS
* Health to work with your organization. To call this operation, you must sign in
* as an IAM user, assume an IAM role, or sign in as the root user (not
* recommended) in the organization's master account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">AWS
* API Reference</a></p>
*/
virtual Model::DescribeHealthServiceStatusForOrganizationOutcome DescribeHealthServiceStatusForOrganization() const;
/**
* <p>This operation provides status information on enabling or disabling AWS
* Health to work with your organization. To call this operation, you must sign in
* as an IAM user, assume an IAM role, or sign in as the root user (not
* recommended) in the organization's master account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeHealthServiceStatusForOrganizationOutcomeCallable DescribeHealthServiceStatusForOrganizationCallable() const;
/**
* <p>This operation provides status information on enabling or disabling AWS
* Health to work with your organization. To call this operation, you must sign in
* as an IAM user, assume an IAM role, or sign in as the root user (not
* recommended) in the organization's master account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeHealthServiceStatusForOrganizationAsync(const DescribeHealthServiceStatusForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Disables AWS Health from working with AWS Organizations. To call this
* operation, you must sign in as an AWS Identity and Access Management (IAM) user,
* assume an IAM role, or sign in as the root user (not recommended) in the
* organization's master AWS account. For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
* AWS Health events</a> in the <i>AWS Health User Guide</i>.</p> <p>This operation
* doesn't remove the service-linked role (SLR) from the AWS master account in your
* organization. You must use the IAM console, API, or AWS Command Line Interface
* (AWS CLI) to remove the SLR. For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
* a Service-Linked Role</a> in the <i>IAM User Guide</i>.</p> <p>You can
* also disable the organizational feature by using the Organizations <a
* href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
* API operation. After you call this operation, AWS Health stops aggregating
* events for all other AWS accounts in your organization. If you call the AWS
* Health API operations for organizational view, AWS Health returns an error. AWS
* Health continues to aggregate health events for your AWS account.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">AWS
* API Reference</a></p>
*/
virtual Model::DisableHealthServiceAccessForOrganizationOutcome DisableHealthServiceAccessForOrganization() const;
/**
* <p>Disables AWS Health from working with AWS Organizations. To call this
* operation, you must sign in as an AWS Identity and Access Management (IAM) user,
* assume an IAM role, or sign in as the root user (not recommended) in the
* organization's master AWS account. For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
* AWS Health events</a> in the <i>AWS Health User Guide</i>.</p> <p>This operation
* doesn't remove the service-linked role (SLR) from the AWS master account in your
* organization. You must use the IAM console, API, or AWS Command Line Interface
* (AWS CLI) to remove the SLR. For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
* a Service-Linked Role</a> in the <i>IAM User Guide</i>.</p> <p>You can
* also disable the organizational feature by using the Organizations <a
* href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
* API operation. After you call this operation, AWS Health stops aggregating
* events for all other AWS accounts in your organization. If you call the AWS
* Health API operations for organizational view, AWS Health returns an error. AWS
* Health continues to aggregate health events for your AWS account.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DisableHealthServiceAccessForOrganizationOutcomeCallable DisableHealthServiceAccessForOrganizationCallable() const;
/**
* <p>Disables AWS Health from working with AWS Organizations. To call this
* operation, you must sign in as an AWS Identity and Access Management (IAM) user,
* assume an IAM role, or sign in as the root user (not recommended) in the
* organization's master AWS account. For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
* AWS Health events</a> in the <i>AWS Health User Guide</i>.</p> <p>This operation
* doesn't remove the service-linked role (SLR) from the AWS master account in your
* organization. You must use the IAM console, API, or AWS Command Line Interface
* (AWS CLI) to remove the SLR. For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
* a Service-Linked Role</a> in the <i>IAM User Guide</i>.</p> <p>You can
* also disable the organizational feature by using the Organizations <a
* href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
* API operation. After you call this operation, AWS Health stops aggregating
* events for all other AWS accounts in your organization. If you call the AWS
* Health API operations for organizational view, AWS Health returns an error. AWS
* Health continues to aggregate health events for your AWS account.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DisableHealthServiceAccessForOrganizationAsync(const DisableHealthServiceAccessForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Calling this operation enables AWS Health to work with AWS Organizations.
* This applies a service-linked role (SLR) to the master account in the
* organization. To call this operation, you must sign in as an IAM user, assume an
* IAM role, or sign in as the root user (not recommended) in the organization's
* master account.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
* AWS Health events</a> in the <i>AWS Health User Guide</i>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">AWS
* API Reference</a></p>
*/
virtual Model::EnableHealthServiceAccessForOrganizationOutcome EnableHealthServiceAccessForOrganization() const;
/**
* <p>Calling this operation enables AWS Health to work with AWS Organizations.
* This applies a service-linked role (SLR) to the master account in the
* organization. To call this operation, you must sign in as an IAM user, assume an
* IAM role, or sign in as the root user (not recommended) in the organization's
* master account.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
* AWS Health events</a> in the <i>AWS Health User Guide</i>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::EnableHealthServiceAccessForOrganizationOutcomeCallable EnableHealthServiceAccessForOrganizationCallable() const;
/**
* <p>Calling this operation enables AWS Health to work with AWS Organizations.
* This applies a service-linked role (SLR) to the master account in the
* organization. To call this operation, you must sign in as an IAM user, assume an
* IAM role, or sign in as the root user (not recommended) in the organization's
* master account.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
* AWS Health events</a> in the <i>AWS Health User Guide</i>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void EnableHealthServiceAccessForOrganizationAsync(const EnableHealthServiceAccessForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
void OverrideEndpoint(const Aws::String& endpoint);
private:
void init(const Aws::Client::ClientConfiguration& clientConfiguration);
void DescribeAffectedAccountsForOrganizationAsyncHelper(const Model::DescribeAffectedAccountsForOrganizationRequest& request, const DescribeAffectedAccountsForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeAffectedEntitiesAsyncHelper(const Model::DescribeAffectedEntitiesRequest& request, const DescribeAffectedEntitiesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeAffectedEntitiesForOrganizationAsyncHelper(const Model::DescribeAffectedEntitiesForOrganizationRequest& request, const DescribeAffectedEntitiesForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeEntityAggregatesAsyncHelper(const Model::DescribeEntityAggregatesRequest& request, const DescribeEntityAggregatesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeEventAggregatesAsyncHelper(const Model::DescribeEventAggregatesRequest& request, const DescribeEventAggregatesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeEventDetailsAsyncHelper(const Model::DescribeEventDetailsRequest& request, const DescribeEventDetailsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeEventDetailsForOrganizationAsyncHelper(const Model::DescribeEventDetailsForOrganizationRequest& request, const DescribeEventDetailsForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeEventTypesAsyncHelper(const Model::DescribeEventTypesRequest& request, const DescribeEventTypesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeEventsAsyncHelper(const Model::DescribeEventsRequest& request, const DescribeEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeEventsForOrganizationAsyncHelper(const Model::DescribeEventsForOrganizationRequest& request, const DescribeEventsForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeHealthServiceStatusForOrganizationAsyncHelper(const DescribeHealthServiceStatusForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DisableHealthServiceAccessForOrganizationAsyncHelper(const DisableHealthServiceAccessForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void EnableHealthServiceAccessForOrganizationAsyncHelper(const EnableHealthServiceAccessForOrganizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Aws::String m_uri;
Aws::String m_configScheme;
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
};
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Health
{
namespace HealthEndpoint
{
AWS_HEALTH_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace HealthEndpoint
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_HEALTH_API HealthErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/health/Health_EXPORTS.h>
namespace Aws
{
namespace Health
{
enum class HealthErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
CONCURRENT_MODIFICATION= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INVALID_PAGINATION_TOKEN,
UNSUPPORTED_LOCALE
};
class AWS_HEALTH_API HealthError : public Aws::Client::AWSError<HealthErrors>
{
public:
HealthError() {}
HealthError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<HealthErrors>(rhs) {}
HealthError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<HealthErrors>(rhs) {}
HealthError(const Aws::Client::AWSError<HealthErrors>& rhs) : Aws::Client::AWSError<HealthErrors>(rhs) {}
HealthError(Aws::Client::AWSError<HealthErrors>&& rhs) : Aws::Client::AWSError<HealthErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace HealthErrorMapper
{
AWS_HEALTH_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace Health
{
class AWS_HEALTH_API HealthRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~HealthRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2016-08-04"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_HEALTH_EXPORTS
#define AWS_HEALTH_API __declspec(dllexport)
#else
#define AWS_HEALTH_API __declspec(dllimport)
#endif /* AWS_HEALTH_EXPORTS */
#else
#define AWS_HEALTH_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_HEALTH_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,494 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/health/model/EntityStatusCode.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>Information about an entity that is affected by a Health event.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/AffectedEntity">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API AffectedEntity
{
public:
AffectedEntity();
AffectedEntity(Aws::Utils::Json::JsonView jsonValue);
AffectedEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the entity. Format:
* <code>arn:aws:health:<i>entity-region</i>:<i>aws-account</i>:entity/<i>entity-id</i>
* </code>. Example:
* <code>arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K</code>
* </p>
*/
inline const Aws::String& GetEntityArn() const{ return m_entityArn; }
/**
* <p>The unique identifier for the entity. Format:
* <code>arn:aws:health:<i>entity-region</i>:<i>aws-account</i>:entity/<i>entity-id</i>
* </code>. Example:
* <code>arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K</code>
* </p>
*/
inline bool EntityArnHasBeenSet() const { return m_entityArnHasBeenSet; }
/**
* <p>The unique identifier for the entity. Format:
* <code>arn:aws:health:<i>entity-region</i>:<i>aws-account</i>:entity/<i>entity-id</i>
* </code>. Example:
* <code>arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K</code>
* </p>
*/
inline void SetEntityArn(const Aws::String& value) { m_entityArnHasBeenSet = true; m_entityArn = value; }
/**
* <p>The unique identifier for the entity. Format:
* <code>arn:aws:health:<i>entity-region</i>:<i>aws-account</i>:entity/<i>entity-id</i>
* </code>. Example:
* <code>arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K</code>
* </p>
*/
inline void SetEntityArn(Aws::String&& value) { m_entityArnHasBeenSet = true; m_entityArn = std::move(value); }
/**
* <p>The unique identifier for the entity. Format:
* <code>arn:aws:health:<i>entity-region</i>:<i>aws-account</i>:entity/<i>entity-id</i>
* </code>. Example:
* <code>arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K</code>
* </p>
*/
inline void SetEntityArn(const char* value) { m_entityArnHasBeenSet = true; m_entityArn.assign(value); }
/**
* <p>The unique identifier for the entity. Format:
* <code>arn:aws:health:<i>entity-region</i>:<i>aws-account</i>:entity/<i>entity-id</i>
* </code>. Example:
* <code>arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K</code>
* </p>
*/
inline AffectedEntity& WithEntityArn(const Aws::String& value) { SetEntityArn(value); return *this;}
/**
* <p>The unique identifier for the entity. Format:
* <code>arn:aws:health:<i>entity-region</i>:<i>aws-account</i>:entity/<i>entity-id</i>
* </code>. Example:
* <code>arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K</code>
* </p>
*/
inline AffectedEntity& WithEntityArn(Aws::String&& value) { SetEntityArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the entity. Format:
* <code>arn:aws:health:<i>entity-region</i>:<i>aws-account</i>:entity/<i>entity-id</i>
* </code>. Example:
* <code>arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K</code>
* </p>
*/
inline AffectedEntity& WithEntityArn(const char* value) { SetEntityArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline const Aws::String& GetEventArn() const{ return m_eventArn; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline AffectedEntity& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline AffectedEntity& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline AffectedEntity& WithEventArn(const char* value) { SetEventArn(value); return *this;}
/**
* <p>The ID of the affected entity.</p>
*/
inline const Aws::String& GetEntityValue() const{ return m_entityValue; }
/**
* <p>The ID of the affected entity.</p>
*/
inline bool EntityValueHasBeenSet() const { return m_entityValueHasBeenSet; }
/**
* <p>The ID of the affected entity.</p>
*/
inline void SetEntityValue(const Aws::String& value) { m_entityValueHasBeenSet = true; m_entityValue = value; }
/**
* <p>The ID of the affected entity.</p>
*/
inline void SetEntityValue(Aws::String&& value) { m_entityValueHasBeenSet = true; m_entityValue = std::move(value); }
/**
* <p>The ID of the affected entity.</p>
*/
inline void SetEntityValue(const char* value) { m_entityValueHasBeenSet = true; m_entityValue.assign(value); }
/**
* <p>The ID of the affected entity.</p>
*/
inline AffectedEntity& WithEntityValue(const Aws::String& value) { SetEntityValue(value); return *this;}
/**
* <p>The ID of the affected entity.</p>
*/
inline AffectedEntity& WithEntityValue(Aws::String&& value) { SetEntityValue(std::move(value)); return *this;}
/**
* <p>The ID of the affected entity.</p>
*/
inline AffectedEntity& WithEntityValue(const char* value) { SetEntityValue(value); return *this;}
/**
* <p>The URL of the affected entity.</p>
*/
inline const Aws::String& GetEntityUrl() const{ return m_entityUrl; }
/**
* <p>The URL of the affected entity.</p>
*/
inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
/**
* <p>The URL of the affected entity.</p>
*/
inline void SetEntityUrl(const Aws::String& value) { m_entityUrlHasBeenSet = true; m_entityUrl = value; }
/**
* <p>The URL of the affected entity.</p>
*/
inline void SetEntityUrl(Aws::String&& value) { m_entityUrlHasBeenSet = true; m_entityUrl = std::move(value); }
/**
* <p>The URL of the affected entity.</p>
*/
inline void SetEntityUrl(const char* value) { m_entityUrlHasBeenSet = true; m_entityUrl.assign(value); }
/**
* <p>The URL of the affected entity.</p>
*/
inline AffectedEntity& WithEntityUrl(const Aws::String& value) { SetEntityUrl(value); return *this;}
/**
* <p>The URL of the affected entity.</p>
*/
inline AffectedEntity& WithEntityUrl(Aws::String&& value) { SetEntityUrl(std::move(value)); return *this;}
/**
* <p>The URL of the affected entity.</p>
*/
inline AffectedEntity& WithEntityUrl(const char* value) { SetEntityUrl(value); return *this;}
/**
* <p>The 12-digit AWS account number that contains the affected entity.</p>
*/
inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
/**
* <p>The 12-digit AWS account number that contains the affected entity.</p>
*/
inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
/**
* <p>The 12-digit AWS account number that contains the affected entity.</p>
*/
inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
/**
* <p>The 12-digit AWS account number that contains the affected entity.</p>
*/
inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
/**
* <p>The 12-digit AWS account number that contains the affected entity.</p>
*/
inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
/**
* <p>The 12-digit AWS account number that contains the affected entity.</p>
*/
inline AffectedEntity& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
/**
* <p>The 12-digit AWS account number that contains the affected entity.</p>
*/
inline AffectedEntity& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
/**
* <p>The 12-digit AWS account number that contains the affected entity.</p>
*/
inline AffectedEntity& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
/**
* <p>The most recent time that the entity was updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
/**
* <p>The most recent time that the entity was updated.</p>
*/
inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
/**
* <p>The most recent time that the entity was updated.</p>
*/
inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
/**
* <p>The most recent time that the entity was updated.</p>
*/
inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
/**
* <p>The most recent time that the entity was updated.</p>
*/
inline AffectedEntity& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
/**
* <p>The most recent time that the entity was updated.</p>
*/
inline AffectedEntity& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
/**
* <p>The most recent status of the entity affected by the event. The possible
* values are <code>IMPAIRED</code>, <code>UNIMPAIRED</code>, and
* <code>UNKNOWN</code>.</p>
*/
inline const EntityStatusCode& GetStatusCode() const{ return m_statusCode; }
/**
* <p>The most recent status of the entity affected by the event. The possible
* values are <code>IMPAIRED</code>, <code>UNIMPAIRED</code>, and
* <code>UNKNOWN</code>.</p>
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* <p>The most recent status of the entity affected by the event. The possible
* values are <code>IMPAIRED</code>, <code>UNIMPAIRED</code>, and
* <code>UNKNOWN</code>.</p>
*/
inline void SetStatusCode(const EntityStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* <p>The most recent status of the entity affected by the event. The possible
* values are <code>IMPAIRED</code>, <code>UNIMPAIRED</code>, and
* <code>UNKNOWN</code>.</p>
*/
inline void SetStatusCode(EntityStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
/**
* <p>The most recent status of the entity affected by the event. The possible
* values are <code>IMPAIRED</code>, <code>UNIMPAIRED</code>, and
* <code>UNKNOWN</code>.</p>
*/
inline AffectedEntity& WithStatusCode(const EntityStatusCode& value) { SetStatusCode(value); return *this;}
/**
* <p>The most recent status of the entity affected by the event. The possible
* values are <code>IMPAIRED</code>, <code>UNIMPAIRED</code>, and
* <code>UNKNOWN</code>.</p>
*/
inline AffectedEntity& WithStatusCode(EntityStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline AffectedEntity& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline AffectedEntity& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline AffectedEntity& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline AffectedEntity& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline AffectedEntity& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline AffectedEntity& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline AffectedEntity& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline AffectedEntity& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline AffectedEntity& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_entityArn;
bool m_entityArnHasBeenSet;
Aws::String m_eventArn;
bool m_eventArnHasBeenSet;
Aws::String m_entityValue;
bool m_entityValueHasBeenSet;
Aws::String m_entityUrl;
bool m_entityUrlHasBeenSet;
Aws::String m_awsAccountId;
bool m_awsAccountIdHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedTime;
bool m_lastUpdatedTimeHasBeenSet;
EntityStatusCode m_statusCode;
bool m_statusCodeHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,123 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>A range of dates and times that is used by the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventFilter.html">EventFilter</a>
* and <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EntityFilter.html">EntityFilter</a>
* objects. If <code>from</code> is set and <code>to</code> is set: match items
* where the timestamp (<code>startTime</code>, <code>endTime</code>, or
* <code>lastUpdatedTime</code>) is between <code>from</code> and <code>to</code>
* inclusive. If <code>from</code> is set and <code>to</code> is not set: match
* items where the timestamp value is equal to or after <code>from</code>. If
* <code>from</code> is not set and <code>to</code> is set: match items where the
* timestamp value is equal to or before <code>to</code>.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DateTimeRange">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API DateTimeRange
{
public:
DateTimeRange();
DateTimeRange(Aws::Utils::Json::JsonView jsonValue);
DateTimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The starting date and time of a time range.</p>
*/
inline const Aws::Utils::DateTime& GetFrom() const{ return m_from; }
/**
* <p>The starting date and time of a time range.</p>
*/
inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
/**
* <p>The starting date and time of a time range.</p>
*/
inline void SetFrom(const Aws::Utils::DateTime& value) { m_fromHasBeenSet = true; m_from = value; }
/**
* <p>The starting date and time of a time range.</p>
*/
inline void SetFrom(Aws::Utils::DateTime&& value) { m_fromHasBeenSet = true; m_from = std::move(value); }
/**
* <p>The starting date and time of a time range.</p>
*/
inline DateTimeRange& WithFrom(const Aws::Utils::DateTime& value) { SetFrom(value); return *this;}
/**
* <p>The starting date and time of a time range.</p>
*/
inline DateTimeRange& WithFrom(Aws::Utils::DateTime&& value) { SetFrom(std::move(value)); return *this;}
/**
* <p>The ending date and time of a time range.</p>
*/
inline const Aws::Utils::DateTime& GetTo() const{ return m_to; }
/**
* <p>The ending date and time of a time range.</p>
*/
inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
/**
* <p>The ending date and time of a time range.</p>
*/
inline void SetTo(const Aws::Utils::DateTime& value) { m_toHasBeenSet = true; m_to = value; }
/**
* <p>The ending date and time of a time range.</p>
*/
inline void SetTo(Aws::Utils::DateTime&& value) { m_toHasBeenSet = true; m_to = std::move(value); }
/**
* <p>The ending date and time of a time range.</p>
*/
inline DateTimeRange& WithTo(const Aws::Utils::DateTime& value) { SetTo(value); return *this;}
/**
* <p>The ending date and time of a time range.</p>
*/
inline DateTimeRange& WithTo(Aws::Utils::DateTime&& value) { SetTo(std::move(value)); return *this;}
private:
Aws::Utils::DateTime m_from;
bool m_fromHasBeenSet;
Aws::Utils::DateTime m_to;
bool m_toHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,221 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeAffectedAccountsForOrganizationRequest : public HealthRequest
{
public:
DescribeAffectedAccountsForOrganizationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeAffectedAccountsForOrganization"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline const Aws::String& GetEventArn() const{ return m_eventArn; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline DescribeAffectedAccountsForOrganizationRequest& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline DescribeAffectedAccountsForOrganizationRequest& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline DescribeAffectedAccountsForOrganizationRequest& WithEventArn(const char* value) { SetEventArn(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedAccountsForOrganizationRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedAccountsForOrganizationRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedAccountsForOrganizationRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline DescribeAffectedAccountsForOrganizationRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_eventArn;
bool m_eventArnHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,228 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/health/model/EventScopeCode.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeAffectedAccountsForOrganizationResult
{
public:
DescribeAffectedAccountsForOrganizationResult();
DescribeAffectedAccountsForOrganizationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeAffectedAccountsForOrganizationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A JSON set of elements of the affected accounts.</p>
*/
inline const Aws::Vector<Aws::String>& GetAffectedAccounts() const{ return m_affectedAccounts; }
/**
* <p>A JSON set of elements of the affected accounts.</p>
*/
inline void SetAffectedAccounts(const Aws::Vector<Aws::String>& value) { m_affectedAccounts = value; }
/**
* <p>A JSON set of elements of the affected accounts.</p>
*/
inline void SetAffectedAccounts(Aws::Vector<Aws::String>&& value) { m_affectedAccounts = std::move(value); }
/**
* <p>A JSON set of elements of the affected accounts.</p>
*/
inline DescribeAffectedAccountsForOrganizationResult& WithAffectedAccounts(const Aws::Vector<Aws::String>& value) { SetAffectedAccounts(value); return *this;}
/**
* <p>A JSON set of elements of the affected accounts.</p>
*/
inline DescribeAffectedAccountsForOrganizationResult& WithAffectedAccounts(Aws::Vector<Aws::String>&& value) { SetAffectedAccounts(std::move(value)); return *this;}
/**
* <p>A JSON set of elements of the affected accounts.</p>
*/
inline DescribeAffectedAccountsForOrganizationResult& AddAffectedAccounts(const Aws::String& value) { m_affectedAccounts.push_back(value); return *this; }
/**
* <p>A JSON set of elements of the affected accounts.</p>
*/
inline DescribeAffectedAccountsForOrganizationResult& AddAffectedAccounts(Aws::String&& value) { m_affectedAccounts.push_back(std::move(value)); return *this; }
/**
* <p>A JSON set of elements of the affected accounts.</p>
*/
inline DescribeAffectedAccountsForOrganizationResult& AddAffectedAccounts(const char* value) { m_affectedAccounts.push_back(value); return *this; }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline const EventScopeCode& GetEventScopeCode() const{ return m_eventScopeCode; }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline void SetEventScopeCode(const EventScopeCode& value) { m_eventScopeCode = value; }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline void SetEventScopeCode(EventScopeCode&& value) { m_eventScopeCode = std::move(value); }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline DescribeAffectedAccountsForOrganizationResult& WithEventScopeCode(const EventScopeCode& value) { SetEventScopeCode(value); return *this;}
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline DescribeAffectedAccountsForOrganizationResult& WithEventScopeCode(EventScopeCode&& value) { SetEventScopeCode(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedAccountsForOrganizationResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedAccountsForOrganizationResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedAccountsForOrganizationResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_affectedAccounts;
EventScopeCode m_eventScopeCode;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,251 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/EventAccountFilter.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeAffectedEntitiesForOrganizationRequest : public HealthRequest
{
public:
DescribeAffectedEntitiesForOrganizationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeAffectedEntitiesForOrganization"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline const Aws::Vector<EventAccountFilter>& GetOrganizationEntityFilters() const{ return m_organizationEntityFilters; }
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline bool OrganizationEntityFiltersHasBeenSet() const { return m_organizationEntityFiltersHasBeenSet; }
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline void SetOrganizationEntityFilters(const Aws::Vector<EventAccountFilter>& value) { m_organizationEntityFiltersHasBeenSet = true; m_organizationEntityFilters = value; }
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline void SetOrganizationEntityFilters(Aws::Vector<EventAccountFilter>&& value) { m_organizationEntityFiltersHasBeenSet = true; m_organizationEntityFilters = std::move(value); }
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& WithOrganizationEntityFilters(const Aws::Vector<EventAccountFilter>& value) { SetOrganizationEntityFilters(value); return *this;}
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& WithOrganizationEntityFilters(Aws::Vector<EventAccountFilter>&& value) { SetOrganizationEntityFilters(std::move(value)); return *this;}
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& AddOrganizationEntityFilters(const EventAccountFilter& value) { m_organizationEntityFiltersHasBeenSet = true; m_organizationEntityFilters.push_back(value); return *this; }
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& AddOrganizationEntityFilters(EventAccountFilter&& value) { m_organizationEntityFiltersHasBeenSet = true; m_organizationEntityFilters.push_back(std::move(value)); return *this; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline const Aws::String& GetLocale() const{ return m_locale; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline DescribeAffectedEntitiesForOrganizationRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::Vector<EventAccountFilter> m_organizationEntityFilters;
bool m_organizationEntityFiltersHasBeenSet;
Aws::String m_locale;
bool m_localeHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,212 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/AffectedEntity.h>
#include <aws/health/model/OrganizationAffectedEntitiesErrorItem.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeAffectedEntitiesForOrganizationResult
{
public:
DescribeAffectedEntitiesForOrganizationResult();
DescribeAffectedEntitiesForOrganizationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeAffectedEntitiesForOrganizationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and its
* <code>entityArn</code>, <code>entityValue</code> and its <code>entityArn</code>,
* <code>lastUpdatedTime</code>, and <code>statusCode</code>.</p>
*/
inline const Aws::Vector<AffectedEntity>& GetEntities() const{ return m_entities; }
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and its
* <code>entityArn</code>, <code>entityValue</code> and its <code>entityArn</code>,
* <code>lastUpdatedTime</code>, and <code>statusCode</code>.</p>
*/
inline void SetEntities(const Aws::Vector<AffectedEntity>& value) { m_entities = value; }
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and its
* <code>entityArn</code>, <code>entityValue</code> and its <code>entityArn</code>,
* <code>lastUpdatedTime</code>, and <code>statusCode</code>.</p>
*/
inline void SetEntities(Aws::Vector<AffectedEntity>&& value) { m_entities = std::move(value); }
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and its
* <code>entityArn</code>, <code>entityValue</code> and its <code>entityArn</code>,
* <code>lastUpdatedTime</code>, and <code>statusCode</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& WithEntities(const Aws::Vector<AffectedEntity>& value) { SetEntities(value); return *this;}
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and its
* <code>entityArn</code>, <code>entityValue</code> and its <code>entityArn</code>,
* <code>lastUpdatedTime</code>, and <code>statusCode</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& WithEntities(Aws::Vector<AffectedEntity>&& value) { SetEntities(std::move(value)); return *this;}
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and its
* <code>entityArn</code>, <code>entityValue</code> and its <code>entityArn</code>,
* <code>lastUpdatedTime</code>, and <code>statusCode</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& AddEntities(const AffectedEntity& value) { m_entities.push_back(value); return *this; }
/**
* <p>A JSON set of elements including the <code>awsAccountId</code> and its
* <code>entityArn</code>, <code>entityValue</code> and its <code>entityArn</code>,
* <code>lastUpdatedTime</code>, and <code>statusCode</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& AddEntities(AffectedEntity&& value) { m_entities.push_back(std::move(value)); return *this; }
/**
* <p>A JSON set of elements of the failed response, including the
* <code>awsAccountId</code>, <code>errorMessage</code>, <code>errorName</code>,
* and <code>eventArn</code>.</p>
*/
inline const Aws::Vector<OrganizationAffectedEntitiesErrorItem>& GetFailedSet() const{ return m_failedSet; }
/**
* <p>A JSON set of elements of the failed response, including the
* <code>awsAccountId</code>, <code>errorMessage</code>, <code>errorName</code>,
* and <code>eventArn</code>.</p>
*/
inline void SetFailedSet(const Aws::Vector<OrganizationAffectedEntitiesErrorItem>& value) { m_failedSet = value; }
/**
* <p>A JSON set of elements of the failed response, including the
* <code>awsAccountId</code>, <code>errorMessage</code>, <code>errorName</code>,
* and <code>eventArn</code>.</p>
*/
inline void SetFailedSet(Aws::Vector<OrganizationAffectedEntitiesErrorItem>&& value) { m_failedSet = std::move(value); }
/**
* <p>A JSON set of elements of the failed response, including the
* <code>awsAccountId</code>, <code>errorMessage</code>, <code>errorName</code>,
* and <code>eventArn</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& WithFailedSet(const Aws::Vector<OrganizationAffectedEntitiesErrorItem>& value) { SetFailedSet(value); return *this;}
/**
* <p>A JSON set of elements of the failed response, including the
* <code>awsAccountId</code>, <code>errorMessage</code>, <code>errorName</code>,
* and <code>eventArn</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& WithFailedSet(Aws::Vector<OrganizationAffectedEntitiesErrorItem>&& value) { SetFailedSet(std::move(value)); return *this;}
/**
* <p>A JSON set of elements of the failed response, including the
* <code>awsAccountId</code>, <code>errorMessage</code>, <code>errorName</code>,
* and <code>eventArn</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& AddFailedSet(const OrganizationAffectedEntitiesErrorItem& value) { m_failedSet.push_back(value); return *this; }
/**
* <p>A JSON set of elements of the failed response, including the
* <code>awsAccountId</code>, <code>errorMessage</code>, <code>errorName</code>,
* and <code>eventArn</code>.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& AddFailedSet(OrganizationAffectedEntitiesErrorItem&& value) { m_failedSet.push_back(std::move(value)); return *this; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesForOrganizationResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<AffectedEntity> m_entities;
Aws::Vector<OrganizationAffectedEntitiesErrorItem> m_failedSet;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,238 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/health/model/EntityFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeAffectedEntitiesRequest : public HealthRequest
{
public:
DescribeAffectedEntitiesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeAffectedEntities"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Values to narrow the results returned. At least one event ARN is
* required.</p>
*/
inline const EntityFilter& GetFilter() const{ return m_filter; }
/**
* <p>Values to narrow the results returned. At least one event ARN is
* required.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Values to narrow the results returned. At least one event ARN is
* required.</p>
*/
inline void SetFilter(const EntityFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Values to narrow the results returned. At least one event ARN is
* required.</p>
*/
inline void SetFilter(EntityFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Values to narrow the results returned. At least one event ARN is
* required.</p>
*/
inline DescribeAffectedEntitiesRequest& WithFilter(const EntityFilter& value) { SetFilter(value); return *this;}
/**
* <p>Values to narrow the results returned. At least one event ARN is
* required.</p>
*/
inline DescribeAffectedEntitiesRequest& WithFilter(EntityFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline const Aws::String& GetLocale() const{ return m_locale; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeAffectedEntitiesRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeAffectedEntitiesRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeAffectedEntitiesRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline DescribeAffectedEntitiesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
EntityFilter m_filter;
bool m_filterHasBeenSet;
Aws::String m_locale;
bool m_localeHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/AffectedEntity.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeAffectedEntitiesResult
{
public:
DescribeAffectedEntitiesResult();
DescribeAffectedEntitiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeAffectedEntitiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The entities that match the filter criteria.</p>
*/
inline const Aws::Vector<AffectedEntity>& GetEntities() const{ return m_entities; }
/**
* <p>The entities that match the filter criteria.</p>
*/
inline void SetEntities(const Aws::Vector<AffectedEntity>& value) { m_entities = value; }
/**
* <p>The entities that match the filter criteria.</p>
*/
inline void SetEntities(Aws::Vector<AffectedEntity>&& value) { m_entities = std::move(value); }
/**
* <p>The entities that match the filter criteria.</p>
*/
inline DescribeAffectedEntitiesResult& WithEntities(const Aws::Vector<AffectedEntity>& value) { SetEntities(value); return *this;}
/**
* <p>The entities that match the filter criteria.</p>
*/
inline DescribeAffectedEntitiesResult& WithEntities(Aws::Vector<AffectedEntity>&& value) { SetEntities(std::move(value)); return *this;}
/**
* <p>The entities that match the filter criteria.</p>
*/
inline DescribeAffectedEntitiesResult& AddEntities(const AffectedEntity& value) { m_entities.push_back(value); return *this; }
/**
* <p>The entities that match the filter criteria.</p>
*/
inline DescribeAffectedEntitiesResult& AddEntities(AffectedEntity&& value) { m_entities.push_back(std::move(value)); return *this; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeAffectedEntitiesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<AffectedEntity> m_entities;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,118 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeEntityAggregatesRequest : public HealthRequest
{
public:
DescribeEntityAggregatesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeEntityAggregates"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline const Aws::Vector<Aws::String>& GetEventArns() const{ return m_eventArns; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline bool EventArnsHasBeenSet() const { return m_eventArnsHasBeenSet; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline void SetEventArns(const Aws::Vector<Aws::String>& value) { m_eventArnsHasBeenSet = true; m_eventArns = value; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline void SetEventArns(Aws::Vector<Aws::String>&& value) { m_eventArnsHasBeenSet = true; m_eventArns = std::move(value); }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEntityAggregatesRequest& WithEventArns(const Aws::Vector<Aws::String>& value) { SetEventArns(value); return *this;}
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEntityAggregatesRequest& WithEventArns(Aws::Vector<Aws::String>&& value) { SetEventArns(std::move(value)); return *this;}
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEntityAggregatesRequest& AddEventArns(const Aws::String& value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(value); return *this; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEntityAggregatesRequest& AddEventArns(Aws::String&& value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(std::move(value)); return *this; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEntityAggregatesRequest& AddEventArns(const char* value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_eventArns;
bool m_eventArnsHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/health/model/EntityAggregate.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeEntityAggregatesResult
{
public:
DescribeEntityAggregatesResult();
DescribeEntityAggregatesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEntityAggregatesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The number of entities that are affected by each of the specified events.</p>
*/
inline const Aws::Vector<EntityAggregate>& GetEntityAggregates() const{ return m_entityAggregates; }
/**
* <p>The number of entities that are affected by each of the specified events.</p>
*/
inline void SetEntityAggregates(const Aws::Vector<EntityAggregate>& value) { m_entityAggregates = value; }
/**
* <p>The number of entities that are affected by each of the specified events.</p>
*/
inline void SetEntityAggregates(Aws::Vector<EntityAggregate>&& value) { m_entityAggregates = std::move(value); }
/**
* <p>The number of entities that are affected by each of the specified events.</p>
*/
inline DescribeEntityAggregatesResult& WithEntityAggregates(const Aws::Vector<EntityAggregate>& value) { SetEntityAggregates(value); return *this;}
/**
* <p>The number of entities that are affected by each of the specified events.</p>
*/
inline DescribeEntityAggregatesResult& WithEntityAggregates(Aws::Vector<EntityAggregate>&& value) { SetEntityAggregates(std::move(value)); return *this;}
/**
* <p>The number of entities that are affected by each of the specified events.</p>
*/
inline DescribeEntityAggregatesResult& AddEntityAggregates(const EntityAggregate& value) { m_entityAggregates.push_back(value); return *this; }
/**
* <p>The number of entities that are affected by each of the specified events.</p>
*/
inline DescribeEntityAggregatesResult& AddEntityAggregates(EntityAggregate&& value) { m_entityAggregates.push_back(std::move(value)); return *this; }
private:
Aws::Vector<EntityAggregate> m_entityAggregates;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,215 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/health/model/EventFilter.h>
#include <aws/health/model/EventAggregateField.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeEventAggregatesRequest : public HealthRequest
{
public:
DescribeEventAggregatesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeEventAggregates"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Values to narrow the results returned.</p>
*/
inline const EventFilter& GetFilter() const{ return m_filter; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline void SetFilter(const EventFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline void SetFilter(EventFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Values to narrow the results returned.</p>
*/
inline DescribeEventAggregatesRequest& WithFilter(const EventFilter& value) { SetFilter(value); return *this;}
/**
* <p>Values to narrow the results returned.</p>
*/
inline DescribeEventAggregatesRequest& WithFilter(EventFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>The only currently supported value is <code>eventTypeCategory</code>.</p>
*/
inline const EventAggregateField& GetAggregateField() const{ return m_aggregateField; }
/**
* <p>The only currently supported value is <code>eventTypeCategory</code>.</p>
*/
inline bool AggregateFieldHasBeenSet() const { return m_aggregateFieldHasBeenSet; }
/**
* <p>The only currently supported value is <code>eventTypeCategory</code>.</p>
*/
inline void SetAggregateField(const EventAggregateField& value) { m_aggregateFieldHasBeenSet = true; m_aggregateField = value; }
/**
* <p>The only currently supported value is <code>eventTypeCategory</code>.</p>
*/
inline void SetAggregateField(EventAggregateField&& value) { m_aggregateFieldHasBeenSet = true; m_aggregateField = std::move(value); }
/**
* <p>The only currently supported value is <code>eventTypeCategory</code>.</p>
*/
inline DescribeEventAggregatesRequest& WithAggregateField(const EventAggregateField& value) { SetAggregateField(value); return *this;}
/**
* <p>The only currently supported value is <code>eventTypeCategory</code>.</p>
*/
inline DescribeEventAggregatesRequest& WithAggregateField(EventAggregateField&& value) { SetAggregateField(std::move(value)); return *this;}
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline DescribeEventAggregatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventAggregatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventAggregatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventAggregatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
EventFilter m_filter;
bool m_filterHasBeenSet;
EventAggregateField m_aggregateField;
bool m_aggregateFieldHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,152 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/EventAggregate.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeEventAggregatesResult
{
public:
DescribeEventAggregatesResult();
DescribeEventAggregatesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEventAggregatesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The number of events in each category that meet the optional filter
* criteria.</p>
*/
inline const Aws::Vector<EventAggregate>& GetEventAggregates() const{ return m_eventAggregates; }
/**
* <p>The number of events in each category that meet the optional filter
* criteria.</p>
*/
inline void SetEventAggregates(const Aws::Vector<EventAggregate>& value) { m_eventAggregates = value; }
/**
* <p>The number of events in each category that meet the optional filter
* criteria.</p>
*/
inline void SetEventAggregates(Aws::Vector<EventAggregate>&& value) { m_eventAggregates = std::move(value); }
/**
* <p>The number of events in each category that meet the optional filter
* criteria.</p>
*/
inline DescribeEventAggregatesResult& WithEventAggregates(const Aws::Vector<EventAggregate>& value) { SetEventAggregates(value); return *this;}
/**
* <p>The number of events in each category that meet the optional filter
* criteria.</p>
*/
inline DescribeEventAggregatesResult& WithEventAggregates(Aws::Vector<EventAggregate>&& value) { SetEventAggregates(std::move(value)); return *this;}
/**
* <p>The number of events in each category that meet the optional filter
* criteria.</p>
*/
inline DescribeEventAggregatesResult& AddEventAggregates(const EventAggregate& value) { m_eventAggregates.push_back(value); return *this; }
/**
* <p>The number of events in each category that meet the optional filter
* criteria.</p>
*/
inline DescribeEventAggregatesResult& AddEventAggregates(EventAggregate&& value) { m_eventAggregates.push_back(std::move(value)); return *this; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventAggregatesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventAggregatesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventAggregatesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<EventAggregate> m_eventAggregates;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,147 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/EventAccountFilter.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeEventDetailsForOrganizationRequest : public HealthRequest
{
public:
DescribeEventDetailsForOrganizationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeEventDetailsForOrganization"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A set of JSON elements that includes the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline const Aws::Vector<EventAccountFilter>& GetOrganizationEventDetailFilters() const{ return m_organizationEventDetailFilters; }
/**
* <p>A set of JSON elements that includes the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline bool OrganizationEventDetailFiltersHasBeenSet() const { return m_organizationEventDetailFiltersHasBeenSet; }
/**
* <p>A set of JSON elements that includes the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline void SetOrganizationEventDetailFilters(const Aws::Vector<EventAccountFilter>& value) { m_organizationEventDetailFiltersHasBeenSet = true; m_organizationEventDetailFilters = value; }
/**
* <p>A set of JSON elements that includes the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline void SetOrganizationEventDetailFilters(Aws::Vector<EventAccountFilter>&& value) { m_organizationEventDetailFiltersHasBeenSet = true; m_organizationEventDetailFilters = std::move(value); }
/**
* <p>A set of JSON elements that includes the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline DescribeEventDetailsForOrganizationRequest& WithOrganizationEventDetailFilters(const Aws::Vector<EventAccountFilter>& value) { SetOrganizationEventDetailFilters(value); return *this;}
/**
* <p>A set of JSON elements that includes the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline DescribeEventDetailsForOrganizationRequest& WithOrganizationEventDetailFilters(Aws::Vector<EventAccountFilter>&& value) { SetOrganizationEventDetailFilters(std::move(value)); return *this;}
/**
* <p>A set of JSON elements that includes the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline DescribeEventDetailsForOrganizationRequest& AddOrganizationEventDetailFilters(const EventAccountFilter& value) { m_organizationEventDetailFiltersHasBeenSet = true; m_organizationEventDetailFilters.push_back(value); return *this; }
/**
* <p>A set of JSON elements that includes the <code>awsAccountId</code> and the
* <code>eventArn</code>.</p>
*/
inline DescribeEventDetailsForOrganizationRequest& AddOrganizationEventDetailFilters(EventAccountFilter&& value) { m_organizationEventDetailFiltersHasBeenSet = true; m_organizationEventDetailFilters.push_back(std::move(value)); return *this; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline const Aws::String& GetLocale() const{ return m_locale; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventDetailsForOrganizationRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventDetailsForOrganizationRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventDetailsForOrganizationRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
private:
Aws::Vector<EventAccountFilter> m_organizationEventDetailFilters;
bool m_organizationEventDetailFiltersHasBeenSet;
Aws::String m_locale;
bool m_localeHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/health/model/OrganizationEventDetails.h>
#include <aws/health/model/OrganizationEventDetailsErrorItem.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeEventDetailsForOrganizationResult
{
public:
DescribeEventDetailsForOrganizationResult();
DescribeEventDetailsForOrganizationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEventDetailsForOrganizationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline const Aws::Vector<OrganizationEventDetails>& GetSuccessfulSet() const{ return m_successfulSet; }
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline void SetSuccessfulSet(const Aws::Vector<OrganizationEventDetails>& value) { m_successfulSet = value; }
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline void SetSuccessfulSet(Aws::Vector<OrganizationEventDetails>&& value) { m_successfulSet = std::move(value); }
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline DescribeEventDetailsForOrganizationResult& WithSuccessfulSet(const Aws::Vector<OrganizationEventDetails>& value) { SetSuccessfulSet(value); return *this;}
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline DescribeEventDetailsForOrganizationResult& WithSuccessfulSet(Aws::Vector<OrganizationEventDetails>&& value) { SetSuccessfulSet(std::move(value)); return *this;}
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline DescribeEventDetailsForOrganizationResult& AddSuccessfulSet(const OrganizationEventDetails& value) { m_successfulSet.push_back(value); return *this; }
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline DescribeEventDetailsForOrganizationResult& AddSuccessfulSet(OrganizationEventDetails&& value) { m_successfulSet.push_back(std::move(value)); return *this; }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline const Aws::Vector<OrganizationEventDetailsErrorItem>& GetFailedSet() const{ return m_failedSet; }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline void SetFailedSet(const Aws::Vector<OrganizationEventDetailsErrorItem>& value) { m_failedSet = value; }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline void SetFailedSet(Aws::Vector<OrganizationEventDetailsErrorItem>&& value) { m_failedSet = std::move(value); }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline DescribeEventDetailsForOrganizationResult& WithFailedSet(const Aws::Vector<OrganizationEventDetailsErrorItem>& value) { SetFailedSet(value); return *this;}
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline DescribeEventDetailsForOrganizationResult& WithFailedSet(Aws::Vector<OrganizationEventDetailsErrorItem>&& value) { SetFailedSet(std::move(value)); return *this;}
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline DescribeEventDetailsForOrganizationResult& AddFailedSet(const OrganizationEventDetailsErrorItem& value) { m_failedSet.push_back(value); return *this; }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline DescribeEventDetailsForOrganizationResult& AddFailedSet(OrganizationEventDetailsErrorItem&& value) { m_failedSet.push_back(std::move(value)); return *this; }
private:
Aws::Vector<OrganizationEventDetails> m_successfulSet;
Aws::Vector<OrganizationEventDetailsErrorItem> m_failedSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,170 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeEventDetailsRequest : public HealthRequest
{
public:
DescribeEventDetailsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeEventDetails"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline const Aws::Vector<Aws::String>& GetEventArns() const{ return m_eventArns; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline bool EventArnsHasBeenSet() const { return m_eventArnsHasBeenSet; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline void SetEventArns(const Aws::Vector<Aws::String>& value) { m_eventArnsHasBeenSet = true; m_eventArns = value; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline void SetEventArns(Aws::Vector<Aws::String>&& value) { m_eventArnsHasBeenSet = true; m_eventArns = std::move(value); }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEventDetailsRequest& WithEventArns(const Aws::Vector<Aws::String>& value) { SetEventArns(value); return *this;}
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEventDetailsRequest& WithEventArns(Aws::Vector<Aws::String>&& value) { SetEventArns(std::move(value)); return *this;}
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEventDetailsRequest& AddEventArns(const Aws::String& value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(value); return *this; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEventDetailsRequest& AddEventArns(Aws::String&& value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(std::move(value)); return *this; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline DescribeEventDetailsRequest& AddEventArns(const char* value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(value); return *this; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline const Aws::String& GetLocale() const{ return m_locale; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventDetailsRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventDetailsRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventDetailsRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
private:
Aws::Vector<Aws::String> m_eventArns;
bool m_eventArnsHasBeenSet;
Aws::String m_locale;
bool m_localeHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/health/model/EventDetails.h>
#include <aws/health/model/EventDetailsErrorItem.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeEventDetailsResult
{
public:
DescribeEventDetailsResult();
DescribeEventDetailsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEventDetailsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline const Aws::Vector<EventDetails>& GetSuccessfulSet() const{ return m_successfulSet; }
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline void SetSuccessfulSet(const Aws::Vector<EventDetails>& value) { m_successfulSet = value; }
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline void SetSuccessfulSet(Aws::Vector<EventDetails>&& value) { m_successfulSet = std::move(value); }
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline DescribeEventDetailsResult& WithSuccessfulSet(const Aws::Vector<EventDetails>& value) { SetSuccessfulSet(value); return *this;}
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline DescribeEventDetailsResult& WithSuccessfulSet(Aws::Vector<EventDetails>&& value) { SetSuccessfulSet(std::move(value)); return *this;}
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline DescribeEventDetailsResult& AddSuccessfulSet(const EventDetails& value) { m_successfulSet.push_back(value); return *this; }
/**
* <p>Information about the events that could be retrieved.</p>
*/
inline DescribeEventDetailsResult& AddSuccessfulSet(EventDetails&& value) { m_successfulSet.push_back(std::move(value)); return *this; }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline const Aws::Vector<EventDetailsErrorItem>& GetFailedSet() const{ return m_failedSet; }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline void SetFailedSet(const Aws::Vector<EventDetailsErrorItem>& value) { m_failedSet = value; }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline void SetFailedSet(Aws::Vector<EventDetailsErrorItem>&& value) { m_failedSet = std::move(value); }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline DescribeEventDetailsResult& WithFailedSet(const Aws::Vector<EventDetailsErrorItem>& value) { SetFailedSet(value); return *this;}
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline DescribeEventDetailsResult& WithFailedSet(Aws::Vector<EventDetailsErrorItem>&& value) { SetFailedSet(std::move(value)); return *this;}
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline DescribeEventDetailsResult& AddFailedSet(const EventDetailsErrorItem& value) { m_failedSet.push_back(value); return *this; }
/**
* <p>Error messages for any events that could not be retrieved.</p>
*/
inline DescribeEventDetailsResult& AddFailedSet(EventDetailsErrorItem&& value) { m_failedSet.push_back(std::move(value)); return *this; }
private:
Aws::Vector<EventDetails> m_successfulSet;
Aws::Vector<EventDetailsErrorItem> m_failedSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,232 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/health/model/EventTypeFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeEventTypesRequest : public HealthRequest
{
public:
DescribeEventTypesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeEventTypes"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Values to narrow the results returned.</p>
*/
inline const EventTypeFilter& GetFilter() const{ return m_filter; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline void SetFilter(const EventTypeFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline void SetFilter(EventTypeFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Values to narrow the results returned.</p>
*/
inline DescribeEventTypesRequest& WithFilter(const EventTypeFilter& value) { SetFilter(value); return *this;}
/**
* <p>Values to narrow the results returned.</p>
*/
inline DescribeEventTypesRequest& WithFilter(EventTypeFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline const Aws::String& GetLocale() const{ return m_locale; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventTypesRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventTypesRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventTypesRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventTypesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventTypesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventTypesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline DescribeEventTypesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
EventTypeFilter m_filter;
bool m_filterHasBeenSet;
Aws::String m_locale;
bool m_localeHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,189 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeEventTypesResult
{
public:
DescribeEventTypesResult();
DescribeEventTypesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEventTypesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of event types that match the filter criteria. Event types have a
* category (<code>issue</code>, <code>accountNotification</code>, or
* <code>scheduledChange</code>), a service (for example, <code>EC2</code>,
* <code>RDS</code>, <code>DATAPIPELINE</code>, <code>BILLING</code>), and a code
* (in the format <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>).</p>
*/
inline const Aws::Vector<Aws::String>& GetEventTypes() const{ return m_eventTypes; }
/**
* <p>A list of event types that match the filter criteria. Event types have a
* category (<code>issue</code>, <code>accountNotification</code>, or
* <code>scheduledChange</code>), a service (for example, <code>EC2</code>,
* <code>RDS</code>, <code>DATAPIPELINE</code>, <code>BILLING</code>), and a code
* (in the format <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>).</p>
*/
inline void SetEventTypes(const Aws::Vector<Aws::String>& value) { m_eventTypes = value; }
/**
* <p>A list of event types that match the filter criteria. Event types have a
* category (<code>issue</code>, <code>accountNotification</code>, or
* <code>scheduledChange</code>), a service (for example, <code>EC2</code>,
* <code>RDS</code>, <code>DATAPIPELINE</code>, <code>BILLING</code>), and a code
* (in the format <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>).</p>
*/
inline void SetEventTypes(Aws::Vector<Aws::String>&& value) { m_eventTypes = std::move(value); }
/**
* <p>A list of event types that match the filter criteria. Event types have a
* category (<code>issue</code>, <code>accountNotification</code>, or
* <code>scheduledChange</code>), a service (for example, <code>EC2</code>,
* <code>RDS</code>, <code>DATAPIPELINE</code>, <code>BILLING</code>), and a code
* (in the format <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>).</p>
*/
inline DescribeEventTypesResult& WithEventTypes(const Aws::Vector<Aws::String>& value) { SetEventTypes(value); return *this;}
/**
* <p>A list of event types that match the filter criteria. Event types have a
* category (<code>issue</code>, <code>accountNotification</code>, or
* <code>scheduledChange</code>), a service (for example, <code>EC2</code>,
* <code>RDS</code>, <code>DATAPIPELINE</code>, <code>BILLING</code>), and a code
* (in the format <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>).</p>
*/
inline DescribeEventTypesResult& WithEventTypes(Aws::Vector<Aws::String>&& value) { SetEventTypes(std::move(value)); return *this;}
/**
* <p>A list of event types that match the filter criteria. Event types have a
* category (<code>issue</code>, <code>accountNotification</code>, or
* <code>scheduledChange</code>), a service (for example, <code>EC2</code>,
* <code>RDS</code>, <code>DATAPIPELINE</code>, <code>BILLING</code>), and a code
* (in the format <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>).</p>
*/
inline DescribeEventTypesResult& AddEventTypes(const Aws::String& value) { m_eventTypes.push_back(value); return *this; }
/**
* <p>A list of event types that match the filter criteria. Event types have a
* category (<code>issue</code>, <code>accountNotification</code>, or
* <code>scheduledChange</code>), a service (for example, <code>EC2</code>,
* <code>RDS</code>, <code>DATAPIPELINE</code>, <code>BILLING</code>), and a code
* (in the format <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>).</p>
*/
inline DescribeEventTypesResult& AddEventTypes(Aws::String&& value) { m_eventTypes.push_back(std::move(value)); return *this; }
/**
* <p>A list of event types that match the filter criteria. Event types have a
* category (<code>issue</code>, <code>accountNotification</code>, or
* <code>scheduledChange</code>), a service (for example, <code>EC2</code>,
* <code>RDS</code>, <code>DATAPIPELINE</code>, <code>BILLING</code>), and a code
* (in the format <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>).</p>
*/
inline DescribeEventTypesResult& AddEventTypes(const char* value) { m_eventTypes.push_back(value); return *this; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventTypesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventTypesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventTypesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_eventTypes;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,232 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/health/model/OrganizationEventFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeEventsForOrganizationRequest : public HealthRequest
{
public:
DescribeEventsForOrganizationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeEventsForOrganization"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Values to narrow the results returned.</p>
*/
inline const OrganizationEventFilter& GetFilter() const{ return m_filter; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline void SetFilter(const OrganizationEventFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline void SetFilter(OrganizationEventFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Values to narrow the results returned.</p>
*/
inline DescribeEventsForOrganizationRequest& WithFilter(const OrganizationEventFilter& value) { SetFilter(value); return *this;}
/**
* <p>Values to narrow the results returned.</p>
*/
inline DescribeEventsForOrganizationRequest& WithFilter(OrganizationEventFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsForOrganizationRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsForOrganizationRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsForOrganizationRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline DescribeEventsForOrganizationRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline const Aws::String& GetLocale() const{ return m_locale; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventsForOrganizationRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventsForOrganizationRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventsForOrganizationRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
private:
OrganizationEventFilter m_filter;
bool m_filterHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_locale;
bool m_localeHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/OrganizationEvent.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeEventsForOrganizationResult
{
public:
DescribeEventsForOrganizationResult();
DescribeEventsForOrganizationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEventsForOrganizationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline const Aws::Vector<OrganizationEvent>& GetEvents() const{ return m_events; }
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline void SetEvents(const Aws::Vector<OrganizationEvent>& value) { m_events = value; }
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline void SetEvents(Aws::Vector<OrganizationEvent>&& value) { m_events = std::move(value); }
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline DescribeEventsForOrganizationResult& WithEvents(const Aws::Vector<OrganizationEvent>& value) { SetEvents(value); return *this;}
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline DescribeEventsForOrganizationResult& WithEvents(Aws::Vector<OrganizationEvent>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline DescribeEventsForOrganizationResult& AddEvents(const OrganizationEvent& value) { m_events.push_back(value); return *this; }
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline DescribeEventsForOrganizationResult& AddEvents(OrganizationEvent&& value) { m_events.push_back(std::move(value)); return *this; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsForOrganizationResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsForOrganizationResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsForOrganizationResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<OrganizationEvent> m_events;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,232 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/HealthRequest.h>
#include <aws/health/model/EventFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Health
{
namespace Model
{
/**
*/
class AWS_HEALTH_API DescribeEventsRequest : public HealthRequest
{
public:
DescribeEventsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Values to narrow the results returned.</p>
*/
inline const EventFilter& GetFilter() const{ return m_filter; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline void SetFilter(const EventFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Values to narrow the results returned.</p>
*/
inline void SetFilter(EventFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Values to narrow the results returned.</p>
*/
inline DescribeEventsRequest& WithFilter(const EventFilter& value) { SetFilter(value); return *this;}
/**
* <p>Values to narrow the results returned.</p>
*/
inline DescribeEventsRequest& WithFilter(EventFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return in one batch, between 10 and 100,
* inclusive.</p>
*/
inline DescribeEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline const Aws::String& GetLocale() const{ return m_locale; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventsRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventsRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
/**
* <p>The locale (language) to return information in. English (en) is the default
* and the only supported value at this time.</p>
*/
inline DescribeEventsRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
private:
EventFilter m_filter;
bool m_filterHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_locale;
bool m_localeHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/Event.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeEventsResult
{
public:
DescribeEventsResult();
DescribeEventsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEventsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline void SetEvents(const Aws::Vector<Event>& value) { m_events = value; }
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline void SetEvents(Aws::Vector<Event>&& value) { m_events = std::move(value); }
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline DescribeEventsResult& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline DescribeEventsResult& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline DescribeEventsResult& AddEvents(const Event& value) { m_events.push_back(value); return *this; }
/**
* <p>The events that match the specified filter criteria.</p>
*/
inline DescribeEventsResult& AddEvents(Event&& value) { m_events.push_back(std::move(value)); return *this; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the results of a search are large, only a portion of the results are
* returned, and a <code>nextToken</code> pagination token is returned in the
* response. To retrieve the next batch of results, reissue the search request and
* include the returned token. When all results have been returned, the response
* does not contain a pagination token value.</p>
*/
inline DescribeEventsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Event> m_events;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
class AWS_HEALTH_API DescribeHealthServiceStatusForOrganizationResult
{
public:
DescribeHealthServiceStatusForOrganizationResult();
DescribeHealthServiceStatusForOrganizationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeHealthServiceStatusForOrganizationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the status of enabling or disabling AWS Health
* Organizational View in your organization.</p> <p>Valid values are <code>ENABLED
* | DISABLED | PENDING</code>. </p>
*/
inline const Aws::String& GetHealthServiceAccessStatusForOrganization() const{ return m_healthServiceAccessStatusForOrganization; }
/**
* <p>Information about the status of enabling or disabling AWS Health
* Organizational View in your organization.</p> <p>Valid values are <code>ENABLED
* | DISABLED | PENDING</code>. </p>
*/
inline void SetHealthServiceAccessStatusForOrganization(const Aws::String& value) { m_healthServiceAccessStatusForOrganization = value; }
/**
* <p>Information about the status of enabling or disabling AWS Health
* Organizational View in your organization.</p> <p>Valid values are <code>ENABLED
* | DISABLED | PENDING</code>. </p>
*/
inline void SetHealthServiceAccessStatusForOrganization(Aws::String&& value) { m_healthServiceAccessStatusForOrganization = std::move(value); }
/**
* <p>Information about the status of enabling or disabling AWS Health
* Organizational View in your organization.</p> <p>Valid values are <code>ENABLED
* | DISABLED | PENDING</code>. </p>
*/
inline void SetHealthServiceAccessStatusForOrganization(const char* value) { m_healthServiceAccessStatusForOrganization.assign(value); }
/**
* <p>Information about the status of enabling or disabling AWS Health
* Organizational View in your organization.</p> <p>Valid values are <code>ENABLED
* | DISABLED | PENDING</code>. </p>
*/
inline DescribeHealthServiceStatusForOrganizationResult& WithHealthServiceAccessStatusForOrganization(const Aws::String& value) { SetHealthServiceAccessStatusForOrganization(value); return *this;}
/**
* <p>Information about the status of enabling or disabling AWS Health
* Organizational View in your organization.</p> <p>Valid values are <code>ENABLED
* | DISABLED | PENDING</code>. </p>
*/
inline DescribeHealthServiceStatusForOrganizationResult& WithHealthServiceAccessStatusForOrganization(Aws::String&& value) { SetHealthServiceAccessStatusForOrganization(std::move(value)); return *this;}
/**
* <p>Information about the status of enabling or disabling AWS Health
* Organizational View in your organization.</p> <p>Valid values are <code>ENABLED
* | DISABLED | PENDING</code>. </p>
*/
inline DescribeHealthServiceStatusForOrganizationResult& WithHealthServiceAccessStatusForOrganization(const char* value) { SetHealthServiceAccessStatusForOrganization(value); return *this;}
private:
Aws::String m_healthServiceAccessStatusForOrganization;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,147 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>The number of entities that are affected by one or more events. Returned by
* the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEntityAggregates.html">DescribeEntityAggregates</a>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EntityAggregate">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API EntityAggregate
{
public:
EntityAggregate();
EntityAggregate(Aws::Utils::Json::JsonView jsonValue);
EntityAggregate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline const Aws::String& GetEventArn() const{ return m_eventArn; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline EntityAggregate& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline EntityAggregate& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline EntityAggregate& WithEventArn(const char* value) { SetEventArn(value); return *this;}
/**
* <p>The number of entities that match the criteria for the specified events.</p>
*/
inline int GetCount() const{ return m_count; }
/**
* <p>The number of entities that match the criteria for the specified events.</p>
*/
inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
/**
* <p>The number of entities that match the criteria for the specified events.</p>
*/
inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
/**
* <p>The number of entities that match the criteria for the specified events.</p>
*/
inline EntityAggregate& WithCount(int value) { SetCount(value); return *this;}
private:
Aws::String m_eventArn;
bool m_eventArnHasBeenSet;
int m_count;
bool m_countHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,372 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/DateTimeRange.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/health/model/EntityStatusCode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>The values to use to filter results from the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EntityFilter.html">EntityFilter</a>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EntityFilter">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API EntityFilter
{
public:
EntityFilter();
EntityFilter(Aws::Utils::Json::JsonView jsonValue);
EntityFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline const Aws::Vector<Aws::String>& GetEventArns() const{ return m_eventArns; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline bool EventArnsHasBeenSet() const { return m_eventArnsHasBeenSet; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline void SetEventArns(const Aws::Vector<Aws::String>& value) { m_eventArnsHasBeenSet = true; m_eventArns = value; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline void SetEventArns(Aws::Vector<Aws::String>&& value) { m_eventArnsHasBeenSet = true; m_eventArns = std::move(value); }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EntityFilter& WithEventArns(const Aws::Vector<Aws::String>& value) { SetEventArns(value); return *this;}
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EntityFilter& WithEventArns(Aws::Vector<Aws::String>&& value) { SetEventArns(std::move(value)); return *this;}
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EntityFilter& AddEventArns(const Aws::String& value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(value); return *this; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EntityFilter& AddEventArns(Aws::String&& value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(std::move(value)); return *this; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EntityFilter& AddEventArns(const char* value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(value); return *this; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline const Aws::Vector<Aws::String>& GetEntityArns() const{ return m_entityArns; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline bool EntityArnsHasBeenSet() const { return m_entityArnsHasBeenSet; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline void SetEntityArns(const Aws::Vector<Aws::String>& value) { m_entityArnsHasBeenSet = true; m_entityArns = value; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline void SetEntityArns(Aws::Vector<Aws::String>&& value) { m_entityArnsHasBeenSet = true; m_entityArns = std::move(value); }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EntityFilter& WithEntityArns(const Aws::Vector<Aws::String>& value) { SetEntityArns(value); return *this;}
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EntityFilter& WithEntityArns(Aws::Vector<Aws::String>&& value) { SetEntityArns(std::move(value)); return *this;}
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EntityFilter& AddEntityArns(const Aws::String& value) { m_entityArnsHasBeenSet = true; m_entityArns.push_back(value); return *this; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EntityFilter& AddEntityArns(Aws::String&& value) { m_entityArnsHasBeenSet = true; m_entityArns.push_back(std::move(value)); return *this; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EntityFilter& AddEntityArns(const char* value) { m_entityArnsHasBeenSet = true; m_entityArns.push_back(value); return *this; }
/**
* <p>A list of IDs for affected entities.</p>
*/
inline const Aws::Vector<Aws::String>& GetEntityValues() const{ return m_entityValues; }
/**
* <p>A list of IDs for affected entities.</p>
*/
inline bool EntityValuesHasBeenSet() const { return m_entityValuesHasBeenSet; }
/**
* <p>A list of IDs for affected entities.</p>
*/
inline void SetEntityValues(const Aws::Vector<Aws::String>& value) { m_entityValuesHasBeenSet = true; m_entityValues = value; }
/**
* <p>A list of IDs for affected entities.</p>
*/
inline void SetEntityValues(Aws::Vector<Aws::String>&& value) { m_entityValuesHasBeenSet = true; m_entityValues = std::move(value); }
/**
* <p>A list of IDs for affected entities.</p>
*/
inline EntityFilter& WithEntityValues(const Aws::Vector<Aws::String>& value) { SetEntityValues(value); return *this;}
/**
* <p>A list of IDs for affected entities.</p>
*/
inline EntityFilter& WithEntityValues(Aws::Vector<Aws::String>&& value) { SetEntityValues(std::move(value)); return *this;}
/**
* <p>A list of IDs for affected entities.</p>
*/
inline EntityFilter& AddEntityValues(const Aws::String& value) { m_entityValuesHasBeenSet = true; m_entityValues.push_back(value); return *this; }
/**
* <p>A list of IDs for affected entities.</p>
*/
inline EntityFilter& AddEntityValues(Aws::String&& value) { m_entityValuesHasBeenSet = true; m_entityValues.push_back(std::move(value)); return *this; }
/**
* <p>A list of IDs for affected entities.</p>
*/
inline EntityFilter& AddEntityValues(const char* value) { m_entityValuesHasBeenSet = true; m_entityValues.push_back(value); return *this; }
/**
* <p>A list of the most recent dates and times that the entity was updated.</p>
*/
inline const Aws::Vector<DateTimeRange>& GetLastUpdatedTimes() const{ return m_lastUpdatedTimes; }
/**
* <p>A list of the most recent dates and times that the entity was updated.</p>
*/
inline bool LastUpdatedTimesHasBeenSet() const { return m_lastUpdatedTimesHasBeenSet; }
/**
* <p>A list of the most recent dates and times that the entity was updated.</p>
*/
inline void SetLastUpdatedTimes(const Aws::Vector<DateTimeRange>& value) { m_lastUpdatedTimesHasBeenSet = true; m_lastUpdatedTimes = value; }
/**
* <p>A list of the most recent dates and times that the entity was updated.</p>
*/
inline void SetLastUpdatedTimes(Aws::Vector<DateTimeRange>&& value) { m_lastUpdatedTimesHasBeenSet = true; m_lastUpdatedTimes = std::move(value); }
/**
* <p>A list of the most recent dates and times that the entity was updated.</p>
*/
inline EntityFilter& WithLastUpdatedTimes(const Aws::Vector<DateTimeRange>& value) { SetLastUpdatedTimes(value); return *this;}
/**
* <p>A list of the most recent dates and times that the entity was updated.</p>
*/
inline EntityFilter& WithLastUpdatedTimes(Aws::Vector<DateTimeRange>&& value) { SetLastUpdatedTimes(std::move(value)); return *this;}
/**
* <p>A list of the most recent dates and times that the entity was updated.</p>
*/
inline EntityFilter& AddLastUpdatedTimes(const DateTimeRange& value) { m_lastUpdatedTimesHasBeenSet = true; m_lastUpdatedTimes.push_back(value); return *this; }
/**
* <p>A list of the most recent dates and times that the entity was updated.</p>
*/
inline EntityFilter& AddLastUpdatedTimes(DateTimeRange&& value) { m_lastUpdatedTimesHasBeenSet = true; m_lastUpdatedTimes.push_back(std::move(value)); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetTags() const{ return m_tags; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline void SetTags(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline void SetTags(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline EntityFilter& WithTags(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { SetTags(value); return *this;}
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline EntityFilter& WithTags(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline EntityFilter& AddTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline EntityFilter& AddTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>A list of entity status codes (<code>IMPAIRED</code>,
* <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).</p>
*/
inline const Aws::Vector<EntityStatusCode>& GetStatusCodes() const{ return m_statusCodes; }
/**
* <p>A list of entity status codes (<code>IMPAIRED</code>,
* <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).</p>
*/
inline bool StatusCodesHasBeenSet() const { return m_statusCodesHasBeenSet; }
/**
* <p>A list of entity status codes (<code>IMPAIRED</code>,
* <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).</p>
*/
inline void SetStatusCodes(const Aws::Vector<EntityStatusCode>& value) { m_statusCodesHasBeenSet = true; m_statusCodes = value; }
/**
* <p>A list of entity status codes (<code>IMPAIRED</code>,
* <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).</p>
*/
inline void SetStatusCodes(Aws::Vector<EntityStatusCode>&& value) { m_statusCodesHasBeenSet = true; m_statusCodes = std::move(value); }
/**
* <p>A list of entity status codes (<code>IMPAIRED</code>,
* <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).</p>
*/
inline EntityFilter& WithStatusCodes(const Aws::Vector<EntityStatusCode>& value) { SetStatusCodes(value); return *this;}
/**
* <p>A list of entity status codes (<code>IMPAIRED</code>,
* <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).</p>
*/
inline EntityFilter& WithStatusCodes(Aws::Vector<EntityStatusCode>&& value) { SetStatusCodes(std::move(value)); return *this;}
/**
* <p>A list of entity status codes (<code>IMPAIRED</code>,
* <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).</p>
*/
inline EntityFilter& AddStatusCodes(const EntityStatusCode& value) { m_statusCodesHasBeenSet = true; m_statusCodes.push_back(value); return *this; }
/**
* <p>A list of entity status codes (<code>IMPAIRED</code>,
* <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).</p>
*/
inline EntityFilter& AddStatusCodes(EntityStatusCode&& value) { m_statusCodesHasBeenSet = true; m_statusCodes.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Aws::String> m_eventArns;
bool m_eventArnsHasBeenSet;
Aws::Vector<Aws::String> m_entityArns;
bool m_entityArnsHasBeenSet;
Aws::Vector<Aws::String> m_entityValues;
bool m_entityValuesHasBeenSet;
Aws::Vector<DateTimeRange> m_lastUpdatedTimes;
bool m_lastUpdatedTimesHasBeenSet;
Aws::Vector<Aws::Map<Aws::String, Aws::String>> m_tags;
bool m_tagsHasBeenSet;
Aws::Vector<EntityStatusCode> m_statusCodes;
bool m_statusCodesHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Health
{
namespace Model
{
enum class EntityStatusCode
{
NOT_SET,
IMPAIRED,
UNIMPAIRED,
UNKNOWN
};
namespace EntityStatusCodeMapper
{
AWS_HEALTH_API EntityStatusCode GetEntityStatusCodeForName(const Aws::String& name);
AWS_HEALTH_API Aws::String GetNameForEntityStatusCode(EntityStatusCode value);
} // namespace EntityStatusCodeMapper
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,612 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/EventTypeCategory.h>
#include <aws/core/utils/DateTime.h>
#include <aws/health/model/EventStatusCode.h>
#include <aws/health/model/EventScopeCode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>Summary information about an AWS Health event.</p> <p>AWS Health events can
* be public or account-specific:</p> <ul> <li> <p> <i>Public events</i> might be
* service events that are not specific to an AWS account. For example, if there is
* an issue with an AWS Region, AWS Health provides information about the event,
* even if you don't use services or resources in that Region.</p> </li> <li> <p>
* <i>Account-specific</i> events are specific to either your AWS account or an
* account in your organization. For example, if there's an issue with Amazon
* Elastic Compute Cloud in a Region that you use, AWS Health provides information
* about the event and the affected resources in the account.</p> </li> </ul>
* <p>You can determine if an event is public or account-specific by using the
* <code>eventScopeCode</code> parameter. For more information, see <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/Event">AWS API
* Reference</a></p>
*/
class AWS_HEALTH_API Event
{
public:
Event();
Event(Aws::Utils::Json::JsonView jsonValue);
Event& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline Event& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline Event& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline Event& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The AWS service that is affected by the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline const Aws::String& GetService() const{ return m_service; }
/**
* <p>The AWS service that is affected by the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
/**
* <p>The AWS service that is affected by the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
/**
* <p>The AWS service that is affected by the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
/**
* <p>The AWS service that is affected by the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
/**
* <p>The AWS service that is affected by the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline Event& WithService(const Aws::String& value) { SetService(value); return *this;}
/**
* <p>The AWS service that is affected by the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline Event& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
/**
* <p>The AWS service that is affected by the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline Event& WithService(const char* value) { SetService(value); return *this;}
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline const Aws::String& GetEventTypeCode() const{ return m_eventTypeCode; }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline bool EventTypeCodeHasBeenSet() const { return m_eventTypeCodeHasBeenSet; }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline void SetEventTypeCode(const Aws::String& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = value; }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline void SetEventTypeCode(Aws::String&& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = std::move(value); }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline void SetEventTypeCode(const char* value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode.assign(value); }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline Event& WithEventTypeCode(const Aws::String& value) { SetEventTypeCode(value); return *this;}
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline Event& WithEventTypeCode(Aws::String&& value) { SetEventTypeCode(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> </code>; for example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline Event& WithEventTypeCode(const char* value) { SetEventTypeCode(value); return *this;}
/**
* <p>The category of the event. Possible values are <code>issue</code>,
* <code>scheduledChange</code>, and <code>accountNotification</code>.</p>
*/
inline const EventTypeCategory& GetEventTypeCategory() const{ return m_eventTypeCategory; }
/**
* <p>The category of the event. Possible values are <code>issue</code>,
* <code>scheduledChange</code>, and <code>accountNotification</code>.</p>
*/
inline bool EventTypeCategoryHasBeenSet() const { return m_eventTypeCategoryHasBeenSet; }
/**
* <p>The category of the event. Possible values are <code>issue</code>,
* <code>scheduledChange</code>, and <code>accountNotification</code>.</p>
*/
inline void SetEventTypeCategory(const EventTypeCategory& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = value; }
/**
* <p>The category of the event. Possible values are <code>issue</code>,
* <code>scheduledChange</code>, and <code>accountNotification</code>.</p>
*/
inline void SetEventTypeCategory(EventTypeCategory&& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = std::move(value); }
/**
* <p>The category of the event. Possible values are <code>issue</code>,
* <code>scheduledChange</code>, and <code>accountNotification</code>.</p>
*/
inline Event& WithEventTypeCategory(const EventTypeCategory& value) { SetEventTypeCategory(value); return *this;}
/**
* <p>The category of the event. Possible values are <code>issue</code>,
* <code>scheduledChange</code>, and <code>accountNotification</code>.</p>
*/
inline Event& WithEventTypeCategory(EventTypeCategory&& value) { SetEventTypeCategory(std::move(value)); return *this;}
/**
* <p>The AWS region name of the event.</p>
*/
inline const Aws::String& GetRegion() const{ return m_region; }
/**
* <p>The AWS region name of the event.</p>
*/
inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
/**
* <p>The AWS region name of the event.</p>
*/
inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
/**
* <p>The AWS region name of the event.</p>
*/
inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
/**
* <p>The AWS region name of the event.</p>
*/
inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
/**
* <p>The AWS region name of the event.</p>
*/
inline Event& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
/**
* <p>The AWS region name of the event.</p>
*/
inline Event& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
/**
* <p>The AWS region name of the event.</p>
*/
inline Event& WithRegion(const char* value) { SetRegion(value); return *this;}
/**
* <p>The AWS Availability Zone of the event. For example, us-east-1a.</p>
*/
inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
/**
* <p>The AWS Availability Zone of the event. For example, us-east-1a.</p>
*/
inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
/**
* <p>The AWS Availability Zone of the event. For example, us-east-1a.</p>
*/
inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
/**
* <p>The AWS Availability Zone of the event. For example, us-east-1a.</p>
*/
inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
/**
* <p>The AWS Availability Zone of the event. For example, us-east-1a.</p>
*/
inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
/**
* <p>The AWS Availability Zone of the event. For example, us-east-1a.</p>
*/
inline Event& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
/**
* <p>The AWS Availability Zone of the event. For example, us-east-1a.</p>
*/
inline Event& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
/**
* <p>The AWS Availability Zone of the event. For example, us-east-1a.</p>
*/
inline Event& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
/**
* <p>The date and time that the event began.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The date and time that the event began.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The date and time that the event began.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The date and time that the event began.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The date and time that the event began.</p>
*/
inline Event& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The date and time that the event began.</p>
*/
inline Event& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The date and time that the event ended.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The date and time that the event ended.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The date and time that the event ended.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The date and time that the event ended.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The date and time that the event ended.</p>
*/
inline Event& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The date and time that the event ended.</p>
*/
inline Event& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline Event& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline Event& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline const EventStatusCode& GetStatusCode() const{ return m_statusCode; }
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline void SetStatusCode(const EventStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline void SetStatusCode(EventStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline Event& WithStatusCode(const EventStatusCode& value) { SetStatusCode(value); return *this;}
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline Event& WithStatusCode(EventStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline const EventScopeCode& GetEventScopeCode() const{ return m_eventScopeCode; }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline bool EventScopeCodeHasBeenSet() const { return m_eventScopeCodeHasBeenSet; }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline void SetEventScopeCode(const EventScopeCode& value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = value; }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline void SetEventScopeCode(EventScopeCode&& value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = std::move(value); }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline Event& WithEventScopeCode(const EventScopeCode& value) { SetEventScopeCode(value); return *this;}
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline Event& WithEventScopeCode(EventScopeCode&& value) { SetEventScopeCode(std::move(value)); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_service;
bool m_serviceHasBeenSet;
Aws::String m_eventTypeCode;
bool m_eventTypeCodeHasBeenSet;
EventTypeCategory m_eventTypeCategory;
bool m_eventTypeCategoryHasBeenSet;
Aws::String m_region;
bool m_regionHasBeenSet;
Aws::String m_availabilityZone;
bool m_availabilityZoneHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedTime;
bool m_lastUpdatedTimeHasBeenSet;
EventStatusCode m_statusCode;
bool m_statusCodeHasBeenSet;
EventScopeCode m_eventScopeCode;
bool m_eventScopeCodeHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,168 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>The values used to filter results from the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* and <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
* operations.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventAccountFilter">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API EventAccountFilter
{
public:
EventAccountFilter();
EventAccountFilter(Aws::Utils::Json::JsonView jsonValue);
EventAccountFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline const Aws::String& GetEventArn() const{ return m_eventArn; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline EventAccountFilter& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline EventAccountFilter& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline EventAccountFilter& WithEventArn(const char* value) { SetEventArn(value); return *this;}
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline EventAccountFilter& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline EventAccountFilter& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline EventAccountFilter& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
private:
Aws::String m_eventArn;
bool m_eventArnHasBeenSet;
Aws::String m_awsAccountId;
bool m_awsAccountIdHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,114 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>The number of events of each issue type. Returned by the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventAggregates.html">DescribeEventAggregates</a>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventAggregate">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API EventAggregate
{
public:
EventAggregate();
EventAggregate(Aws::Utils::Json::JsonView jsonValue);
EventAggregate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The issue type for the associated count.</p>
*/
inline const Aws::String& GetAggregateValue() const{ return m_aggregateValue; }
/**
* <p>The issue type for the associated count.</p>
*/
inline bool AggregateValueHasBeenSet() const { return m_aggregateValueHasBeenSet; }
/**
* <p>The issue type for the associated count.</p>
*/
inline void SetAggregateValue(const Aws::String& value) { m_aggregateValueHasBeenSet = true; m_aggregateValue = value; }
/**
* <p>The issue type for the associated count.</p>
*/
inline void SetAggregateValue(Aws::String&& value) { m_aggregateValueHasBeenSet = true; m_aggregateValue = std::move(value); }
/**
* <p>The issue type for the associated count.</p>
*/
inline void SetAggregateValue(const char* value) { m_aggregateValueHasBeenSet = true; m_aggregateValue.assign(value); }
/**
* <p>The issue type for the associated count.</p>
*/
inline EventAggregate& WithAggregateValue(const Aws::String& value) { SetAggregateValue(value); return *this;}
/**
* <p>The issue type for the associated count.</p>
*/
inline EventAggregate& WithAggregateValue(Aws::String&& value) { SetAggregateValue(std::move(value)); return *this;}
/**
* <p>The issue type for the associated count.</p>
*/
inline EventAggregate& WithAggregateValue(const char* value) { SetAggregateValue(value); return *this;}
/**
* <p>The number of events of the associated issue type.</p>
*/
inline int GetCount() const{ return m_count; }
/**
* <p>The number of events of the associated issue type.</p>
*/
inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
/**
* <p>The number of events of the associated issue type.</p>
*/
inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
/**
* <p>The number of events of the associated issue type.</p>
*/
inline EventAggregate& WithCount(int value) { SetCount(value); return *this;}
private:
Aws::String m_aggregateValue;
bool m_aggregateValueHasBeenSet;
int m_count;
bool m_countHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Health
{
namespace Model
{
enum class EventAggregateField
{
NOT_SET,
eventTypeCategory
};
namespace EventAggregateFieldMapper
{
AWS_HEALTH_API EventAggregateField GetEventAggregateFieldForName(const Aws::String& name);
AWS_HEALTH_API Aws::String GetNameForEventAggregateField(EventAggregateField value);
} // namespace EventAggregateFieldMapper
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,199 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/health/model/Event.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>Detailed information about an event. A combination of an <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>
* object, an <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventDescription.html">EventDescription</a>
* object, and additional metadata about the event. Returned by the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventDetails">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API EventDetails
{
public:
EventDetails();
EventDetails(Aws::Utils::Json::JsonView jsonValue);
EventDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Summary information about the event.</p>
*/
inline const Event& GetEvent() const{ return m_event; }
/**
* <p>Summary information about the event.</p>
*/
inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
/**
* <p>Summary information about the event.</p>
*/
inline void SetEvent(const Event& value) { m_eventHasBeenSet = true; m_event = value; }
/**
* <p>Summary information about the event.</p>
*/
inline void SetEvent(Event&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
/**
* <p>Summary information about the event.</p>
*/
inline EventDetails& WithEvent(const Event& value) { SetEvent(value); return *this;}
/**
* <p>Summary information about the event.</p>
*/
inline EventDetails& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;}
/**
* <p>The most recent description of the event.</p>
*/
inline const Aws::String& GetEventDescription() const{ return m_eventDescription; }
/**
* <p>The most recent description of the event.</p>
*/
inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
/**
* <p>The most recent description of the event.</p>
*/
inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
/**
* <p>The most recent description of the event.</p>
*/
inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::move(value); }
/**
* <p>The most recent description of the event.</p>
*/
inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); }
/**
* <p>The most recent description of the event.</p>
*/
inline EventDetails& WithEventDescription(const Aws::String& value) { SetEventDescription(value); return *this;}
/**
* <p>The most recent description of the event.</p>
*/
inline EventDetails& WithEventDescription(Aws::String&& value) { SetEventDescription(std::move(value)); return *this;}
/**
* <p>The most recent description of the event.</p>
*/
inline EventDetails& WithEventDescription(const char* value) { SetEventDescription(value); return *this;}
/**
* <p>Additional metadata about the event.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetEventMetadata() const{ return m_eventMetadata; }
/**
* <p>Additional metadata about the event.</p>
*/
inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
/**
* <p>Additional metadata about the event.</p>
*/
inline void SetEventMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = value; }
/**
* <p>Additional metadata about the event.</p>
*/
inline void SetEventMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = std::move(value); }
/**
* <p>Additional metadata about the event.</p>
*/
inline EventDetails& WithEventMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetEventMetadata(value); return *this;}
/**
* <p>Additional metadata about the event.</p>
*/
inline EventDetails& WithEventMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetEventMetadata(std::move(value)); return *this;}
/**
* <p>Additional metadata about the event.</p>
*/
inline EventDetails& AddEventMetadata(const Aws::String& key, const Aws::String& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, value); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline EventDetails& AddEventMetadata(Aws::String&& key, const Aws::String& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline EventDetails& AddEventMetadata(const Aws::String& key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline EventDetails& AddEventMetadata(Aws::String&& key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline EventDetails& AddEventMetadata(const char* key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline EventDetails& AddEventMetadata(Aws::String&& key, const char* value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline EventDetails& AddEventMetadata(const char* key, const char* value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, value); return *this; }
private:
Event m_event;
bool m_eventHasBeenSet;
Aws::String m_eventDescription;
bool m_eventDescriptionHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_eventMetadata;
bool m_eventMetadataHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,210 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
* operation cannot find a specified event.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventDetailsErrorItem">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API EventDetailsErrorItem
{
public:
EventDetailsErrorItem();
EventDetailsErrorItem(Aws::Utils::Json::JsonView jsonValue);
EventDetailsErrorItem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline const Aws::String& GetEventArn() const{ return m_eventArn; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline EventDetailsErrorItem& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline EventDetailsErrorItem& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline EventDetailsErrorItem& WithEventArn(const char* value) { SetEventArn(value); return *this;}
/**
* <p>The name of the error.</p>
*/
inline const Aws::String& GetErrorName() const{ return m_errorName; }
/**
* <p>The name of the error.</p>
*/
inline bool ErrorNameHasBeenSet() const { return m_errorNameHasBeenSet; }
/**
* <p>The name of the error.</p>
*/
inline void SetErrorName(const Aws::String& value) { m_errorNameHasBeenSet = true; m_errorName = value; }
/**
* <p>The name of the error.</p>
*/
inline void SetErrorName(Aws::String&& value) { m_errorNameHasBeenSet = true; m_errorName = std::move(value); }
/**
* <p>The name of the error.</p>
*/
inline void SetErrorName(const char* value) { m_errorNameHasBeenSet = true; m_errorName.assign(value); }
/**
* <p>The name of the error.</p>
*/
inline EventDetailsErrorItem& WithErrorName(const Aws::String& value) { SetErrorName(value); return *this;}
/**
* <p>The name of the error.</p>
*/
inline EventDetailsErrorItem& WithErrorName(Aws::String&& value) { SetErrorName(std::move(value)); return *this;}
/**
* <p>The name of the error.</p>
*/
inline EventDetailsErrorItem& WithErrorName(const char* value) { SetErrorName(value); return *this;}
/**
* <p>A message that describes the error.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>A message that describes the error.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>A message that describes the error.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>A message that describes the error.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>A message that describes the error.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>A message that describes the error.</p>
*/
inline EventDetailsErrorItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>A message that describes the error.</p>
*/
inline EventDetailsErrorItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>A message that describes the error.</p>
*/
inline EventDetailsErrorItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_eventArn;
bool m_eventArnHasBeenSet;
Aws::String m_errorName;
bool m_errorNameHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,739 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/DateTimeRange.h>
#include <aws/health/model/EventTypeCategory.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/health/model/EventStatusCode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>The values to use to filter results from the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>
* and <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventAggregates.html">DescribeEventAggregates</a>
* operations.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventFilter">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API EventFilter
{
public:
EventFilter();
EventFilter(Aws::Utils::Json::JsonView jsonValue);
EventFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline const Aws::Vector<Aws::String>& GetEventArns() const{ return m_eventArns; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline bool EventArnsHasBeenSet() const { return m_eventArnsHasBeenSet; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline void SetEventArns(const Aws::Vector<Aws::String>& value) { m_eventArnsHasBeenSet = true; m_eventArns = value; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline void SetEventArns(Aws::Vector<Aws::String>&& value) { m_eventArnsHasBeenSet = true; m_eventArns = std::move(value); }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EventFilter& WithEventArns(const Aws::Vector<Aws::String>& value) { SetEventArns(value); return *this;}
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EventFilter& WithEventArns(Aws::Vector<Aws::String>&& value) { SetEventArns(std::move(value)); return *this;}
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EventFilter& AddEventArns(const Aws::String& value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(value); return *this; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EventFilter& AddEventArns(Aws::String&& value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(std::move(value)); return *this; }
/**
* <p>A list of event ARNs (unique identifiers). For example:
* <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
* "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
* </p>
*/
inline EventFilter& AddEventArns(const char* value) { m_eventArnsHasBeenSet = true; m_eventArns.push_back(value); return *this; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline const Aws::Vector<Aws::String>& GetEventTypeCodes() const{ return m_eventTypeCodes; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline bool EventTypeCodesHasBeenSet() const { return m_eventTypeCodesHasBeenSet; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline void SetEventTypeCodes(const Aws::Vector<Aws::String>& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes = value; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline void SetEventTypeCodes(Aws::Vector<Aws::String>&& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes = std::move(value); }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline EventFilter& WithEventTypeCodes(const Aws::Vector<Aws::String>& value) { SetEventTypeCodes(value); return *this;}
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline EventFilter& WithEventTypeCodes(Aws::Vector<Aws::String>&& value) { SetEventTypeCodes(std::move(value)); return *this;}
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline EventFilter& AddEventTypeCodes(const Aws::String& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes.push_back(value); return *this; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline EventFilter& AddEventTypeCodes(Aws::String&& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes.push_back(std::move(value)); return *this; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline EventFilter& AddEventTypeCodes(const char* value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes.push_back(value); return *this; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline const Aws::Vector<Aws::String>& GetServices() const{ return m_services; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline void SetServices(const Aws::Vector<Aws::String>& value) { m_servicesHasBeenSet = true; m_services = value; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline void SetServices(Aws::Vector<Aws::String>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventFilter& WithServices(const Aws::Vector<Aws::String>& value) { SetServices(value); return *this;}
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventFilter& WithServices(Aws::Vector<Aws::String>&& value) { SetServices(std::move(value)); return *this;}
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventFilter& AddServices(const Aws::String& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventFilter& AddServices(Aws::String&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventFilter& AddServices(const char* value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
/**
* <p>A list of AWS regions.</p>
*/
inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
/**
* <p>A list of AWS regions.</p>
*/
inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
/**
* <p>A list of AWS regions.</p>
*/
inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
/**
* <p>A list of AWS regions.</p>
*/
inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
/**
* <p>A list of AWS regions.</p>
*/
inline EventFilter& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
/**
* <p>A list of AWS regions.</p>
*/
inline EventFilter& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
/**
* <p>A list of AWS regions.</p>
*/
inline EventFilter& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
/**
* <p>A list of AWS regions.</p>
*/
inline EventFilter& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
/**
* <p>A list of AWS regions.</p>
*/
inline EventFilter& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
/**
* <p>A list of AWS availability zones.</p>
*/
inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
/**
* <p>A list of AWS availability zones.</p>
*/
inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
/**
* <p>A list of AWS availability zones.</p>
*/
inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
/**
* <p>A list of AWS availability zones.</p>
*/
inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
/**
* <p>A list of AWS availability zones.</p>
*/
inline EventFilter& WithAvailabilityZones(const Aws::Vector<Aws::String>& value) { SetAvailabilityZones(value); return *this;}
/**
* <p>A list of AWS availability zones.</p>
*/
inline EventFilter& WithAvailabilityZones(Aws::Vector<Aws::String>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
/**
* <p>A list of AWS availability zones.</p>
*/
inline EventFilter& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
/**
* <p>A list of AWS availability zones.</p>
*/
inline EventFilter& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
/**
* <p>A list of AWS availability zones.</p>
*/
inline EventFilter& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
/**
* <p>A list of dates and times that the event began.</p>
*/
inline const Aws::Vector<DateTimeRange>& GetStartTimes() const{ return m_startTimes; }
/**
* <p>A list of dates and times that the event began.</p>
*/
inline bool StartTimesHasBeenSet() const { return m_startTimesHasBeenSet; }
/**
* <p>A list of dates and times that the event began.</p>
*/
inline void SetStartTimes(const Aws::Vector<DateTimeRange>& value) { m_startTimesHasBeenSet = true; m_startTimes = value; }
/**
* <p>A list of dates and times that the event began.</p>
*/
inline void SetStartTimes(Aws::Vector<DateTimeRange>&& value) { m_startTimesHasBeenSet = true; m_startTimes = std::move(value); }
/**
* <p>A list of dates and times that the event began.</p>
*/
inline EventFilter& WithStartTimes(const Aws::Vector<DateTimeRange>& value) { SetStartTimes(value); return *this;}
/**
* <p>A list of dates and times that the event began.</p>
*/
inline EventFilter& WithStartTimes(Aws::Vector<DateTimeRange>&& value) { SetStartTimes(std::move(value)); return *this;}
/**
* <p>A list of dates and times that the event began.</p>
*/
inline EventFilter& AddStartTimes(const DateTimeRange& value) { m_startTimesHasBeenSet = true; m_startTimes.push_back(value); return *this; }
/**
* <p>A list of dates and times that the event began.</p>
*/
inline EventFilter& AddStartTimes(DateTimeRange&& value) { m_startTimesHasBeenSet = true; m_startTimes.push_back(std::move(value)); return *this; }
/**
* <p>A list of dates and times that the event ended.</p>
*/
inline const Aws::Vector<DateTimeRange>& GetEndTimes() const{ return m_endTimes; }
/**
* <p>A list of dates and times that the event ended.</p>
*/
inline bool EndTimesHasBeenSet() const { return m_endTimesHasBeenSet; }
/**
* <p>A list of dates and times that the event ended.</p>
*/
inline void SetEndTimes(const Aws::Vector<DateTimeRange>& value) { m_endTimesHasBeenSet = true; m_endTimes = value; }
/**
* <p>A list of dates and times that the event ended.</p>
*/
inline void SetEndTimes(Aws::Vector<DateTimeRange>&& value) { m_endTimesHasBeenSet = true; m_endTimes = std::move(value); }
/**
* <p>A list of dates and times that the event ended.</p>
*/
inline EventFilter& WithEndTimes(const Aws::Vector<DateTimeRange>& value) { SetEndTimes(value); return *this;}
/**
* <p>A list of dates and times that the event ended.</p>
*/
inline EventFilter& WithEndTimes(Aws::Vector<DateTimeRange>&& value) { SetEndTimes(std::move(value)); return *this;}
/**
* <p>A list of dates and times that the event ended.</p>
*/
inline EventFilter& AddEndTimes(const DateTimeRange& value) { m_endTimesHasBeenSet = true; m_endTimes.push_back(value); return *this; }
/**
* <p>A list of dates and times that the event ended.</p>
*/
inline EventFilter& AddEndTimes(DateTimeRange&& value) { m_endTimesHasBeenSet = true; m_endTimes.push_back(std::move(value)); return *this; }
/**
* <p>A list of dates and times that the event was last updated.</p>
*/
inline const Aws::Vector<DateTimeRange>& GetLastUpdatedTimes() const{ return m_lastUpdatedTimes; }
/**
* <p>A list of dates and times that the event was last updated.</p>
*/
inline bool LastUpdatedTimesHasBeenSet() const { return m_lastUpdatedTimesHasBeenSet; }
/**
* <p>A list of dates and times that the event was last updated.</p>
*/
inline void SetLastUpdatedTimes(const Aws::Vector<DateTimeRange>& value) { m_lastUpdatedTimesHasBeenSet = true; m_lastUpdatedTimes = value; }
/**
* <p>A list of dates and times that the event was last updated.</p>
*/
inline void SetLastUpdatedTimes(Aws::Vector<DateTimeRange>&& value) { m_lastUpdatedTimesHasBeenSet = true; m_lastUpdatedTimes = std::move(value); }
/**
* <p>A list of dates and times that the event was last updated.</p>
*/
inline EventFilter& WithLastUpdatedTimes(const Aws::Vector<DateTimeRange>& value) { SetLastUpdatedTimes(value); return *this;}
/**
* <p>A list of dates and times that the event was last updated.</p>
*/
inline EventFilter& WithLastUpdatedTimes(Aws::Vector<DateTimeRange>&& value) { SetLastUpdatedTimes(std::move(value)); return *this;}
/**
* <p>A list of dates and times that the event was last updated.</p>
*/
inline EventFilter& AddLastUpdatedTimes(const DateTimeRange& value) { m_lastUpdatedTimesHasBeenSet = true; m_lastUpdatedTimes.push_back(value); return *this; }
/**
* <p>A list of dates and times that the event was last updated.</p>
*/
inline EventFilter& AddLastUpdatedTimes(DateTimeRange&& value) { m_lastUpdatedTimesHasBeenSet = true; m_lastUpdatedTimes.push_back(std::move(value)); return *this; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline const Aws::Vector<Aws::String>& GetEntityArns() const{ return m_entityArns; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline bool EntityArnsHasBeenSet() const { return m_entityArnsHasBeenSet; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline void SetEntityArns(const Aws::Vector<Aws::String>& value) { m_entityArnsHasBeenSet = true; m_entityArns = value; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline void SetEntityArns(Aws::Vector<Aws::String>&& value) { m_entityArnsHasBeenSet = true; m_entityArns = std::move(value); }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EventFilter& WithEntityArns(const Aws::Vector<Aws::String>& value) { SetEntityArns(value); return *this;}
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EventFilter& WithEntityArns(Aws::Vector<Aws::String>&& value) { SetEntityArns(std::move(value)); return *this;}
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EventFilter& AddEntityArns(const Aws::String& value) { m_entityArnsHasBeenSet = true; m_entityArns.push_back(value); return *this; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EventFilter& AddEntityArns(Aws::String&& value) { m_entityArnsHasBeenSet = true; m_entityArns.push_back(std::move(value)); return *this; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline EventFilter& AddEntityArns(const char* value) { m_entityArnsHasBeenSet = true; m_entityArns.push_back(value); return *this; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs
* (<code>i-34ab692e</code>) or EBS volumes (<code>vol-426ab23e</code>).</p>
*/
inline const Aws::Vector<Aws::String>& GetEntityValues() const{ return m_entityValues; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs
* (<code>i-34ab692e</code>) or EBS volumes (<code>vol-426ab23e</code>).</p>
*/
inline bool EntityValuesHasBeenSet() const { return m_entityValuesHasBeenSet; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs
* (<code>i-34ab692e</code>) or EBS volumes (<code>vol-426ab23e</code>).</p>
*/
inline void SetEntityValues(const Aws::Vector<Aws::String>& value) { m_entityValuesHasBeenSet = true; m_entityValues = value; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs
* (<code>i-34ab692e</code>) or EBS volumes (<code>vol-426ab23e</code>).</p>
*/
inline void SetEntityValues(Aws::Vector<Aws::String>&& value) { m_entityValuesHasBeenSet = true; m_entityValues = std::move(value); }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs
* (<code>i-34ab692e</code>) or EBS volumes (<code>vol-426ab23e</code>).</p>
*/
inline EventFilter& WithEntityValues(const Aws::Vector<Aws::String>& value) { SetEntityValues(value); return *this;}
/**
* <p>A list of entity identifiers, such as EC2 instance IDs
* (<code>i-34ab692e</code>) or EBS volumes (<code>vol-426ab23e</code>).</p>
*/
inline EventFilter& WithEntityValues(Aws::Vector<Aws::String>&& value) { SetEntityValues(std::move(value)); return *this;}
/**
* <p>A list of entity identifiers, such as EC2 instance IDs
* (<code>i-34ab692e</code>) or EBS volumes (<code>vol-426ab23e</code>).</p>
*/
inline EventFilter& AddEntityValues(const Aws::String& value) { m_entityValuesHasBeenSet = true; m_entityValues.push_back(value); return *this; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs
* (<code>i-34ab692e</code>) or EBS volumes (<code>vol-426ab23e</code>).</p>
*/
inline EventFilter& AddEntityValues(Aws::String&& value) { m_entityValuesHasBeenSet = true; m_entityValues.push_back(std::move(value)); return *this; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs
* (<code>i-34ab692e</code>) or EBS volumes (<code>vol-426ab23e</code>).</p>
*/
inline EventFilter& AddEntityValues(const char* value) { m_entityValuesHasBeenSet = true; m_entityValues.push_back(value); return *this; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline const Aws::Vector<EventTypeCategory>& GetEventTypeCategories() const{ return m_eventTypeCategories; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline bool EventTypeCategoriesHasBeenSet() const { return m_eventTypeCategoriesHasBeenSet; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline void SetEventTypeCategories(const Aws::Vector<EventTypeCategory>& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories = value; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline void SetEventTypeCategories(Aws::Vector<EventTypeCategory>&& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories = std::move(value); }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline EventFilter& WithEventTypeCategories(const Aws::Vector<EventTypeCategory>& value) { SetEventTypeCategories(value); return *this;}
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline EventFilter& WithEventTypeCategories(Aws::Vector<EventTypeCategory>&& value) { SetEventTypeCategories(std::move(value)); return *this;}
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline EventFilter& AddEventTypeCategories(const EventTypeCategory& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories.push_back(value); return *this; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline EventFilter& AddEventTypeCategories(EventTypeCategory&& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories.push_back(std::move(value)); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetTags() const{ return m_tags; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline void SetTags(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline void SetTags(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline EventFilter& WithTags(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { SetTags(value); return *this;}
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline EventFilter& WithTags(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline EventFilter& AddTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>A map of entity tags attached to the affected entity.</p>
* <p>Currently, the <code>tags</code> property isn't supported.</p>
*/
inline EventFilter& AddTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>A list of event status codes.</p>
*/
inline const Aws::Vector<EventStatusCode>& GetEventStatusCodes() const{ return m_eventStatusCodes; }
/**
* <p>A list of event status codes.</p>
*/
inline bool EventStatusCodesHasBeenSet() const { return m_eventStatusCodesHasBeenSet; }
/**
* <p>A list of event status codes.</p>
*/
inline void SetEventStatusCodes(const Aws::Vector<EventStatusCode>& value) { m_eventStatusCodesHasBeenSet = true; m_eventStatusCodes = value; }
/**
* <p>A list of event status codes.</p>
*/
inline void SetEventStatusCodes(Aws::Vector<EventStatusCode>&& value) { m_eventStatusCodesHasBeenSet = true; m_eventStatusCodes = std::move(value); }
/**
* <p>A list of event status codes.</p>
*/
inline EventFilter& WithEventStatusCodes(const Aws::Vector<EventStatusCode>& value) { SetEventStatusCodes(value); return *this;}
/**
* <p>A list of event status codes.</p>
*/
inline EventFilter& WithEventStatusCodes(Aws::Vector<EventStatusCode>&& value) { SetEventStatusCodes(std::move(value)); return *this;}
/**
* <p>A list of event status codes.</p>
*/
inline EventFilter& AddEventStatusCodes(const EventStatusCode& value) { m_eventStatusCodesHasBeenSet = true; m_eventStatusCodes.push_back(value); return *this; }
/**
* <p>A list of event status codes.</p>
*/
inline EventFilter& AddEventStatusCodes(EventStatusCode&& value) { m_eventStatusCodesHasBeenSet = true; m_eventStatusCodes.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Aws::String> m_eventArns;
bool m_eventArnsHasBeenSet;
Aws::Vector<Aws::String> m_eventTypeCodes;
bool m_eventTypeCodesHasBeenSet;
Aws::Vector<Aws::String> m_services;
bool m_servicesHasBeenSet;
Aws::Vector<Aws::String> m_regions;
bool m_regionsHasBeenSet;
Aws::Vector<Aws::String> m_availabilityZones;
bool m_availabilityZonesHasBeenSet;
Aws::Vector<DateTimeRange> m_startTimes;
bool m_startTimesHasBeenSet;
Aws::Vector<DateTimeRange> m_endTimes;
bool m_endTimesHasBeenSet;
Aws::Vector<DateTimeRange> m_lastUpdatedTimes;
bool m_lastUpdatedTimesHasBeenSet;
Aws::Vector<Aws::String> m_entityArns;
bool m_entityArnsHasBeenSet;
Aws::Vector<Aws::String> m_entityValues;
bool m_entityValuesHasBeenSet;
Aws::Vector<EventTypeCategory> m_eventTypeCategories;
bool m_eventTypeCategoriesHasBeenSet;
Aws::Vector<Aws::Map<Aws::String, Aws::String>> m_tags;
bool m_tagsHasBeenSet;
Aws::Vector<EventStatusCode> m_eventStatusCodes;
bool m_eventStatusCodesHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Health
{
namespace Model
{
enum class EventScopeCode
{
NOT_SET,
PUBLIC_,
ACCOUNT_SPECIFIC,
NONE
};
namespace EventScopeCodeMapper
{
AWS_HEALTH_API EventScopeCode GetEventScopeCodeForName(const Aws::String& name);
AWS_HEALTH_API Aws::String GetNameForEventScopeCode(EventScopeCode value);
} // namespace EventScopeCodeMapper
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Health
{
namespace Model
{
enum class EventStatusCode
{
NOT_SET,
open,
closed,
upcoming
};
namespace EventStatusCodeMapper
{
AWS_HEALTH_API EventStatusCode GetEventStatusCodeForName(const Aws::String& name);
AWS_HEALTH_API Aws::String GetNameForEventStatusCode(EventStatusCode value);
} // namespace EventStatusCodeMapper
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Health
{
namespace Model
{
enum class EventTypeCategory
{
NOT_SET,
issue,
accountNotification,
scheduledChange,
investigation
};
namespace EventTypeCategoryMapper
{
AWS_HEALTH_API EventTypeCategory GetEventTypeCategoryForName(const Aws::String& name);
AWS_HEALTH_API Aws::String GetNameForEventTypeCategory(EventTypeCategory value);
} // namespace EventTypeCategoryMapper
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,207 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/EventTypeCategory.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>The values to use to filter results from the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventTypes.html">DescribeEventTypes</a>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventTypeFilter">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API EventTypeFilter
{
public:
EventTypeFilter();
EventTypeFilter(Aws::Utils::Json::JsonView jsonValue);
EventTypeFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list of event type codes.</p>
*/
inline const Aws::Vector<Aws::String>& GetEventTypeCodes() const{ return m_eventTypeCodes; }
/**
* <p>A list of event type codes.</p>
*/
inline bool EventTypeCodesHasBeenSet() const { return m_eventTypeCodesHasBeenSet; }
/**
* <p>A list of event type codes.</p>
*/
inline void SetEventTypeCodes(const Aws::Vector<Aws::String>& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes = value; }
/**
* <p>A list of event type codes.</p>
*/
inline void SetEventTypeCodes(Aws::Vector<Aws::String>&& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes = std::move(value); }
/**
* <p>A list of event type codes.</p>
*/
inline EventTypeFilter& WithEventTypeCodes(const Aws::Vector<Aws::String>& value) { SetEventTypeCodes(value); return *this;}
/**
* <p>A list of event type codes.</p>
*/
inline EventTypeFilter& WithEventTypeCodes(Aws::Vector<Aws::String>&& value) { SetEventTypeCodes(std::move(value)); return *this;}
/**
* <p>A list of event type codes.</p>
*/
inline EventTypeFilter& AddEventTypeCodes(const Aws::String& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes.push_back(value); return *this; }
/**
* <p>A list of event type codes.</p>
*/
inline EventTypeFilter& AddEventTypeCodes(Aws::String&& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes.push_back(std::move(value)); return *this; }
/**
* <p>A list of event type codes.</p>
*/
inline EventTypeFilter& AddEventTypeCodes(const char* value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes.push_back(value); return *this; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline const Aws::Vector<Aws::String>& GetServices() const{ return m_services; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline void SetServices(const Aws::Vector<Aws::String>& value) { m_servicesHasBeenSet = true; m_services = value; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline void SetServices(Aws::Vector<Aws::String>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventTypeFilter& WithServices(const Aws::Vector<Aws::String>& value) { SetServices(value); return *this;}
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventTypeFilter& WithServices(Aws::Vector<Aws::String>&& value) { SetServices(std::move(value)); return *this;}
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventTypeFilter& AddServices(const Aws::String& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventTypeFilter& AddServices(Aws::String&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline EventTypeFilter& AddServices(const char* value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline const Aws::Vector<EventTypeCategory>& GetEventTypeCategories() const{ return m_eventTypeCategories; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline bool EventTypeCategoriesHasBeenSet() const { return m_eventTypeCategoriesHasBeenSet; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline void SetEventTypeCategories(const Aws::Vector<EventTypeCategory>& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories = value; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline void SetEventTypeCategories(Aws::Vector<EventTypeCategory>&& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories = std::move(value); }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline EventTypeFilter& WithEventTypeCategories(const Aws::Vector<EventTypeCategory>& value) { SetEventTypeCategories(value); return *this;}
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline EventTypeFilter& WithEventTypeCategories(Aws::Vector<EventTypeCategory>&& value) { SetEventTypeCategories(std::move(value)); return *this;}
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline EventTypeFilter& AddEventTypeCategories(const EventTypeCategory& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories.push_back(value); return *this; }
/**
* <p>A list of event type category codes (<code>issue</code>,
* <code>scheduledChange</code>, or <code>accountNotification</code>).</p>
*/
inline EventTypeFilter& AddEventTypeCategories(EventTypeCategory&& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Aws::String> m_eventTypeCodes;
bool m_eventTypeCodesHasBeenSet;
Aws::Vector<Aws::String> m_services;
bool m_servicesHasBeenSet;
Aws::Vector<EventTypeCategory> m_eventTypeCategories;
bool m_eventTypeCategoriesHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,271 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
* operation cannot find or process a specific entity.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationAffectedEntitiesErrorItem">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API OrganizationAffectedEntitiesErrorItem
{
public:
OrganizationAffectedEntitiesErrorItem();
OrganizationAffectedEntitiesErrorItem(Aws::Utils::Json::JsonView jsonValue);
OrganizationAffectedEntitiesErrorItem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline const Aws::String& GetEventArn() const{ return m_eventArn; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithEventArn(const char* value) { SetEventArn(value); return *this;}
/**
* <p>The name of the error.</p>
*/
inline const Aws::String& GetErrorName() const{ return m_errorName; }
/**
* <p>The name of the error.</p>
*/
inline bool ErrorNameHasBeenSet() const { return m_errorNameHasBeenSet; }
/**
* <p>The name of the error.</p>
*/
inline void SetErrorName(const Aws::String& value) { m_errorNameHasBeenSet = true; m_errorName = value; }
/**
* <p>The name of the error.</p>
*/
inline void SetErrorName(Aws::String&& value) { m_errorNameHasBeenSet = true; m_errorName = std::move(value); }
/**
* <p>The name of the error.</p>
*/
inline void SetErrorName(const char* value) { m_errorNameHasBeenSet = true; m_errorName.assign(value); }
/**
* <p>The name of the error.</p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithErrorName(const Aws::String& value) { SetErrorName(value); return *this;}
/**
* <p>The name of the error.</p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithErrorName(Aws::String&& value) { SetErrorName(std::move(value)); return *this;}
/**
* <p>The name of the error.</p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithErrorName(const char* value) { SetErrorName(value); return *this;}
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline OrganizationAffectedEntitiesErrorItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_awsAccountId;
bool m_awsAccountIdHasBeenSet;
Aws::String m_eventArn;
bool m_eventArnHasBeenSet;
Aws::String m_errorName;
bool m_errorNameHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,544 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/EventTypeCategory.h>
#include <aws/health/model/EventScopeCode.h>
#include <aws/core/utils/DateTime.h>
#include <aws/health/model/EventStatusCode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>Summary information about an event, returned by the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventsForOrganization.html">DescribeEventsForOrganization</a>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationEvent">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API OrganizationEvent
{
public:
OrganizationEvent();
OrganizationEvent(Aws::Utils::Json::JsonView jsonValue);
OrganizationEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline OrganizationEvent& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline OrganizationEvent& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline OrganizationEvent& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The AWS service that is affected by the event. For example, EC2, RDS.</p>
*/
inline const Aws::String& GetService() const{ return m_service; }
/**
* <p>The AWS service that is affected by the event. For example, EC2, RDS.</p>
*/
inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
/**
* <p>The AWS service that is affected by the event. For example, EC2, RDS.</p>
*/
inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
/**
* <p>The AWS service that is affected by the event. For example, EC2, RDS.</p>
*/
inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
/**
* <p>The AWS service that is affected by the event. For example, EC2, RDS.</p>
*/
inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
/**
* <p>The AWS service that is affected by the event. For example, EC2, RDS.</p>
*/
inline OrganizationEvent& WithService(const Aws::String& value) { SetService(value); return *this;}
/**
* <p>The AWS service that is affected by the event. For example, EC2, RDS.</p>
*/
inline OrganizationEvent& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
/**
* <p>The AWS service that is affected by the event. For example, EC2, RDS.</p>
*/
inline OrganizationEvent& WithService(const char* value) { SetService(value); return *this;}
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline const Aws::String& GetEventTypeCode() const{ return m_eventTypeCode; }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline bool EventTypeCodeHasBeenSet() const { return m_eventTypeCodeHasBeenSet; }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline void SetEventTypeCode(const Aws::String& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = value; }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline void SetEventTypeCode(Aws::String&& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = std::move(value); }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline void SetEventTypeCode(const char* value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode.assign(value); }
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline OrganizationEvent& WithEventTypeCode(const Aws::String& value) { SetEventTypeCode(value); return *this;}
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline OrganizationEvent& WithEventTypeCode(Aws::String&& value) { SetEventTypeCode(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event type. The format is
* <code>AWS_SERVICE_DESCRIPTION</code>. For example,
* <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>.</p>
*/
inline OrganizationEvent& WithEventTypeCode(const char* value) { SetEventTypeCode(value); return *this;}
/**
* <p>The category of the event type.</p>
*/
inline const EventTypeCategory& GetEventTypeCategory() const{ return m_eventTypeCategory; }
/**
* <p>The category of the event type.</p>
*/
inline bool EventTypeCategoryHasBeenSet() const { return m_eventTypeCategoryHasBeenSet; }
/**
* <p>The category of the event type.</p>
*/
inline void SetEventTypeCategory(const EventTypeCategory& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = value; }
/**
* <p>The category of the event type.</p>
*/
inline void SetEventTypeCategory(EventTypeCategory&& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = std::move(value); }
/**
* <p>The category of the event type.</p>
*/
inline OrganizationEvent& WithEventTypeCategory(const EventTypeCategory& value) { SetEventTypeCategory(value); return *this;}
/**
* <p>The category of the event type.</p>
*/
inline OrganizationEvent& WithEventTypeCategory(EventTypeCategory&& value) { SetEventTypeCategory(std::move(value)); return *this;}
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline const EventScopeCode& GetEventScopeCode() const{ return m_eventScopeCode; }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline bool EventScopeCodeHasBeenSet() const { return m_eventScopeCodeHasBeenSet; }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline void SetEventScopeCode(const EventScopeCode& value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = value; }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline void SetEventScopeCode(EventScopeCode&& value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = std::move(value); }
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline OrganizationEvent& WithEventScopeCode(const EventScopeCode& value) { SetEventScopeCode(value); return *this;}
/**
* <p>This parameter specifies if the AWS Health event is a public AWS service
* event or an account-specific event.</p> <ul> <li> <p>If the
* <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the
* <code>affectedAccounts</code> value is always empty.</p> </li> <li> <p>If the
* <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the
* <code>affectedAccounts</code> value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.</p> </li> <li> <p>If the <code>eventScopeCode</code>
* value is <code>NONE</code>, then the <code>eventArn</code> that you specified in
* the request is invalid or doesn't exist.</p> </li> </ul>
*/
inline OrganizationEvent& WithEventScopeCode(EventScopeCode&& value) { SetEventScopeCode(std::move(value)); return *this;}
/**
* <p>The AWS Region name of the event.</p>
*/
inline const Aws::String& GetRegion() const{ return m_region; }
/**
* <p>The AWS Region name of the event.</p>
*/
inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
/**
* <p>The AWS Region name of the event.</p>
*/
inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
/**
* <p>The AWS Region name of the event.</p>
*/
inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
/**
* <p>The AWS Region name of the event.</p>
*/
inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
/**
* <p>The AWS Region name of the event.</p>
*/
inline OrganizationEvent& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
/**
* <p>The AWS Region name of the event.</p>
*/
inline OrganizationEvent& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
/**
* <p>The AWS Region name of the event.</p>
*/
inline OrganizationEvent& WithRegion(const char* value) { SetRegion(value); return *this;}
/**
* <p>The date and time that the event began.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The date and time that the event began.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The date and time that the event began.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The date and time that the event began.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The date and time that the event began.</p>
*/
inline OrganizationEvent& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The date and time that the event began.</p>
*/
inline OrganizationEvent& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The date and time that the event ended.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The date and time that the event ended.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The date and time that the event ended.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The date and time that the event ended.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The date and time that the event ended.</p>
*/
inline OrganizationEvent& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The date and time that the event ended.</p>
*/
inline OrganizationEvent& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline OrganizationEvent& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
/**
* <p>The most recent date and time that the event was updated.</p>
*/
inline OrganizationEvent& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline const EventStatusCode& GetStatusCode() const{ return m_statusCode; }
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline void SetStatusCode(const EventStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline void SetStatusCode(EventStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline OrganizationEvent& WithStatusCode(const EventStatusCode& value) { SetStatusCode(value); return *this;}
/**
* <p>The most recent status of the event. Possible values are <code>open</code>,
* <code>closed</code>, and <code>upcoming</code>.</p>
*/
inline OrganizationEvent& WithStatusCode(EventStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_service;
bool m_serviceHasBeenSet;
Aws::String m_eventTypeCode;
bool m_eventTypeCodeHasBeenSet;
EventTypeCategory m_eventTypeCategory;
bool m_eventTypeCategoryHasBeenSet;
EventScopeCode m_eventScopeCode;
bool m_eventScopeCodeHasBeenSet;
Aws::String m_region;
bool m_regionHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedTime;
bool m_lastUpdatedTimeHasBeenSet;
EventStatusCode m_statusCode;
bool m_statusCodeHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,215 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/Event.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>Detailed information about an event. A combination of an <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>
* object, an <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventDescription.html">EventDescription</a>
* object, and additional metadata about the event. Returned by the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationEventDetails">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API OrganizationEventDetails
{
public:
OrganizationEventDetails();
OrganizationEventDetails(Aws::Utils::Json::JsonView jsonValue);
OrganizationEventDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline OrganizationEventDetails& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline OrganizationEventDetails& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
/**
* <p>The 12-digit AWS account numbers that contains the affected entities.</p>
*/
inline OrganizationEventDetails& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
inline const Event& GetEvent() const{ return m_event; }
inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
inline void SetEvent(const Event& value) { m_eventHasBeenSet = true; m_event = value; }
inline void SetEvent(Event&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
inline OrganizationEventDetails& WithEvent(const Event& value) { SetEvent(value); return *this;}
inline OrganizationEventDetails& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;}
inline const Aws::String& GetEventDescription() const{ return m_eventDescription; }
inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::move(value); }
inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); }
inline OrganizationEventDetails& WithEventDescription(const Aws::String& value) { SetEventDescription(value); return *this;}
inline OrganizationEventDetails& WithEventDescription(Aws::String&& value) { SetEventDescription(std::move(value)); return *this;}
inline OrganizationEventDetails& WithEventDescription(const char* value) { SetEventDescription(value); return *this;}
/**
* <p>Additional metadata about the event.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetEventMetadata() const{ return m_eventMetadata; }
/**
* <p>Additional metadata about the event.</p>
*/
inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
/**
* <p>Additional metadata about the event.</p>
*/
inline void SetEventMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = value; }
/**
* <p>Additional metadata about the event.</p>
*/
inline void SetEventMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = std::move(value); }
/**
* <p>Additional metadata about the event.</p>
*/
inline OrganizationEventDetails& WithEventMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetEventMetadata(value); return *this;}
/**
* <p>Additional metadata about the event.</p>
*/
inline OrganizationEventDetails& WithEventMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetEventMetadata(std::move(value)); return *this;}
/**
* <p>Additional metadata about the event.</p>
*/
inline OrganizationEventDetails& AddEventMetadata(const Aws::String& key, const Aws::String& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, value); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline OrganizationEventDetails& AddEventMetadata(Aws::String&& key, const Aws::String& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline OrganizationEventDetails& AddEventMetadata(const Aws::String& key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline OrganizationEventDetails& AddEventMetadata(Aws::String&& key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline OrganizationEventDetails& AddEventMetadata(const char* key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline OrganizationEventDetails& AddEventMetadata(Aws::String&& key, const char* value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>Additional metadata about the event.</p>
*/
inline OrganizationEventDetails& AddEventMetadata(const char* key, const char* value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, value); return *this; }
private:
Aws::String m_awsAccountId;
bool m_awsAccountIdHasBeenSet;
Event m_event;
bool m_eventHasBeenSet;
Aws::String m_eventDescription;
bool m_eventDescriptionHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_eventMetadata;
bool m_eventMetadataHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,270 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation cannot find a specified event.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationEventDetailsErrorItem">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API OrganizationEventDetailsErrorItem
{
public:
OrganizationEventDetailsErrorItem();
OrganizationEventDetailsErrorItem(Aws::Utils::Json::JsonView jsonValue);
OrganizationEventDetailsErrorItem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation cannot find a specified event.</p>
*/
inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation cannot find a specified event.</p>
*/
inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation cannot find a specified event.</p>
*/
inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation cannot find a specified event.</p>
*/
inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation cannot find a specified event.</p>
*/
inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation cannot find a specified event.</p>
*/
inline OrganizationEventDetailsErrorItem& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation cannot find a specified event.</p>
*/
inline OrganizationEventDetailsErrorItem& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
/**
* <p>Error information returned when a <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
* operation cannot find a specified event.</p>
*/
inline OrganizationEventDetailsErrorItem& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline const Aws::String& GetEventArn() const{ return m_eventArn; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline OrganizationEventDetailsErrorItem& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline OrganizationEventDetailsErrorItem& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
/**
* <p>The unique identifier for the event. Format:
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
* </code>. Example: <code>Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
* </p>
*/
inline OrganizationEventDetailsErrorItem& WithEventArn(const char* value) { SetEventArn(value); return *this;}
/**
* <p>The name of the error.</p>
*/
inline const Aws::String& GetErrorName() const{ return m_errorName; }
/**
* <p>The name of the error.</p>
*/
inline bool ErrorNameHasBeenSet() const { return m_errorNameHasBeenSet; }
/**
* <p>The name of the error.</p>
*/
inline void SetErrorName(const Aws::String& value) { m_errorNameHasBeenSet = true; m_errorName = value; }
/**
* <p>The name of the error.</p>
*/
inline void SetErrorName(Aws::String&& value) { m_errorNameHasBeenSet = true; m_errorName = std::move(value); }
/**
* <p>The name of the error.</p>
*/
inline void SetErrorName(const char* value) { m_errorNameHasBeenSet = true; m_errorName.assign(value); }
/**
* <p>The name of the error.</p>
*/
inline OrganizationEventDetailsErrorItem& WithErrorName(const Aws::String& value) { SetErrorName(value); return *this;}
/**
* <p>The name of the error.</p>
*/
inline OrganizationEventDetailsErrorItem& WithErrorName(Aws::String&& value) { SetErrorName(std::move(value)); return *this;}
/**
* <p>The name of the error.</p>
*/
inline OrganizationEventDetailsErrorItem& WithErrorName(const char* value) { SetErrorName(value); return *this;}
/**
* <p>A message that describes the error.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>A message that describes the error.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>A message that describes the error.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>A message that describes the error.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>A message that describes the error.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>A message that describes the error.</p>
*/
inline OrganizationEventDetailsErrorItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>A message that describes the error.</p>
*/
inline OrganizationEventDetailsErrorItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>A message that describes the error.</p>
*/
inline OrganizationEventDetailsErrorItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_awsAccountId;
bool m_awsAccountIdHasBeenSet;
Aws::String m_eventArn;
bool m_eventArnHasBeenSet;
Aws::String m_errorName;
bool m_errorNameHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws

View File

@@ -0,0 +1,551 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/health/Health_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/health/model/DateTimeRange.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/health/model/EventTypeCategory.h>
#include <aws/health/model/EventStatusCode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Health
{
namespace Model
{
/**
* <p>The values to filter results from the <a
* href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventsForOrganization.html">DescribeEventsForOrganization</a>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationEventFilter">AWS
* API Reference</a></p>
*/
class AWS_HEALTH_API OrganizationEventFilter
{
public:
OrganizationEventFilter();
OrganizationEventFilter(Aws::Utils::Json::JsonView jsonValue);
OrganizationEventFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline const Aws::Vector<Aws::String>& GetEventTypeCodes() const{ return m_eventTypeCodes; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline bool EventTypeCodesHasBeenSet() const { return m_eventTypeCodesHasBeenSet; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline void SetEventTypeCodes(const Aws::Vector<Aws::String>& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes = value; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline void SetEventTypeCodes(Aws::Vector<Aws::String>&& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes = std::move(value); }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline OrganizationEventFilter& WithEventTypeCodes(const Aws::Vector<Aws::String>& value) { SetEventTypeCodes(value); return *this;}
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline OrganizationEventFilter& WithEventTypeCodes(Aws::Vector<Aws::String>&& value) { SetEventTypeCodes(std::move(value)); return *this;}
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline OrganizationEventFilter& AddEventTypeCodes(const Aws::String& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes.push_back(value); return *this; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline OrganizationEventFilter& AddEventTypeCodes(Aws::String&& value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes.push_back(std::move(value)); return *this; }
/**
* <p>A list of unique identifiers for event types. For example,
* <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code>
* </p>
*/
inline OrganizationEventFilter& AddEventTypeCodes(const char* value) { m_eventTypeCodesHasBeenSet = true; m_eventTypeCodes.push_back(value); return *this; }
/**
* <p>A list of 12-digit AWS account numbers that contains the affected
* entities.</p>
*/
inline const Aws::Vector<Aws::String>& GetAwsAccountIds() const{ return m_awsAccountIds; }
/**
* <p>A list of 12-digit AWS account numbers that contains the affected
* entities.</p>
*/
inline bool AwsAccountIdsHasBeenSet() const { return m_awsAccountIdsHasBeenSet; }
/**
* <p>A list of 12-digit AWS account numbers that contains the affected
* entities.</p>
*/
inline void SetAwsAccountIds(const Aws::Vector<Aws::String>& value) { m_awsAccountIdsHasBeenSet = true; m_awsAccountIds = value; }
/**
* <p>A list of 12-digit AWS account numbers that contains the affected
* entities.</p>
*/
inline void SetAwsAccountIds(Aws::Vector<Aws::String>&& value) { m_awsAccountIdsHasBeenSet = true; m_awsAccountIds = std::move(value); }
/**
* <p>A list of 12-digit AWS account numbers that contains the affected
* entities.</p>
*/
inline OrganizationEventFilter& WithAwsAccountIds(const Aws::Vector<Aws::String>& value) { SetAwsAccountIds(value); return *this;}
/**
* <p>A list of 12-digit AWS account numbers that contains the affected
* entities.</p>
*/
inline OrganizationEventFilter& WithAwsAccountIds(Aws::Vector<Aws::String>&& value) { SetAwsAccountIds(std::move(value)); return *this;}
/**
* <p>A list of 12-digit AWS account numbers that contains the affected
* entities.</p>
*/
inline OrganizationEventFilter& AddAwsAccountIds(const Aws::String& value) { m_awsAccountIdsHasBeenSet = true; m_awsAccountIds.push_back(value); return *this; }
/**
* <p>A list of 12-digit AWS account numbers that contains the affected
* entities.</p>
*/
inline OrganizationEventFilter& AddAwsAccountIds(Aws::String&& value) { m_awsAccountIdsHasBeenSet = true; m_awsAccountIds.push_back(std::move(value)); return *this; }
/**
* <p>A list of 12-digit AWS account numbers that contains the affected
* entities.</p>
*/
inline OrganizationEventFilter& AddAwsAccountIds(const char* value) { m_awsAccountIdsHasBeenSet = true; m_awsAccountIds.push_back(value); return *this; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline const Aws::Vector<Aws::String>& GetServices() const{ return m_services; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline void SetServices(const Aws::Vector<Aws::String>& value) { m_servicesHasBeenSet = true; m_services = value; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline void SetServices(Aws::Vector<Aws::String>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline OrganizationEventFilter& WithServices(const Aws::Vector<Aws::String>& value) { SetServices(value); return *this;}
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline OrganizationEventFilter& WithServices(Aws::Vector<Aws::String>&& value) { SetServices(std::move(value)); return *this;}
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline OrganizationEventFilter& AddServices(const Aws::String& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline OrganizationEventFilter& AddServices(Aws::String&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
/**
* <p>The AWS services associated with the event. For example, <code>EC2</code>,
* <code>RDS</code>.</p>
*/
inline OrganizationEventFilter& AddServices(const char* value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
/**
* <p>A list of AWS Regions.</p>
*/
inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
/**
* <p>A list of AWS Regions.</p>
*/
inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
/**
* <p>A list of AWS Regions.</p>
*/
inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
/**
* <p>A list of AWS Regions.</p>
*/
inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
/**
* <p>A list of AWS Regions.</p>
*/
inline OrganizationEventFilter& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
/**
* <p>A list of AWS Regions.</p>
*/
inline OrganizationEventFilter& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
/**
* <p>A list of AWS Regions.</p>
*/
inline OrganizationEventFilter& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
/**
* <p>A list of AWS Regions.</p>
*/
inline OrganizationEventFilter& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
/**
* <p>A list of AWS Regions.</p>
*/
inline OrganizationEventFilter& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
inline const DateTimeRange& GetStartTime() const{ return m_startTime; }
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
inline void SetStartTime(const DateTimeRange& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
inline void SetStartTime(DateTimeRange&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
inline OrganizationEventFilter& WithStartTime(const DateTimeRange& value) { SetStartTime(value); return *this;}
inline OrganizationEventFilter& WithStartTime(DateTimeRange&& value) { SetStartTime(std::move(value)); return *this;}
inline const DateTimeRange& GetEndTime() const{ return m_endTime; }
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
inline void SetEndTime(const DateTimeRange& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
inline void SetEndTime(DateTimeRange&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
inline OrganizationEventFilter& WithEndTime(const DateTimeRange& value) { SetEndTime(value); return *this;}
inline OrganizationEventFilter& WithEndTime(DateTimeRange&& value) { SetEndTime(std::move(value)); return *this;}
inline const DateTimeRange& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
inline void SetLastUpdatedTime(const DateTimeRange& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
inline void SetLastUpdatedTime(DateTimeRange&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
inline OrganizationEventFilter& WithLastUpdatedTime(const DateTimeRange& value) { SetLastUpdatedTime(value); return *this;}
inline OrganizationEventFilter& WithLastUpdatedTime(DateTimeRange&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline const Aws::Vector<Aws::String>& GetEntityArns() const{ return m_entityArns; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline bool EntityArnsHasBeenSet() const { return m_entityArnsHasBeenSet; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline void SetEntityArns(const Aws::Vector<Aws::String>& value) { m_entityArnsHasBeenSet = true; m_entityArns = value; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline void SetEntityArns(Aws::Vector<Aws::String>&& value) { m_entityArnsHasBeenSet = true; m_entityArns = std::move(value); }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline OrganizationEventFilter& WithEntityArns(const Aws::Vector<Aws::String>& value) { SetEntityArns(value); return *this;}
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline OrganizationEventFilter& WithEntityArns(Aws::Vector<Aws::String>&& value) { SetEntityArns(std::move(value)); return *this;}
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline OrganizationEventFilter& AddEntityArns(const Aws::String& value) { m_entityArnsHasBeenSet = true; m_entityArns.push_back(value); return *this; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline OrganizationEventFilter& AddEntityArns(Aws::String&& value) { m_entityArnsHasBeenSet = true; m_entityArns.push_back(std::move(value)); return *this; }
/**
* <p>A list of entity ARNs (unique identifiers).</p>
*/
inline OrganizationEventFilter& AddEntityArns(const char* value) { m_entityArnsHasBeenSet = true; m_entityArns.push_back(value); return *this; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS
* volumes (vol-426ab23e).</p>
*/
inline const Aws::Vector<Aws::String>& GetEntityValues() const{ return m_entityValues; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS
* volumes (vol-426ab23e).</p>
*/
inline bool EntityValuesHasBeenSet() const { return m_entityValuesHasBeenSet; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS
* volumes (vol-426ab23e).</p>
*/
inline void SetEntityValues(const Aws::Vector<Aws::String>& value) { m_entityValuesHasBeenSet = true; m_entityValues = value; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS
* volumes (vol-426ab23e).</p>
*/
inline void SetEntityValues(Aws::Vector<Aws::String>&& value) { m_entityValuesHasBeenSet = true; m_entityValues = std::move(value); }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS
* volumes (vol-426ab23e).</p>
*/
inline OrganizationEventFilter& WithEntityValues(const Aws::Vector<Aws::String>& value) { SetEntityValues(value); return *this;}
/**
* <p>A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS
* volumes (vol-426ab23e).</p>
*/
inline OrganizationEventFilter& WithEntityValues(Aws::Vector<Aws::String>&& value) { SetEntityValues(std::move(value)); return *this;}
/**
* <p>A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS
* volumes (vol-426ab23e).</p>
*/
inline OrganizationEventFilter& AddEntityValues(const Aws::String& value) { m_entityValuesHasBeenSet = true; m_entityValues.push_back(value); return *this; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS
* volumes (vol-426ab23e).</p>
*/
inline OrganizationEventFilter& AddEntityValues(Aws::String&& value) { m_entityValuesHasBeenSet = true; m_entityValues.push_back(std::move(value)); return *this; }
/**
* <p>A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS
* volumes (vol-426ab23e).</p>
*/
inline OrganizationEventFilter& AddEntityValues(const char* value) { m_entityValuesHasBeenSet = true; m_entityValues.push_back(value); return *this; }
/**
* <p>A list of event type category codes (issue, scheduledChange, or
* accountNotification).</p>
*/
inline const Aws::Vector<EventTypeCategory>& GetEventTypeCategories() const{ return m_eventTypeCategories; }
/**
* <p>A list of event type category codes (issue, scheduledChange, or
* accountNotification).</p>
*/
inline bool EventTypeCategoriesHasBeenSet() const { return m_eventTypeCategoriesHasBeenSet; }
/**
* <p>A list of event type category codes (issue, scheduledChange, or
* accountNotification).</p>
*/
inline void SetEventTypeCategories(const Aws::Vector<EventTypeCategory>& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories = value; }
/**
* <p>A list of event type category codes (issue, scheduledChange, or
* accountNotification).</p>
*/
inline void SetEventTypeCategories(Aws::Vector<EventTypeCategory>&& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories = std::move(value); }
/**
* <p>A list of event type category codes (issue, scheduledChange, or
* accountNotification).</p>
*/
inline OrganizationEventFilter& WithEventTypeCategories(const Aws::Vector<EventTypeCategory>& value) { SetEventTypeCategories(value); return *this;}
/**
* <p>A list of event type category codes (issue, scheduledChange, or
* accountNotification).</p>
*/
inline OrganizationEventFilter& WithEventTypeCategories(Aws::Vector<EventTypeCategory>&& value) { SetEventTypeCategories(std::move(value)); return *this;}
/**
* <p>A list of event type category codes (issue, scheduledChange, or
* accountNotification).</p>
*/
inline OrganizationEventFilter& AddEventTypeCategories(const EventTypeCategory& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories.push_back(value); return *this; }
/**
* <p>A list of event type category codes (issue, scheduledChange, or
* accountNotification).</p>
*/
inline OrganizationEventFilter& AddEventTypeCategories(EventTypeCategory&& value) { m_eventTypeCategoriesHasBeenSet = true; m_eventTypeCategories.push_back(std::move(value)); return *this; }
/**
* <p>A list of event status codes.</p>
*/
inline const Aws::Vector<EventStatusCode>& GetEventStatusCodes() const{ return m_eventStatusCodes; }
/**
* <p>A list of event status codes.</p>
*/
inline bool EventStatusCodesHasBeenSet() const { return m_eventStatusCodesHasBeenSet; }
/**
* <p>A list of event status codes.</p>
*/
inline void SetEventStatusCodes(const Aws::Vector<EventStatusCode>& value) { m_eventStatusCodesHasBeenSet = true; m_eventStatusCodes = value; }
/**
* <p>A list of event status codes.</p>
*/
inline void SetEventStatusCodes(Aws::Vector<EventStatusCode>&& value) { m_eventStatusCodesHasBeenSet = true; m_eventStatusCodes = std::move(value); }
/**
* <p>A list of event status codes.</p>
*/
inline OrganizationEventFilter& WithEventStatusCodes(const Aws::Vector<EventStatusCode>& value) { SetEventStatusCodes(value); return *this;}
/**
* <p>A list of event status codes.</p>
*/
inline OrganizationEventFilter& WithEventStatusCodes(Aws::Vector<EventStatusCode>&& value) { SetEventStatusCodes(std::move(value)); return *this;}
/**
* <p>A list of event status codes.</p>
*/
inline OrganizationEventFilter& AddEventStatusCodes(const EventStatusCode& value) { m_eventStatusCodesHasBeenSet = true; m_eventStatusCodes.push_back(value); return *this; }
/**
* <p>A list of event status codes.</p>
*/
inline OrganizationEventFilter& AddEventStatusCodes(EventStatusCode&& value) { m_eventStatusCodesHasBeenSet = true; m_eventStatusCodes.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Aws::String> m_eventTypeCodes;
bool m_eventTypeCodesHasBeenSet;
Aws::Vector<Aws::String> m_awsAccountIds;
bool m_awsAccountIdsHasBeenSet;
Aws::Vector<Aws::String> m_services;
bool m_servicesHasBeenSet;
Aws::Vector<Aws::String> m_regions;
bool m_regionsHasBeenSet;
DateTimeRange m_startTime;
bool m_startTimeHasBeenSet;
DateTimeRange m_endTime;
bool m_endTimeHasBeenSet;
DateTimeRange m_lastUpdatedTime;
bool m_lastUpdatedTimeHasBeenSet;
Aws::Vector<Aws::String> m_entityArns;
bool m_entityArnsHasBeenSet;
Aws::Vector<Aws::String> m_entityValues;
bool m_entityValuesHasBeenSet;
Aws::Vector<EventTypeCategory> m_eventTypeCategories;
bool m_eventTypeCategoriesHasBeenSet;
Aws::Vector<EventStatusCode> m_eventStatusCodes;
bool m_eventStatusCodesHasBeenSet;
};
} // namespace Model
} // namespace Health
} // namespace Aws