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/Type.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 ListTypesResult 30 { 31 public: 32 ListTypesResult(); 33 ListTypesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListTypesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>The <code>Type</code> objects.</p> 39 */ GetTypes()40 inline const Aws::Vector<Type>& GetTypes() const{ return m_types; } 41 42 /** 43 * <p>The <code>Type</code> objects.</p> 44 */ SetTypes(const Aws::Vector<Type> & value)45 inline void SetTypes(const Aws::Vector<Type>& value) { m_types = value; } 46 47 /** 48 * <p>The <code>Type</code> objects.</p> 49 */ SetTypes(Aws::Vector<Type> && value)50 inline void SetTypes(Aws::Vector<Type>&& value) { m_types = std::move(value); } 51 52 /** 53 * <p>The <code>Type</code> objects.</p> 54 */ WithTypes(const Aws::Vector<Type> & value)55 inline ListTypesResult& WithTypes(const Aws::Vector<Type>& value) { SetTypes(value); return *this;} 56 57 /** 58 * <p>The <code>Type</code> objects.</p> 59 */ WithTypes(Aws::Vector<Type> && value)60 inline ListTypesResult& WithTypes(Aws::Vector<Type>&& value) { SetTypes(std::move(value)); return *this;} 61 62 /** 63 * <p>The <code>Type</code> objects.</p> 64 */ AddTypes(const Type & value)65 inline ListTypesResult& AddTypes(const Type& value) { m_types.push_back(value); return *this; } 66 67 /** 68 * <p>The <code>Type</code> objects.</p> 69 */ AddTypes(Type && value)70 inline ListTypesResult& AddTypes(Type&& value) { m_types.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 ListTypesResult& 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 ListTypesResult& 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 ListTypesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 114 115 private: 116 117 Aws::Vector<Type> m_types; 118 119 Aws::String m_nextToken; 120 }; 121 122 } // namespace Model 123 } // namespace AppSync 124 } // namespace Aws 125