AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ApiKeySecretInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/credentialbroker-control/CredentialBrokerControl_EXPORTS.h>
9#include <aws/credentialbroker-control/model/SecretReference.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CredentialBrokerControl {
21namespace Model {
22
32 public:
33 AWS_CREDENTIALBROKERCONTROL_API ApiKeySecretInput() = default;
34 AWS_CREDENTIALBROKERCONTROL_API ApiKeySecretInput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CREDENTIALBROKERCONTROL_API ApiKeySecretInput& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CREDENTIALBROKERCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetApiKey() const { return m_apiKey; }
45 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
46 template <typename ApiKeyT = Aws::String>
47 void SetApiKey(ApiKeyT&& value) {
48 m_apiKeyHasBeenSet = true;
49 m_apiKey = std::forward<ApiKeyT>(value);
50 }
51 template <typename ApiKeyT = Aws::String>
52 ApiKeySecretInput& WithApiKey(ApiKeyT&& value) {
53 SetApiKey(std::forward<ApiKeyT>(value));
54 return *this;
55 }
57
59
63 inline const SecretReference& GetApiKeySecretReference() const { return m_apiKeySecretReference; }
64 inline bool ApiKeySecretReferenceHasBeenSet() const { return m_apiKeySecretReferenceHasBeenSet; }
65 template <typename ApiKeySecretReferenceT = SecretReference>
66 void SetApiKeySecretReference(ApiKeySecretReferenceT&& value) {
67 m_apiKeySecretReferenceHasBeenSet = true;
68 m_apiKeySecretReference = std::forward<ApiKeySecretReferenceT>(value);
69 }
70 template <typename ApiKeySecretReferenceT = SecretReference>
71 ApiKeySecretInput& WithApiKeySecretReference(ApiKeySecretReferenceT&& value) {
72 SetApiKeySecretReference(std::forward<ApiKeySecretReferenceT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_apiKey;
78
79 SecretReference m_apiKeySecretReference;
80 bool m_apiKeyHasBeenSet = false;
81 bool m_apiKeySecretReferenceHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CredentialBrokerControl
86} // namespace Aws
AWS_CREDENTIALBROKERCONTROL_API ApiKeySecretInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CREDENTIALBROKERCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetApiKeySecretReference(ApiKeySecretReferenceT &&value)
AWS_CREDENTIALBROKERCONTROL_API ApiKeySecretInput()=default
ApiKeySecretInput & WithApiKeySecretReference(ApiKeySecretReferenceT &&value)
AWS_CREDENTIALBROKERCONTROL_API ApiKeySecretInput(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue