1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/pinpoint/Pinpoint_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace Pinpoint 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Specifies the status and settings of the Baidu (Baidu Cloud Push) channel for 28 * an application.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/BaiduChannelRequest">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_PINPOINT_API BaiduChannelRequest 33 { 34 public: 35 BaiduChannelRequest(); 36 BaiduChannelRequest(Aws::Utils::Json::JsonView jsonValue); 37 BaiduChannelRequest& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The API key that you received from the Baidu Cloud Push service to 43 * communicate with the service.</p> 44 */ GetApiKey()45 inline const Aws::String& GetApiKey() const{ return m_apiKey; } 46 47 /** 48 * <p>The API key that you received from the Baidu Cloud Push service to 49 * communicate with the service.</p> 50 */ ApiKeyHasBeenSet()51 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; } 52 53 /** 54 * <p>The API key that you received from the Baidu Cloud Push service to 55 * communicate with the service.</p> 56 */ SetApiKey(const Aws::String & value)57 inline void SetApiKey(const Aws::String& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; } 58 59 /** 60 * <p>The API key that you received from the Baidu Cloud Push service to 61 * communicate with the service.</p> 62 */ SetApiKey(Aws::String && value)63 inline void SetApiKey(Aws::String&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::move(value); } 64 65 /** 66 * <p>The API key that you received from the Baidu Cloud Push service to 67 * communicate with the service.</p> 68 */ SetApiKey(const char * value)69 inline void SetApiKey(const char* value) { m_apiKeyHasBeenSet = true; m_apiKey.assign(value); } 70 71 /** 72 * <p>The API key that you received from the Baidu Cloud Push service to 73 * communicate with the service.</p> 74 */ WithApiKey(const Aws::String & value)75 inline BaiduChannelRequest& WithApiKey(const Aws::String& value) { SetApiKey(value); return *this;} 76 77 /** 78 * <p>The API key that you received from the Baidu Cloud Push service to 79 * communicate with the service.</p> 80 */ WithApiKey(Aws::String && value)81 inline BaiduChannelRequest& WithApiKey(Aws::String&& value) { SetApiKey(std::move(value)); return *this;} 82 83 /** 84 * <p>The API key that you received from the Baidu Cloud Push service to 85 * communicate with the service.</p> 86 */ WithApiKey(const char * value)87 inline BaiduChannelRequest& WithApiKey(const char* value) { SetApiKey(value); return *this;} 88 89 90 /** 91 * <p>Specifies whether to enable the Baidu channel for the application.</p> 92 */ GetEnabled()93 inline bool GetEnabled() const{ return m_enabled; } 94 95 /** 96 * <p>Specifies whether to enable the Baidu channel for the application.</p> 97 */ EnabledHasBeenSet()98 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } 99 100 /** 101 * <p>Specifies whether to enable the Baidu channel for the application.</p> 102 */ SetEnabled(bool value)103 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } 104 105 /** 106 * <p>Specifies whether to enable the Baidu channel for the application.</p> 107 */ WithEnabled(bool value)108 inline BaiduChannelRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} 109 110 111 /** 112 * <p>The secret key that you received from the Baidu Cloud Push service to 113 * communicate with the service.</p> 114 */ GetSecretKey()115 inline const Aws::String& GetSecretKey() const{ return m_secretKey; } 116 117 /** 118 * <p>The secret key that you received from the Baidu Cloud Push service to 119 * communicate with the service.</p> 120 */ SecretKeyHasBeenSet()121 inline bool SecretKeyHasBeenSet() const { return m_secretKeyHasBeenSet; } 122 123 /** 124 * <p>The secret key that you received from the Baidu Cloud Push service to 125 * communicate with the service.</p> 126 */ SetSecretKey(const Aws::String & value)127 inline void SetSecretKey(const Aws::String& value) { m_secretKeyHasBeenSet = true; m_secretKey = value; } 128 129 /** 130 * <p>The secret key that you received from the Baidu Cloud Push service to 131 * communicate with the service.</p> 132 */ SetSecretKey(Aws::String && value)133 inline void SetSecretKey(Aws::String&& value) { m_secretKeyHasBeenSet = true; m_secretKey = std::move(value); } 134 135 /** 136 * <p>The secret key that you received from the Baidu Cloud Push service to 137 * communicate with the service.</p> 138 */ SetSecretKey(const char * value)139 inline void SetSecretKey(const char* value) { m_secretKeyHasBeenSet = true; m_secretKey.assign(value); } 140 141 /** 142 * <p>The secret key that you received from the Baidu Cloud Push service to 143 * communicate with the service.</p> 144 */ WithSecretKey(const Aws::String & value)145 inline BaiduChannelRequest& WithSecretKey(const Aws::String& value) { SetSecretKey(value); return *this;} 146 147 /** 148 * <p>The secret key that you received from the Baidu Cloud Push service to 149 * communicate with the service.</p> 150 */ WithSecretKey(Aws::String && value)151 inline BaiduChannelRequest& WithSecretKey(Aws::String&& value) { SetSecretKey(std::move(value)); return *this;} 152 153 /** 154 * <p>The secret key that you received from the Baidu Cloud Push service to 155 * communicate with the service.</p> 156 */ WithSecretKey(const char * value)157 inline BaiduChannelRequest& WithSecretKey(const char* value) { SetSecretKey(value); return *this;} 158 159 private: 160 161 Aws::String m_apiKey; 162 bool m_apiKeyHasBeenSet; 163 164 bool m_enabled; 165 bool m_enabledHasBeenSet; 166 167 Aws::String m_secretKey; 168 bool m_secretKeyHasBeenSet; 169 }; 170 171 } // namespace Model 172 } // namespace Pinpoint 173 } // namespace Aws 174