/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 DescribeAffectedEntitiesForOrganizationResult { public: AWS_HEALTH_API DescribeAffectedEntitiesForOrganizationResult(); AWS_HEALTH_API DescribeAffectedEntitiesForOrganizationResult(const Aws::AmazonWebServiceResult& result); AWS_HEALTH_API DescribeAffectedEntitiesForOrganizationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A JSON set of elements including the awsAccountId and its * entityArn, entityValue and its entityArn, * lastUpdatedTime, and statusCode.

*/ inline const Aws::Vector& GetEntities() const{ return m_entities; } /** *

A JSON set of elements including the awsAccountId and its * entityArn, entityValue and its entityArn, * lastUpdatedTime, and statusCode.

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

A JSON set of elements including the awsAccountId and its * entityArn, entityValue and its entityArn, * lastUpdatedTime, and statusCode.

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

A JSON set of elements including the awsAccountId and its * entityArn, entityValue and its entityArn, * lastUpdatedTime, and statusCode.

*/ inline DescribeAffectedEntitiesForOrganizationResult& WithEntities(const Aws::Vector& value) { SetEntities(value); return *this;} /** *

A JSON set of elements including the awsAccountId and its * entityArn, entityValue and its entityArn, * lastUpdatedTime, and statusCode.

*/ inline DescribeAffectedEntitiesForOrganizationResult& WithEntities(Aws::Vector&& value) { SetEntities(std::move(value)); return *this;} /** *

A JSON set of elements including the awsAccountId and its * entityArn, entityValue and its entityArn, * lastUpdatedTime, and statusCode.

*/ inline DescribeAffectedEntitiesForOrganizationResult& AddEntities(const AffectedEntity& value) { m_entities.push_back(value); return *this; } /** *

A JSON set of elements including the awsAccountId and its * entityArn, entityValue and its entityArn, * lastUpdatedTime, and statusCode.

*/ inline DescribeAffectedEntitiesForOrganizationResult& AddEntities(AffectedEntity&& value) { m_entities.push_back(std::move(value)); return *this; } /** *

A JSON set of elements of the failed response, including the * awsAccountId, errorMessage, errorName, * and eventArn.

*/ inline const Aws::Vector& GetFailedSet() const{ return m_failedSet; } /** *

A JSON set of elements of the failed response, including the * awsAccountId, errorMessage, errorName, * and eventArn.

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

A JSON set of elements of the failed response, including the * awsAccountId, errorMessage, errorName, * and eventArn.

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

A JSON set of elements of the failed response, including the * awsAccountId, errorMessage, errorName, * and eventArn.

*/ inline DescribeAffectedEntitiesForOrganizationResult& WithFailedSet(const Aws::Vector& value) { SetFailedSet(value); return *this;} /** *

A JSON set of elements of the failed response, including the * awsAccountId, errorMessage, errorName, * and eventArn.

*/ inline DescribeAffectedEntitiesForOrganizationResult& WithFailedSet(Aws::Vector&& value) { SetFailedSet(std::move(value)); return *this;} /** *

A JSON set of elements of the failed response, including the * awsAccountId, errorMessage, errorName, * and eventArn.

*/ inline DescribeAffectedEntitiesForOrganizationResult& AddFailedSet(const OrganizationAffectedEntitiesErrorItem& value) { m_failedSet.push_back(value); return *this; } /** *

A JSON set of elements of the failed response, including the * awsAccountId, errorMessage, errorName, * and eventArn.

*/ inline DescribeAffectedEntitiesForOrganizationResult& AddFailedSet(OrganizationAffectedEntitiesErrorItem&& value) { m_failedSet.push_back(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 DescribeAffectedEntitiesForOrganizationResult& 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 DescribeAffectedEntitiesForOrganizationResult& 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 DescribeAffectedEntitiesForOrganizationResult& 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 DescribeAffectedEntitiesForOrganizationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAffectedEntitiesForOrganizationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAffectedEntitiesForOrganizationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_entities; Aws::Vector m_failedSet; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Health } // namespace Aws