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/pinpoint/PinpointRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16     class URI;
17 } //namespace Http
18 namespace Pinpoint
19 {
20 namespace Model
21 {
22 
23   /**
24    */
25   class AWS_PINPOINT_API GetAppsRequest : public PinpointRequest
26   {
27   public:
28     GetAppsRequest();
29 
30     // Service request name is the Operation name which will send this request out,
31     // each operation should has unique request name, so that we can get operation's name from this request.
32     // Note: this is not true for response, multiple operations may have the same response name,
33     // so we can not get operation's name from response.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "GetApps"; }
35 
36     Aws::String SerializePayload() const override;
37 
38     void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
41     /**
42      * <p>The maximum number of items to include in each page of a paginated response.
43      * This parameter is not supported for application, campaign, and journey
44      * metrics.</p>
45      */
GetPageSize()46     inline const Aws::String& GetPageSize() const{ return m_pageSize; }
47 
48     /**
49      * <p>The maximum number of items to include in each page of a paginated response.
50      * This parameter is not supported for application, campaign, and journey
51      * metrics.</p>
52      */
PageSizeHasBeenSet()53     inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
54 
55     /**
56      * <p>The maximum number of items to include in each page of a paginated response.
57      * This parameter is not supported for application, campaign, and journey
58      * metrics.</p>
59      */
SetPageSize(const Aws::String & value)60     inline void SetPageSize(const Aws::String& value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
61 
62     /**
63      * <p>The maximum number of items to include in each page of a paginated response.
64      * This parameter is not supported for application, campaign, and journey
65      * metrics.</p>
66      */
SetPageSize(Aws::String && value)67     inline void SetPageSize(Aws::String&& value) { m_pageSizeHasBeenSet = true; m_pageSize = std::move(value); }
68 
69     /**
70      * <p>The maximum number of items to include in each page of a paginated response.
71      * This parameter is not supported for application, campaign, and journey
72      * metrics.</p>
73      */
SetPageSize(const char * value)74     inline void SetPageSize(const char* value) { m_pageSizeHasBeenSet = true; m_pageSize.assign(value); }
75 
76     /**
77      * <p>The maximum number of items to include in each page of a paginated response.
78      * This parameter is not supported for application, campaign, and journey
79      * metrics.</p>
80      */
WithPageSize(const Aws::String & value)81     inline GetAppsRequest& WithPageSize(const Aws::String& value) { SetPageSize(value); return *this;}
82 
83     /**
84      * <p>The maximum number of items to include in each page of a paginated response.
85      * This parameter is not supported for application, campaign, and journey
86      * metrics.</p>
87      */
WithPageSize(Aws::String && value)88     inline GetAppsRequest& WithPageSize(Aws::String&& value) { SetPageSize(std::move(value)); return *this;}
89 
90     /**
91      * <p>The maximum number of items to include in each page of a paginated response.
92      * This parameter is not supported for application, campaign, and journey
93      * metrics.</p>
94      */
WithPageSize(const char * value)95     inline GetAppsRequest& WithPageSize(const char* value) { SetPageSize(value); return *this;}
96 
97 
98     /**
99      * <p>The NextToken string that specifies which page of results to return in a
100      * paginated response.</p>
101      */
GetToken()102     inline const Aws::String& GetToken() const{ return m_token; }
103 
104     /**
105      * <p>The NextToken string that specifies which page of results to return in a
106      * paginated response.</p>
107      */
TokenHasBeenSet()108     inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
109 
110     /**
111      * <p>The NextToken string that specifies which page of results to return in a
112      * paginated response.</p>
113      */
SetToken(const Aws::String & value)114     inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
115 
116     /**
117      * <p>The NextToken string that specifies which page of results to return in a
118      * paginated response.</p>
119      */
SetToken(Aws::String && value)120     inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
121 
122     /**
123      * <p>The NextToken string that specifies which page of results to return in a
124      * paginated response.</p>
125      */
SetToken(const char * value)126     inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
127 
128     /**
129      * <p>The NextToken string that specifies which page of results to return in a
130      * paginated response.</p>
131      */
WithToken(const Aws::String & value)132     inline GetAppsRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
133 
134     /**
135      * <p>The NextToken string that specifies which page of results to return in a
136      * paginated response.</p>
137      */
WithToken(Aws::String && value)138     inline GetAppsRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
139 
140     /**
141      * <p>The NextToken string that specifies which page of results to return in a
142      * paginated response.</p>
143      */
WithToken(const char * value)144     inline GetAppsRequest& WithToken(const char* value) { SetToken(value); return *this;}
145 
146   private:
147 
148     Aws::String m_pageSize;
149     bool m_pageSizeHasBeenSet;
150 
151     Aws::String m_token;
152     bool m_tokenHasBeenSet;
153   };
154 
155 } // namespace Model
156 } // namespace Pinpoint
157 } // namespace Aws
158