/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Health { namespace Model { class DescribeAffectedAccountsForOrganizationResult { public: AWS_HEALTH_API DescribeAffectedAccountsForOrganizationResult(); AWS_HEALTH_API DescribeAffectedAccountsForOrganizationResult(const Aws::AmazonWebServiceResult& result); AWS_HEALTH_API DescribeAffectedAccountsForOrganizationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A JSON set of elements of the affected accounts.

*/ inline const Aws::Vector& GetAffectedAccounts() const{ return m_affectedAccounts; } /** *

A JSON set of elements of the affected accounts.

*/ inline void SetAffectedAccounts(const Aws::Vector& value) { m_affectedAccounts = value; } /** *

A JSON set of elements of the affected accounts.

*/ inline void SetAffectedAccounts(Aws::Vector&& value) { m_affectedAccounts = std::move(value); } /** *

A JSON set of elements of the affected accounts.

*/ inline DescribeAffectedAccountsForOrganizationResult& WithAffectedAccounts(const Aws::Vector& value) { SetAffectedAccounts(value); return *this;} /** *

A JSON set of elements of the affected accounts.

*/ inline DescribeAffectedAccountsForOrganizationResult& WithAffectedAccounts(Aws::Vector&& value) { SetAffectedAccounts(std::move(value)); return *this;} /** *

A JSON set of elements of the affected accounts.

*/ inline DescribeAffectedAccountsForOrganizationResult& AddAffectedAccounts(const Aws::String& value) { m_affectedAccounts.push_back(value); return *this; } /** *

A JSON set of elements of the affected accounts.

*/ inline DescribeAffectedAccountsForOrganizationResult& AddAffectedAccounts(Aws::String&& value) { m_affectedAccounts.push_back(std::move(value)); return *this; } /** *

A JSON set of elements of the affected accounts.

*/ inline DescribeAffectedAccountsForOrganizationResult& AddAffectedAccounts(const char* value) { m_affectedAccounts.push_back(value); return *this; } /** *

This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.

  • If the * eventScopeCode value is PUBLIC, then the * affectedAccounts value is always empty.

  • If the * eventScopeCode value is ACCOUNT_SPECIFIC, then the * affectedAccounts value lists the affected Amazon Web Services * accounts in your organization. For example, if an event affects a service such * as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that * use that service, those account IDs appear in the response.

  • If * the eventScopeCode value is NONE, then the * eventArn that you specified in the request is invalid or doesn't * exist.

*/ inline const EventScopeCode& GetEventScopeCode() const{ return m_eventScopeCode; } /** *

This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.

  • If the * eventScopeCode value is PUBLIC, then the * affectedAccounts value is always empty.

  • If the * eventScopeCode value is ACCOUNT_SPECIFIC, then the * affectedAccounts value lists the affected Amazon Web Services * accounts in your organization. For example, if an event affects a service such * as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that * use that service, those account IDs appear in the response.

  • If * the eventScopeCode value is NONE, then the * eventArn that you specified in the request is invalid or doesn't * exist.

*/ inline void SetEventScopeCode(const EventScopeCode& value) { m_eventScopeCode = value; } /** *

This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.

  • If the * eventScopeCode value is PUBLIC, then the * affectedAccounts value is always empty.

  • If the * eventScopeCode value is ACCOUNT_SPECIFIC, then the * affectedAccounts value lists the affected Amazon Web Services * accounts in your organization. For example, if an event affects a service such * as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that * use that service, those account IDs appear in the response.

  • If * the eventScopeCode value is NONE, then the * eventArn that you specified in the request is invalid or doesn't * exist.

*/ inline void SetEventScopeCode(EventScopeCode&& value) { m_eventScopeCode = std::move(value); } /** *

This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.

  • If the * eventScopeCode value is PUBLIC, then the * affectedAccounts value is always empty.

  • If the * eventScopeCode value is ACCOUNT_SPECIFIC, then the * affectedAccounts value lists the affected Amazon Web Services * accounts in your organization. For example, if an event affects a service such * as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that * use that service, those account IDs appear in the response.

  • If * the eventScopeCode value is NONE, then the * eventArn that you specified in the request is invalid or doesn't * exist.

*/ inline DescribeAffectedAccountsForOrganizationResult& WithEventScopeCode(const EventScopeCode& value) { SetEventScopeCode(value); return *this;} /** *

This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.

  • If the * eventScopeCode value is PUBLIC, then the * affectedAccounts value is always empty.

  • If the * eventScopeCode value is ACCOUNT_SPECIFIC, then the * affectedAccounts value lists the affected Amazon Web Services * accounts in your organization. For example, if an event affects a service such * as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that * use that service, those account IDs appear in the response.

  • If * the eventScopeCode value is NONE, then the * eventArn that you specified in the request is invalid or doesn't * exist.

*/ inline DescribeAffectedAccountsForOrganizationResult& WithEventScopeCode(EventScopeCode&& value) { SetEventScopeCode(std::move(value)); return *this;} /** *

If the results of a search are large, only a portion of the results are * returned, and a nextToken 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.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the results of a search are large, only a portion of the results are * returned, and a nextToken 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.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

If the results of a search are large, only a portion of the results are * returned, and a nextToken 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.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

If the results of a search are large, only a portion of the results are * returned, and a nextToken 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.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If the results of a search are large, only a portion of the results are * returned, and a nextToken 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.

*/ inline DescribeAffectedAccountsForOrganizationResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If the results of a search are large, only a portion of the results are * returned, and a nextToken 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.

*/ inline DescribeAffectedAccountsForOrganizationResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If the results of a search are large, only a portion of the results are * returned, and a nextToken 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.

*/ inline DescribeAffectedAccountsForOrganizationResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeAffectedAccountsForOrganizationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAffectedAccountsForOrganizationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAffectedAccountsForOrganizationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_affectedAccounts; EventScopeCode m_eventScopeCode; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Health } // namespace Aws