/** * 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 ResourceGroups { namespace Model { class ListGroupResourcesResult { public: AWS_RESOURCEGROUPS_API ListGroupResourcesResult(); AWS_RESOURCEGROUPS_API ListGroupResourcesResult(const Aws::AmazonWebServiceResult& result); AWS_RESOURCEGROUPS_API ListGroupResourcesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of resources from which you can determine each resource's identity, * type, and group membership status.

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

An array of resources from which you can determine each resource's identity, * type, and group membership status.

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

An array of resources from which you can determine each resource's identity, * type, and group membership status.

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

An array of resources from which you can determine each resource's identity, * type, and group membership status.

*/ inline ListGroupResourcesResult& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

An array of resources from which you can determine each resource's identity, * type, and group membership status.

*/ inline ListGroupResourcesResult& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

An array of resources from which you can determine each resource's identity, * type, and group membership status.

*/ inline ListGroupResourcesResult& AddResources(const ListGroupResourcesItem& value) { m_resources.push_back(value); return *this; } /** *

An array of resources from which you can determine each resource's identity, * type, and group membership status.

*/ inline ListGroupResourcesResult& AddResources(ListGroupResourcesItem&& value) { m_resources.push_back(std::move(value)); return *this; } /** *

If present, indicates that more output is available than is included in the * current response. Use this value in the NextToken request parameter * in a subsequent call to the operation to get the next part of the output. You * should repeat this until the NextToken response element comes back * as null.

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

If present, indicates that more output is available than is included in the * current response. Use this value in the NextToken request parameter * in a subsequent call to the operation to get the next part of the output. You * should repeat this until the NextToken response element comes back * as null.

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

If present, indicates that more output is available than is included in the * current response. Use this value in the NextToken request parameter * in a subsequent call to the operation to get the next part of the output. You * should repeat this until the NextToken response element comes back * as null.

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

If present, indicates that more output is available than is included in the * current response. Use this value in the NextToken request parameter * in a subsequent call to the operation to get the next part of the output. You * should repeat this until the NextToken response element comes back * as null.

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

If present, indicates that more output is available than is included in the * current response. Use this value in the NextToken request parameter * in a subsequent call to the operation to get the next part of the output. You * should repeat this until the NextToken response element comes back * as null.

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

If present, indicates that more output is available than is included in the * current response. Use this value in the NextToken request parameter * in a subsequent call to the operation to get the next part of the output. You * should repeat this until the NextToken response element comes back * as null.

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

If present, indicates that more output is available than is included in the * current response. Use this value in the NextToken request parameter * in a subsequent call to the operation to get the next part of the output. You * should repeat this until the NextToken response element comes back * as null.

*/ inline ListGroupResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

A list of QueryError objects. Each error is an object that * contains ErrorCode and Message structures. Possible * values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE * and CLOUDFORMATION_STACK_NOT_EXISTING.

*/ inline const Aws::Vector& GetQueryErrors() const{ return m_queryErrors; } /** *

A list of QueryError objects. Each error is an object that * contains ErrorCode and Message structures. Possible * values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE * and CLOUDFORMATION_STACK_NOT_EXISTING.

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

A list of QueryError objects. Each error is an object that * contains ErrorCode and Message structures. Possible * values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE * and CLOUDFORMATION_STACK_NOT_EXISTING.

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

A list of QueryError objects. Each error is an object that * contains ErrorCode and Message structures. Possible * values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE * and CLOUDFORMATION_STACK_NOT_EXISTING.

*/ inline ListGroupResourcesResult& WithQueryErrors(const Aws::Vector& value) { SetQueryErrors(value); return *this;} /** *

A list of QueryError objects. Each error is an object that * contains ErrorCode and Message structures. Possible * values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE * and CLOUDFORMATION_STACK_NOT_EXISTING.

*/ inline ListGroupResourcesResult& WithQueryErrors(Aws::Vector&& value) { SetQueryErrors(std::move(value)); return *this;} /** *

A list of QueryError objects. Each error is an object that * contains ErrorCode and Message structures. Possible * values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE * and CLOUDFORMATION_STACK_NOT_EXISTING.

*/ inline ListGroupResourcesResult& AddQueryErrors(const QueryError& value) { m_queryErrors.push_back(value); return *this; } /** *

A list of QueryError objects. Each error is an object that * contains ErrorCode and Message structures. Possible * values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE * and CLOUDFORMATION_STACK_NOT_EXISTING.

*/ inline ListGroupResourcesResult& AddQueryErrors(QueryError&& value) { m_queryErrors.push_back(std::move(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 ListGroupResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListGroupResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListGroupResourcesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_resources; Aws::String m_nextToken; Aws::Vector m_queryErrors; Aws::String m_requestId; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws