AWS SDK for C++

AWS SDK for C++ Version 1.11.680

Loading...
Searching...
No Matches
GetCampaignsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/PinpointRequest.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Pinpoint {
18namespace Model {
19
23 public:
24 AWS_PINPOINT_API GetCampaignsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetCampaigns"; }
31
32 AWS_PINPOINT_API Aws::String SerializePayload() const override;
33
34 AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template <typename ApplicationIdT = Aws::String>
44 void SetApplicationId(ApplicationIdT&& value) {
45 m_applicationIdHasBeenSet = true;
46 m_applicationId = std::forward<ApplicationIdT>(value);
47 }
48 template <typename ApplicationIdT = Aws::String>
49 GetCampaignsRequest& WithApplicationId(ApplicationIdT&& value) {
50 SetApplicationId(std::forward<ApplicationIdT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetPageSize() const { return m_pageSize; }
62 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
63 template <typename PageSizeT = Aws::String>
64 void SetPageSize(PageSizeT&& value) {
65 m_pageSizeHasBeenSet = true;
66 m_pageSize = std::forward<PageSizeT>(value);
67 }
68 template <typename PageSizeT = Aws::String>
69 GetCampaignsRequest& WithPageSize(PageSizeT&& value) {
70 SetPageSize(std::forward<PageSizeT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetToken() const { return m_token; }
81 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
82 template <typename TokenT = Aws::String>
83 void SetToken(TokenT&& value) {
84 m_tokenHasBeenSet = true;
85 m_token = std::forward<TokenT>(value);
86 }
87 template <typename TokenT = Aws::String>
88 GetCampaignsRequest& WithToken(TokenT&& value) {
89 SetToken(std::forward<TokenT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_applicationId;
95 bool m_applicationIdHasBeenSet = false;
96
97 Aws::String m_pageSize;
98 bool m_pageSizeHasBeenSet = false;
99
100 Aws::String m_token;
101 bool m_tokenHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Pinpoint
106} // namespace Aws
GetCampaignsRequest & WithToken(TokenT &&value)
AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
GetCampaignsRequest & WithPageSize(PageSizeT &&value)
void SetApplicationId(ApplicationIdT &&value)
AWS_PINPOINT_API Aws::String SerializePayload() const override
GetCampaignsRequest & WithApplicationId(ApplicationIdT &&value)
AWS_PINPOINT_API GetCampaignsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String