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

The ARNs and resource types of resources that are members of the group that * you specified.

*/ inline const Aws::Vector& GetResourceIdentifiers() const{ return m_resourceIdentifiers; } /** *

The ARNs and resource types of resources that are members of the group that * you specified.

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

The ARNs and resource types of resources that are members of the group that * you specified.

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

The ARNs and resource types of resources that are members of the group that * you specified.

*/ inline SearchResourcesResult& WithResourceIdentifiers(const Aws::Vector& value) { SetResourceIdentifiers(value); return *this;} /** *

The ARNs and resource types of resources that are members of the group that * you specified.

*/ inline SearchResourcesResult& WithResourceIdentifiers(Aws::Vector&& value) { SetResourceIdentifiers(std::move(value)); return *this;} /** *

The ARNs and resource types of resources that are members of the group that * you specified.

*/ inline SearchResourcesResult& AddResourceIdentifiers(const ResourceIdentifier& value) { m_resourceIdentifiers.push_back(value); return *this; } /** *

The ARNs and resource types of resources that are members of the group that * you specified.

*/ inline SearchResourcesResult& AddResourceIdentifiers(ResourceIdentifier&& value) { m_resourceIdentifiers.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 SearchResourcesResult& 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 SearchResourcesResult& 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 SearchResourcesResult& 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:

  • * CLOUDFORMATION_STACK_INACTIVE

  • * 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:

  • * CLOUDFORMATION_STACK_INACTIVE

  • * 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:

  • * CLOUDFORMATION_STACK_INACTIVE

  • * 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:

  • * CLOUDFORMATION_STACK_INACTIVE

  • * CLOUDFORMATION_STACK_NOT_EXISTING

*/ inline SearchResourcesResult& 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:

  • * CLOUDFORMATION_STACK_INACTIVE

  • * CLOUDFORMATION_STACK_NOT_EXISTING

*/ inline SearchResourcesResult& 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:

  • * CLOUDFORMATION_STACK_INACTIVE

  • * CLOUDFORMATION_STACK_NOT_EXISTING

*/ inline SearchResourcesResult& 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:

  • * CLOUDFORMATION_STACK_INACTIVE

  • * CLOUDFORMATION_STACK_NOT_EXISTING

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