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

The number of resources that match the query.

*/ inline const ResourceCount& GetCount() const{ return m_count; } /** *

The number of resources that match the query.

*/ inline void SetCount(const ResourceCount& value) { m_count = value; } /** *

The number of resources that match the query.

*/ inline void SetCount(ResourceCount&& value) { m_count = std::move(value); } /** *

The number of resources that match the query.

*/ inline SearchResult& WithCount(const ResourceCount& value) { SetCount(value); return *this;} /** *

The number of resources that match the query.

*/ inline SearchResult& WithCount(ResourceCount&& value) { SetCount(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 SearchResult& 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 SearchResult& 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 SearchResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The list of structures that describe the resources that match the query.

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

The list of structures that describe the resources that match the query.

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

The list of structures that describe the resources that match the query.

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

The list of structures that describe the resources that match the query.

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

The list of structures that describe the resources that match the query.

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

The list of structures that describe the resources that match the query.

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

The list of structures that describe the resources that match the query.

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

The Amazon * resource name (ARN) of the view that this operation used to perform the * search.

*/ inline const Aws::String& GetViewArn() const{ return m_viewArn; } /** *

The Amazon * resource name (ARN) of the view that this operation used to perform the * search.

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

The Amazon * resource name (ARN) of the view that this operation used to perform the * search.

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

The Amazon * resource name (ARN) of the view that this operation used to perform the * search.

*/ inline void SetViewArn(const char* value) { m_viewArn.assign(value); } /** *

The Amazon * resource name (ARN) of the view that this operation used to perform the * search.

*/ inline SearchResult& WithViewArn(const Aws::String& value) { SetViewArn(value); return *this;} /** *

The Amazon * resource name (ARN) of the view that this operation used to perform the * search.

*/ inline SearchResult& WithViewArn(Aws::String&& value) { SetViewArn(std::move(value)); return *this;} /** *

The Amazon * resource name (ARN) of the view that this operation used to perform the * search.

*/ inline SearchResult& WithViewArn(const char* value) { SetViewArn(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 SearchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SearchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SearchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ResourceCount m_count; Aws::String m_nextToken; Aws::Vector m_resources; Aws::String m_viewArn; Aws::String m_requestId; }; } // namespace Model } // namespace ResourceExplorer2 } // namespace Aws