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/pinpoint/Pinpoint_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/pinpoint/model/ApplicationResponse.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Utils 16 { 17 namespace Json 18 { 19 class JsonValue; 20 class JsonView; 21 } // namespace Json 22 } // namespace Utils 23 namespace Pinpoint 24 { 25 namespace Model 26 { 27 28 /** 29 * <p>Provides information about all of your applications.</p><p><h3>See Also:</h3> 30 * <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ApplicationsResponse">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_PINPOINT_API ApplicationsResponse 35 { 36 public: 37 ApplicationsResponse(); 38 ApplicationsResponse(Aws::Utils::Json::JsonView jsonValue); 39 ApplicationsResponse& operator=(Aws::Utils::Json::JsonView jsonValue); 40 Aws::Utils::Json::JsonValue Jsonize() const; 41 42 43 /** 44 * <p>An array of responses, one for each application that was returned.</p> 45 */ GetItem()46 inline const Aws::Vector<ApplicationResponse>& GetItem() const{ return m_item; } 47 48 /** 49 * <p>An array of responses, one for each application that was returned.</p> 50 */ ItemHasBeenSet()51 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; } 52 53 /** 54 * <p>An array of responses, one for each application that was returned.</p> 55 */ SetItem(const Aws::Vector<ApplicationResponse> & value)56 inline void SetItem(const Aws::Vector<ApplicationResponse>& value) { m_itemHasBeenSet = true; m_item = value; } 57 58 /** 59 * <p>An array of responses, one for each application that was returned.</p> 60 */ SetItem(Aws::Vector<ApplicationResponse> && value)61 inline void SetItem(Aws::Vector<ApplicationResponse>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); } 62 63 /** 64 * <p>An array of responses, one for each application that was returned.</p> 65 */ WithItem(const Aws::Vector<ApplicationResponse> & value)66 inline ApplicationsResponse& WithItem(const Aws::Vector<ApplicationResponse>& value) { SetItem(value); return *this;} 67 68 /** 69 * <p>An array of responses, one for each application that was returned.</p> 70 */ WithItem(Aws::Vector<ApplicationResponse> && value)71 inline ApplicationsResponse& WithItem(Aws::Vector<ApplicationResponse>&& value) { SetItem(std::move(value)); return *this;} 72 73 /** 74 * <p>An array of responses, one for each application that was returned.</p> 75 */ AddItem(const ApplicationResponse & value)76 inline ApplicationsResponse& AddItem(const ApplicationResponse& value) { m_itemHasBeenSet = true; m_item.push_back(value); return *this; } 77 78 /** 79 * <p>An array of responses, one for each application that was returned.</p> 80 */ AddItem(ApplicationResponse && value)81 inline ApplicationsResponse& AddItem(ApplicationResponse&& value) { m_itemHasBeenSet = true; m_item.push_back(std::move(value)); return *this; } 82 83 84 /** 85 * <p>The string to use in a subsequent request to get the next page of results in 86 * a paginated response. This value is null if there are no additional pages.</p> 87 */ GetNextToken()88 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 89 90 /** 91 * <p>The string to use in a subsequent request to get the next page of results in 92 * a paginated response. This value is null if there are no additional pages.</p> 93 */ NextTokenHasBeenSet()94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 95 96 /** 97 * <p>The string to use in a subsequent request to get the next page of results in 98 * a paginated response. This value is null if there are no additional pages.</p> 99 */ SetNextToken(const Aws::String & value)100 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 101 102 /** 103 * <p>The string to use in a subsequent request to get the next page of results in 104 * a paginated response. This value is null if there are no additional pages.</p> 105 */ SetNextToken(Aws::String && value)106 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 107 108 /** 109 * <p>The string to use in a subsequent request to get the next page of results in 110 * a paginated response. This value is null if there are no additional pages.</p> 111 */ SetNextToken(const char * value)112 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 113 114 /** 115 * <p>The string to use in a subsequent request to get the next page of results in 116 * a paginated response. This value is null if there are no additional pages.</p> 117 */ WithNextToken(const Aws::String & value)118 inline ApplicationsResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 119 120 /** 121 * <p>The string to use in a subsequent request to get the next page of results in 122 * a paginated response. This value is null if there are no additional pages.</p> 123 */ WithNextToken(Aws::String && value)124 inline ApplicationsResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 125 126 /** 127 * <p>The string to use in a subsequent request to get the next page of results in 128 * a paginated response. This value is null if there are no additional pages.</p> 129 */ WithNextToken(const char * value)130 inline ApplicationsResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;} 131 132 private: 133 134 Aws::Vector<ApplicationResponse> m_item; 135 bool m_itemHasBeenSet; 136 137 Aws::String m_nextToken; 138 bool m_nextTokenHasBeenSet; 139 }; 140 141 } // namespace Model 142 } // namespace Pinpoint 143 } // namespace Aws 144