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/chime/Chime_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/chime/model/AppInstanceSummary.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 Chime 26 { 27 namespace Model 28 { 29 class AWS_CHIME_API ListAppInstancesResult 30 { 31 public: 32 ListAppInstancesResult(); 33 ListAppInstancesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListAppInstancesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>The information for each <code>AppInstance</code>.</p> 39 */ GetAppInstances()40 inline const Aws::Vector<AppInstanceSummary>& GetAppInstances() const{ return m_appInstances; } 41 42 /** 43 * <p>The information for each <code>AppInstance</code>.</p> 44 */ SetAppInstances(const Aws::Vector<AppInstanceSummary> & value)45 inline void SetAppInstances(const Aws::Vector<AppInstanceSummary>& value) { m_appInstances = value; } 46 47 /** 48 * <p>The information for each <code>AppInstance</code>.</p> 49 */ SetAppInstances(Aws::Vector<AppInstanceSummary> && value)50 inline void SetAppInstances(Aws::Vector<AppInstanceSummary>&& value) { m_appInstances = std::move(value); } 51 52 /** 53 * <p>The information for each <code>AppInstance</code>.</p> 54 */ WithAppInstances(const Aws::Vector<AppInstanceSummary> & value)55 inline ListAppInstancesResult& WithAppInstances(const Aws::Vector<AppInstanceSummary>& value) { SetAppInstances(value); return *this;} 56 57 /** 58 * <p>The information for each <code>AppInstance</code>.</p> 59 */ WithAppInstances(Aws::Vector<AppInstanceSummary> && value)60 inline ListAppInstancesResult& WithAppInstances(Aws::Vector<AppInstanceSummary>&& value) { SetAppInstances(std::move(value)); return *this;} 61 62 /** 63 * <p>The information for each <code>AppInstance</code>.</p> 64 */ AddAppInstances(const AppInstanceSummary & value)65 inline ListAppInstancesResult& AddAppInstances(const AppInstanceSummary& value) { m_appInstances.push_back(value); return *this; } 66 67 /** 68 * <p>The information for each <code>AppInstance</code>.</p> 69 */ AddAppInstances(AppInstanceSummary && value)70 inline ListAppInstancesResult& AddAppInstances(AppInstanceSummary&& value) { m_appInstances.push_back(std::move(value)); return *this; } 71 72 73 /** 74 * <p>The token passed by previous API requests until the maximum number of 75 * <code>AppInstance</code>s is reached.</p> 76 */ GetNextToken()77 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 78 79 /** 80 * <p>The token passed by previous API requests until the maximum number of 81 * <code>AppInstance</code>s is reached.</p> 82 */ SetNextToken(const Aws::String & value)83 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 84 85 /** 86 * <p>The token passed by previous API requests until the maximum number of 87 * <code>AppInstance</code>s is reached.</p> 88 */ SetNextToken(Aws::String && value)89 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 90 91 /** 92 * <p>The token passed by previous API requests until the maximum number of 93 * <code>AppInstance</code>s is reached.</p> 94 */ SetNextToken(const char * value)95 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 96 97 /** 98 * <p>The token passed by previous API requests until the maximum number of 99 * <code>AppInstance</code>s is reached.</p> 100 */ WithNextToken(const Aws::String & value)101 inline ListAppInstancesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 102 103 /** 104 * <p>The token passed by previous API requests until the maximum number of 105 * <code>AppInstance</code>s is reached.</p> 106 */ WithNextToken(Aws::String && value)107 inline ListAppInstancesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 108 109 /** 110 * <p>The token passed by previous API requests until the maximum number of 111 * <code>AppInstance</code>s is reached.</p> 112 */ WithNextToken(const char * value)113 inline ListAppInstancesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 114 115 private: 116 117 Aws::Vector<AppInstanceSummary> m_appInstances; 118 119 Aws::String m_nextToken; 120 }; 121 122 } // namespace Model 123 } // namespace Chime 124 } // namespace Aws 125