AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
BaiduChannelRequest.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 BaiduChannelRequest() = default;
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetApiKey() const { return m_apiKey; }
41 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
42 template <typename ApiKeyT = Aws::String>
43 void SetApiKey(ApiKeyT&& value) {
44 m_apiKeyHasBeenSet = true;
45 m_apiKey = std::forward<ApiKeyT>(value);
46 }
47 template <typename ApiKeyT = Aws::String>
48 BaiduChannelRequest& WithApiKey(ApiKeyT&& value) {
49 SetApiKey(std::forward<ApiKeyT>(value));
50 return *this;
51 }
53
55
58 inline bool GetEnabled() const { return m_enabled; }
59 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
60 inline void SetEnabled(bool value) {
61 m_enabledHasBeenSet = true;
62 m_enabled = value;
63 }
64 inline BaiduChannelRequest& WithEnabled(bool value) {
65 SetEnabled(value);
66 return *this;
67 }
69
71
75 inline const Aws::String& GetSecretKey() const { return m_secretKey; }
76 inline bool SecretKeyHasBeenSet() const { return m_secretKeyHasBeenSet; }
77 template <typename SecretKeyT = Aws::String>
78 void SetSecretKey(SecretKeyT&& value) {
79 m_secretKeyHasBeenSet = true;
80 m_secretKey = std::forward<SecretKeyT>(value);
81 }
82 template <typename SecretKeyT = Aws::String>
83 BaiduChannelRequest& WithSecretKey(SecretKeyT&& value) {
84 SetSecretKey(std::forward<SecretKeyT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_apiKey;
90 bool m_apiKeyHasBeenSet = false;
91
92 bool m_enabled{false};
93 bool m_enabledHasBeenSet = false;
94
95 Aws::String m_secretKey;
96 bool m_secretKeyHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Pinpoint
101} // namespace Aws
AWS_PINPOINT_API BaiduChannelRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API BaiduChannelRequest()=default
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
BaiduChannelRequest & WithApiKey(ApiKeyT &&value)
BaiduChannelRequest & WithSecretKey(SecretKeyT &&value)
BaiduChannelRequest & WithEnabled(bool value)
AWS_PINPOINT_API BaiduChannelRequest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue