AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListAppsRequest.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/sms/SMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SMS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SMS_API ListAppsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListApps"; }
32
33 AWS_SMS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::Vector<Aws::String>& GetAppIds() const { return m_appIds; }
43 inline bool AppIdsHasBeenSet() const { return m_appIdsHasBeenSet; }
44 template<typename AppIdsT = Aws::Vector<Aws::String>>
45 void SetAppIds(AppIdsT&& value) { m_appIdsHasBeenSet = true; m_appIds = std::forward<AppIdsT>(value); }
46 template<typename AppIdsT = Aws::Vector<Aws::String>>
47 ListAppsRequest& WithAppIds(AppIdsT&& value) { SetAppIds(std::forward<AppIdsT>(value)); return *this;}
48 template<typename AppIdsT = Aws::String>
49 ListAppsRequest& AddAppIds(AppIdsT&& value) { m_appIdsHasBeenSet = true; m_appIds.emplace_back(std::forward<AppIdsT>(value)); return *this; }
51
53
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template<typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
60 template<typename NextTokenT = Aws::String>
61 ListAppsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
63
65
70 inline int GetMaxResults() const { return m_maxResults; }
71 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
72 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
73 inline ListAppsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
75 private:
76
78 bool m_appIdsHasBeenSet = false;
79
80 Aws::String m_nextToken;
81 bool m_nextTokenHasBeenSet = false;
82
83 int m_maxResults{0};
84 bool m_maxResultsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace SMS
89} // namespace Aws
void SetAppIds(AppIdsT &&value)
ListAppsRequest & AddAppIds(AppIdsT &&value)
ListAppsRequest & WithAppIds(AppIdsT &&value)
AWS_SMS_API ListAppsRequest()=default
virtual const char * GetServiceRequestName() const override
void SetNextToken(NextTokenT &&value)
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetAppIds() const
ListAppsRequest & WithMaxResults(int value)
ListAppsRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
AWS_SMS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector