AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
APNSChannelRequest.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
33 {
34 public:
35 AWS_PINPOINT_API APNSChannelRequest() = default;
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetBundleId() const { return m_bundleId; }
47 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
48 template<typename BundleIdT = Aws::String>
49 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
50 template<typename BundleIdT = Aws::String>
51 APNSChannelRequest& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetCertificate() const { return m_certificate; }
60 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
61 template<typename CertificateT = Aws::String>
62 void SetCertificate(CertificateT&& value) { m_certificateHasBeenSet = true; m_certificate = std::forward<CertificateT>(value); }
63 template<typename CertificateT = Aws::String>
64 APNSChannelRequest& WithCertificate(CertificateT&& value) { SetCertificate(std::forward<CertificateT>(value)); return *this;}
66
68
72 inline const Aws::String& GetDefaultAuthenticationMethod() const { return m_defaultAuthenticationMethod; }
73 inline bool DefaultAuthenticationMethodHasBeenSet() const { return m_defaultAuthenticationMethodHasBeenSet; }
74 template<typename DefaultAuthenticationMethodT = Aws::String>
75 void SetDefaultAuthenticationMethod(DefaultAuthenticationMethodT&& value) { m_defaultAuthenticationMethodHasBeenSet = true; m_defaultAuthenticationMethod = std::forward<DefaultAuthenticationMethodT>(value); }
76 template<typename DefaultAuthenticationMethodT = Aws::String>
77 APNSChannelRequest& WithDefaultAuthenticationMethod(DefaultAuthenticationMethodT&& value) { SetDefaultAuthenticationMethod(std::forward<DefaultAuthenticationMethodT>(value)); return *this;}
79
81
84 inline bool GetEnabled() const { return m_enabled; }
85 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
86 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
87 inline APNSChannelRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
89
91
95 inline const Aws::String& GetPrivateKey() const { return m_privateKey; }
96 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
97 template<typename PrivateKeyT = Aws::String>
98 void SetPrivateKey(PrivateKeyT&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::forward<PrivateKeyT>(value); }
99 template<typename PrivateKeyT = Aws::String>
100 APNSChannelRequest& WithPrivateKey(PrivateKeyT&& value) { SetPrivateKey(std::forward<PrivateKeyT>(value)); return *this;}
102
104
108 inline const Aws::String& GetTeamId() const { return m_teamId; }
109 inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; }
110 template<typename TeamIdT = Aws::String>
111 void SetTeamId(TeamIdT&& value) { m_teamIdHasBeenSet = true; m_teamId = std::forward<TeamIdT>(value); }
112 template<typename TeamIdT = Aws::String>
113 APNSChannelRequest& WithTeamId(TeamIdT&& value) { SetTeamId(std::forward<TeamIdT>(value)); return *this;}
115
117
120 inline const Aws::String& GetTokenKey() const { return m_tokenKey; }
121 inline bool TokenKeyHasBeenSet() const { return m_tokenKeyHasBeenSet; }
122 template<typename TokenKeyT = Aws::String>
123 void SetTokenKey(TokenKeyT&& value) { m_tokenKeyHasBeenSet = true; m_tokenKey = std::forward<TokenKeyT>(value); }
124 template<typename TokenKeyT = Aws::String>
125 APNSChannelRequest& WithTokenKey(TokenKeyT&& value) { SetTokenKey(std::forward<TokenKeyT>(value)); return *this;}
127
129
133 inline const Aws::String& GetTokenKeyId() const { return m_tokenKeyId; }
134 inline bool TokenKeyIdHasBeenSet() const { return m_tokenKeyIdHasBeenSet; }
135 template<typename TokenKeyIdT = Aws::String>
136 void SetTokenKeyId(TokenKeyIdT&& value) { m_tokenKeyIdHasBeenSet = true; m_tokenKeyId = std::forward<TokenKeyIdT>(value); }
137 template<typename TokenKeyIdT = Aws::String>
138 APNSChannelRequest& WithTokenKeyId(TokenKeyIdT&& value) { SetTokenKeyId(std::forward<TokenKeyIdT>(value)); return *this;}
140 private:
141
142 Aws::String m_bundleId;
143 bool m_bundleIdHasBeenSet = false;
144
145 Aws::String m_certificate;
146 bool m_certificateHasBeenSet = false;
147
148 Aws::String m_defaultAuthenticationMethod;
149 bool m_defaultAuthenticationMethodHasBeenSet = false;
150
151 bool m_enabled{false};
152 bool m_enabledHasBeenSet = false;
153
154 Aws::String m_privateKey;
155 bool m_privateKeyHasBeenSet = false;
156
157 Aws::String m_teamId;
158 bool m_teamIdHasBeenSet = false;
159
160 Aws::String m_tokenKey;
161 bool m_tokenKeyHasBeenSet = false;
162
163 Aws::String m_tokenKeyId;
164 bool m_tokenKeyIdHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Pinpoint
169} // namespace Aws
APNSChannelRequest & WithEnabled(bool value)
AWS_PINPOINT_API APNSChannelRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
APNSChannelRequest & WithDefaultAuthenticationMethod(DefaultAuthenticationMethodT &&value)
APNSChannelRequest & WithCertificate(CertificateT &&value)
const Aws::String & GetCertificate() const
APNSChannelRequest & WithTokenKey(TokenKeyT &&value)
APNSChannelRequest & WithPrivateKey(PrivateKeyT &&value)
AWS_PINPOINT_API APNSChannelRequest()=default
APNSChannelRequest & WithTokenKeyId(TokenKeyIdT &&value)
const Aws::String & GetPrivateKey() const
APNSChannelRequest & WithBundleId(BundleIdT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
APNSChannelRequest & WithTeamId(TeamIdT &&value)
AWS_PINPOINT_API APNSChannelRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDefaultAuthenticationMethod() const
void SetDefaultAuthenticationMethod(DefaultAuthenticationMethodT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue