1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/macie2/Macie2_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/macie2/model/MatchingResource.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace Macie2 26 { 27 namespace Model 28 { 29 class AWS_MACIE2_API SearchResourcesResult 30 { 31 public: 32 SearchResourcesResult(); 33 SearchResourcesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 SearchResourcesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>An array of objects, one for each resource that meets the filter criteria 39 * specified in the request.</p> 40 */ GetMatchingResources()41 inline const Aws::Vector<MatchingResource>& GetMatchingResources() const{ return m_matchingResources; } 42 43 /** 44 * <p>An array of objects, one for each resource that meets the filter criteria 45 * specified in the request.</p> 46 */ SetMatchingResources(const Aws::Vector<MatchingResource> & value)47 inline void SetMatchingResources(const Aws::Vector<MatchingResource>& value) { m_matchingResources = value; } 48 49 /** 50 * <p>An array of objects, one for each resource that meets the filter criteria 51 * specified in the request.</p> 52 */ SetMatchingResources(Aws::Vector<MatchingResource> && value)53 inline void SetMatchingResources(Aws::Vector<MatchingResource>&& value) { m_matchingResources = std::move(value); } 54 55 /** 56 * <p>An array of objects, one for each resource that meets the filter criteria 57 * specified in the request.</p> 58 */ WithMatchingResources(const Aws::Vector<MatchingResource> & value)59 inline SearchResourcesResult& WithMatchingResources(const Aws::Vector<MatchingResource>& value) { SetMatchingResources(value); return *this;} 60 61 /** 62 * <p>An array of objects, one for each resource that meets the filter criteria 63 * specified in the request.</p> 64 */ WithMatchingResources(Aws::Vector<MatchingResource> && value)65 inline SearchResourcesResult& WithMatchingResources(Aws::Vector<MatchingResource>&& value) { SetMatchingResources(std::move(value)); return *this;} 66 67 /** 68 * <p>An array of objects, one for each resource that meets the filter criteria 69 * specified in the request.</p> 70 */ AddMatchingResources(const MatchingResource & value)71 inline SearchResourcesResult& AddMatchingResources(const MatchingResource& value) { m_matchingResources.push_back(value); return *this; } 72 73 /** 74 * <p>An array of objects, one for each resource that meets the filter criteria 75 * specified in the request.</p> 76 */ AddMatchingResources(MatchingResource && value)77 inline SearchResourcesResult& AddMatchingResources(MatchingResource&& value) { m_matchingResources.push_back(std::move(value)); return *this; } 78 79 80 /** 81 * <p>The string to use in a subsequent request to get the next page of results in 82 * a paginated response. This value is null if there are no additional pages.</p> 83 */ GetNextToken()84 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 85 86 /** 87 * <p>The string to use in a subsequent request to get the next page of results in 88 * a paginated response. This value is null if there are no additional pages.</p> 89 */ SetNextToken(const Aws::String & value)90 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 91 92 /** 93 * <p>The string to use in a subsequent request to get the next page of results in 94 * a paginated response. This value is null if there are no additional pages.</p> 95 */ SetNextToken(Aws::String && value)96 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 97 98 /** 99 * <p>The string to use in a subsequent request to get the next page of results in 100 * a paginated response. This value is null if there are no additional pages.</p> 101 */ SetNextToken(const char * value)102 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 103 104 /** 105 * <p>The string to use in a subsequent request to get the next page of results in 106 * a paginated response. This value is null if there are no additional pages.</p> 107 */ WithNextToken(const Aws::String & value)108 inline SearchResourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 109 110 /** 111 * <p>The string to use in a subsequent request to get the next page of results in 112 * a paginated response. This value is null if there are no additional pages.</p> 113 */ WithNextToken(Aws::String && value)114 inline SearchResourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 115 116 /** 117 * <p>The string to use in a subsequent request to get the next page of results in 118 * a paginated response. This value is null if there are no additional pages.</p> 119 */ WithNextToken(const char * value)120 inline SearchResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 121 122 private: 123 124 Aws::Vector<MatchingResource> m_matchingResources; 125 126 Aws::String m_nextToken; 127 }; 128 129 } // namespace Model 130 } // namespace Macie2 131 } // namespace Aws 132