AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GCMChannelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
31 public:
32 AWS_PINPOINT_API GCMChannelRequest() = default;
33 AWS_PINPOINT_API GCMChannelRequest(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetApiKey() const { return m_apiKey; }
43 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
44 template <typename ApiKeyT = Aws::String>
45 void SetApiKey(ApiKeyT&& value) {
46 m_apiKeyHasBeenSet = true;
47 m_apiKey = std::forward<ApiKeyT>(value);
48 }
49 template <typename ApiKeyT = Aws::String>
50 GCMChannelRequest& WithApiKey(ApiKeyT&& value) {
51 SetApiKey(std::forward<ApiKeyT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDefaultAuthenticationMethod() const { return m_defaultAuthenticationMethod; }
62 inline bool DefaultAuthenticationMethodHasBeenSet() const { return m_defaultAuthenticationMethodHasBeenSet; }
63 template <typename DefaultAuthenticationMethodT = Aws::String>
64 void SetDefaultAuthenticationMethod(DefaultAuthenticationMethodT&& value) {
65 m_defaultAuthenticationMethodHasBeenSet = true;
66 m_defaultAuthenticationMethod = std::forward<DefaultAuthenticationMethodT>(value);
67 }
68 template <typename DefaultAuthenticationMethodT = Aws::String>
69 GCMChannelRequest& WithDefaultAuthenticationMethod(DefaultAuthenticationMethodT&& value) {
70 SetDefaultAuthenticationMethod(std::forward<DefaultAuthenticationMethodT>(value));
71 return *this;
72 }
74
76
79 inline bool GetEnabled() const { return m_enabled; }
80 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
81 inline void SetEnabled(bool value) {
82 m_enabledHasBeenSet = true;
83 m_enabled = value;
84 }
85 inline GCMChannelRequest& WithEnabled(bool value) {
86 SetEnabled(value);
87 return *this;
88 }
90
92
98 inline const Aws::String& GetServiceJson() const { return m_serviceJson; }
99 inline bool ServiceJsonHasBeenSet() const { return m_serviceJsonHasBeenSet; }
100 template <typename ServiceJsonT = Aws::String>
101 void SetServiceJson(ServiceJsonT&& value) {
102 m_serviceJsonHasBeenSet = true;
103 m_serviceJson = std::forward<ServiceJsonT>(value);
104 }
105 template <typename ServiceJsonT = Aws::String>
106 GCMChannelRequest& WithServiceJson(ServiceJsonT&& value) {
107 SetServiceJson(std::forward<ServiceJsonT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_apiKey;
113
114 Aws::String m_defaultAuthenticationMethod;
115
116 bool m_enabled{false};
117
118 Aws::String m_serviceJson;
119 bool m_apiKeyHasBeenSet = false;
120 bool m_defaultAuthenticationMethodHasBeenSet = false;
121 bool m_enabledHasBeenSet = false;
122 bool m_serviceJsonHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Pinpoint
127} // namespace Aws
AWS_PINPOINT_API GCMChannelRequest(Aws::Utils::Json::JsonView jsonValue)
void SetServiceJson(ServiceJsonT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetServiceJson() const
AWS_PINPOINT_API GCMChannelRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetApiKey() const
GCMChannelRequest & WithEnabled(bool value)
AWS_PINPOINT_API GCMChannelRequest()=default
const Aws::String & GetDefaultAuthenticationMethod() const
GCMChannelRequest & WithServiceJson(ServiceJsonT &&value)
GCMChannelRequest & WithDefaultAuthenticationMethod(DefaultAuthenticationMethodT &&value)
void SetDefaultAuthenticationMethod(DefaultAuthenticationMethodT &&value)
GCMChannelRequest & WithApiKey(ApiKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue