AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
SecretReference.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/credentialbroker-control/CredentialBrokerControl_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CredentialBrokerControl {
20namespace Model {
21
30 public:
31 AWS_CREDENTIALBROKERCONTROL_API SecretReference() = default;
32 AWS_CREDENTIALBROKERCONTROL_API SecretReference(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CREDENTIALBROKERCONTROL_API SecretReference& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CREDENTIALBROKERCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetSecretId() const { return m_secretId; }
43 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
44 template <typename SecretIdT = Aws::String>
45 void SetSecretId(SecretIdT&& value) {
46 m_secretIdHasBeenSet = true;
47 m_secretId = std::forward<SecretIdT>(value);
48 }
49 template <typename SecretIdT = Aws::String>
50 SecretReference& WithSecretId(SecretIdT&& value) {
51 SetSecretId(std::forward<SecretIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetJsonKey() const { return m_jsonKey; }
63 inline bool JsonKeyHasBeenSet() const { return m_jsonKeyHasBeenSet; }
64 template <typename JsonKeyT = Aws::String>
65 void SetJsonKey(JsonKeyT&& value) {
66 m_jsonKeyHasBeenSet = true;
67 m_jsonKey = std::forward<JsonKeyT>(value);
68 }
69 template <typename JsonKeyT = Aws::String>
70 SecretReference& WithJsonKey(JsonKeyT&& value) {
71 SetJsonKey(std::forward<JsonKeyT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_secretId;
77
78 Aws::String m_jsonKey;
79 bool m_secretIdHasBeenSet = false;
80 bool m_jsonKeyHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace CredentialBrokerControl
85} // namespace Aws
SecretReference & WithJsonKey(JsonKeyT &&value)
AWS_CREDENTIALBROKERCONTROL_API SecretReference()=default
AWS_CREDENTIALBROKERCONTROL_API SecretReference(Aws::Utils::Json::JsonView jsonValue)
SecretReference & WithSecretId(SecretIdT &&value)
AWS_CREDENTIALBROKERCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CREDENTIALBROKERCONTROL_API SecretReference & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue