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/appsync/AppSync_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/appsync/model/Resolver.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 AppSync 26 { 27 namespace Model 28 { 29 class AWS_APPSYNC_API ListResolversResult 30 { 31 public: 32 ListResolversResult(); 33 ListResolversResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListResolversResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>The <code>Resolver</code> objects.</p> 39 */ GetResolvers()40 inline const Aws::Vector<Resolver>& GetResolvers() const{ return m_resolvers; } 41 42 /** 43 * <p>The <code>Resolver</code> objects.</p> 44 */ SetResolvers(const Aws::Vector<Resolver> & value)45 inline void SetResolvers(const Aws::Vector<Resolver>& value) { m_resolvers = value; } 46 47 /** 48 * <p>The <code>Resolver</code> objects.</p> 49 */ SetResolvers(Aws::Vector<Resolver> && value)50 inline void SetResolvers(Aws::Vector<Resolver>&& value) { m_resolvers = std::move(value); } 51 52 /** 53 * <p>The <code>Resolver</code> objects.</p> 54 */ WithResolvers(const Aws::Vector<Resolver> & value)55 inline ListResolversResult& WithResolvers(const Aws::Vector<Resolver>& value) { SetResolvers(value); return *this;} 56 57 /** 58 * <p>The <code>Resolver</code> objects.</p> 59 */ WithResolvers(Aws::Vector<Resolver> && value)60 inline ListResolversResult& WithResolvers(Aws::Vector<Resolver>&& value) { SetResolvers(std::move(value)); return *this;} 61 62 /** 63 * <p>The <code>Resolver</code> objects.</p> 64 */ AddResolvers(const Resolver & value)65 inline ListResolversResult& AddResolvers(const Resolver& value) { m_resolvers.push_back(value); return *this; } 66 67 /** 68 * <p>The <code>Resolver</code> objects.</p> 69 */ AddResolvers(Resolver && value)70 inline ListResolversResult& AddResolvers(Resolver&& value) { m_resolvers.push_back(std::move(value)); return *this; } 71 72 73 /** 74 * <p>An identifier to be passed in the next request to this operation to return 75 * the next set of items in the list.</p> 76 */ GetNextToken()77 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 78 79 /** 80 * <p>An identifier to be passed in the next request to this operation to return 81 * the next set of items in the list.</p> 82 */ SetNextToken(const Aws::String & value)83 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 84 85 /** 86 * <p>An identifier to be passed in the next request to this operation to return 87 * the next set of items in the list.</p> 88 */ SetNextToken(Aws::String && value)89 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 90 91 /** 92 * <p>An identifier to be passed in the next request to this operation to return 93 * the next set of items in the list.</p> 94 */ SetNextToken(const char * value)95 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 96 97 /** 98 * <p>An identifier to be passed in the next request to this operation to return 99 * the next set of items in the list.</p> 100 */ WithNextToken(const Aws::String & value)101 inline ListResolversResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 102 103 /** 104 * <p>An identifier to be passed in the next request to this operation to return 105 * the next set of items in the list.</p> 106 */ WithNextToken(Aws::String && value)107 inline ListResolversResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 108 109 /** 110 * <p>An identifier to be passed in the next request to this operation to return 111 * the next set of items in the list.</p> 112 */ WithNextToken(const char * value)113 inline ListResolversResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 114 115 private: 116 117 Aws::Vector<Resolver> m_resolvers; 118 119 Aws::String m_nextToken; 120 }; 121 122 } // namespace Model 123 } // namespace AppSync 124 } // namespace Aws 125