AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GCMChannelRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_PINPOINT_API GCMChannelRequest() = default;
38 AWS_PINPOINT_API GCMChannelRequest(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetApiKey() const { return m_apiKey; }
49 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
50 template<typename ApiKeyT = Aws::String>
51 void SetApiKey(ApiKeyT&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::forward<ApiKeyT>(value); }
52 template<typename ApiKeyT = Aws::String>
53 GCMChannelRequest& WithApiKey(ApiKeyT&& value) { SetApiKey(std::forward<ApiKeyT>(value)); return *this;}
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) { m_defaultAuthenticationMethodHasBeenSet = true; m_defaultAuthenticationMethod = std::forward<DefaultAuthenticationMethodT>(value); }
65 template<typename DefaultAuthenticationMethodT = Aws::String>
66 GCMChannelRequest& WithDefaultAuthenticationMethod(DefaultAuthenticationMethodT&& value) { SetDefaultAuthenticationMethod(std::forward<DefaultAuthenticationMethodT>(value)); return *this;}
68
70
73 inline bool GetEnabled() const { return m_enabled; }
74 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
75 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
76 inline GCMChannelRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
78
80
86 inline const Aws::String& GetServiceJson() const { return m_serviceJson; }
87 inline bool ServiceJsonHasBeenSet() const { return m_serviceJsonHasBeenSet; }
88 template<typename ServiceJsonT = Aws::String>
89 void SetServiceJson(ServiceJsonT&& value) { m_serviceJsonHasBeenSet = true; m_serviceJson = std::forward<ServiceJsonT>(value); }
90 template<typename ServiceJsonT = Aws::String>
91 GCMChannelRequest& WithServiceJson(ServiceJsonT&& value) { SetServiceJson(std::forward<ServiceJsonT>(value)); return *this;}
93 private:
94
95 Aws::String m_apiKey;
96 bool m_apiKeyHasBeenSet = false;
97
98 Aws::String m_defaultAuthenticationMethod;
99 bool m_defaultAuthenticationMethodHasBeenSet = false;
100
101 bool m_enabled{false};
102 bool m_enabledHasBeenSet = false;
103
104 Aws::String m_serviceJson;
105 bool m_serviceJsonHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Pinpoint
110} // 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