AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
ADMChannelRequest.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
29 public:
30 AWS_PINPOINT_API ADMChannelRequest() = default;
31 AWS_PINPOINT_API ADMChannelRequest(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetClientId() const { return m_clientId; }
41 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
42 template <typename ClientIdT = Aws::String>
43 void SetClientId(ClientIdT&& value) {
44 m_clientIdHasBeenSet = true;
45 m_clientId = std::forward<ClientIdT>(value);
46 }
47 template <typename ClientIdT = Aws::String>
48 ADMChannelRequest& WithClientId(ClientIdT&& value) {
49 SetClientId(std::forward<ClientIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
60 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
61 template <typename ClientSecretT = Aws::String>
62 void SetClientSecret(ClientSecretT&& value) {
63 m_clientSecretHasBeenSet = true;
64 m_clientSecret = std::forward<ClientSecretT>(value);
65 }
66 template <typename ClientSecretT = Aws::String>
67 ADMChannelRequest& WithClientSecret(ClientSecretT&& value) {
68 SetClientSecret(std::forward<ClientSecretT>(value));
69 return *this;
70 }
72
74
77 inline bool GetEnabled() const { return m_enabled; }
78 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
79 inline void SetEnabled(bool value) {
80 m_enabledHasBeenSet = true;
81 m_enabled = value;
82 }
83 inline ADMChannelRequest& WithEnabled(bool value) {
84 SetEnabled(value);
85 return *this;
86 }
88 private:
89 Aws::String m_clientId;
90 bool m_clientIdHasBeenSet = false;
91
92 Aws::String m_clientSecret;
93 bool m_clientSecretHasBeenSet = false;
94
95 bool m_enabled{false};
96 bool m_enabledHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Pinpoint
101} // namespace Aws
AWS_PINPOINT_API ADMChannelRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientSecret() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetClientId() const
ADMChannelRequest & WithClientId(ClientIdT &&value)
AWS_PINPOINT_API ADMChannelRequest()=default
AWS_PINPOINT_API ADMChannelRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetClientSecret(ClientSecretT &&value)
ADMChannelRequest & WithClientSecret(ClientSecretT &&value)
ADMChannelRequest & WithEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue