AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecretValueEntry.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecretsManager
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SECRETSMANAGER_API SecretValueEntry();
39 AWS_SECRETSMANAGER_API SecretValueEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECRETSMANAGER_API SecretValueEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetARN() const{ return m_aRN; }
49 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
50 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
51 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
52 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
53 inline SecretValueEntry& WithARN(const Aws::String& value) { SetARN(value); return *this;}
54 inline SecretValueEntry& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
55 inline SecretValueEntry& WithARN(const char* value) { SetARN(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline SecretValueEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline SecretValueEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline SecretValueEntry& WithName(const char* value) { SetName(value); return *this;}
71
73
76 inline const Aws::String& GetVersionId() const{ return m_versionId; }
77 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
78 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
79 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
80 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
81 inline SecretValueEntry& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
82 inline SecretValueEntry& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
83 inline SecretValueEntry& WithVersionId(const char* value) { SetVersionId(value); return *this;}
85
87
94 inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const{ return m_secretBinary; }
95 inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; }
96 inline void SetSecretBinary(const Aws::Utils::CryptoBuffer& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = value; }
97 inline void SetSecretBinary(Aws::Utils::CryptoBuffer&& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = std::move(value); }
98 inline SecretValueEntry& WithSecretBinary(const Aws::Utils::CryptoBuffer& value) { SetSecretBinary(value); return *this;}
99 inline SecretValueEntry& WithSecretBinary(Aws::Utils::CryptoBuffer&& value) { SetSecretBinary(std::move(value)); return *this;}
101
103
107 inline const Aws::String& GetSecretString() const{ return m_secretString; }
108 inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; }
109 inline void SetSecretString(const Aws::String& value) { m_secretStringHasBeenSet = true; m_secretString = value; }
110 inline void SetSecretString(Aws::String&& value) { m_secretStringHasBeenSet = true; m_secretString = std::move(value); }
111 inline void SetSecretString(const char* value) { m_secretStringHasBeenSet = true; m_secretString.assign(value); }
112 inline SecretValueEntry& WithSecretString(const Aws::String& value) { SetSecretString(value); return *this;}
113 inline SecretValueEntry& WithSecretString(Aws::String&& value) { SetSecretString(std::move(value)); return *this;}
114 inline SecretValueEntry& WithSecretString(const char* value) { SetSecretString(value); return *this;}
116
118
122 inline const Aws::Vector<Aws::String>& GetVersionStages() const{ return m_versionStages; }
123 inline bool VersionStagesHasBeenSet() const { return m_versionStagesHasBeenSet; }
124 inline void SetVersionStages(const Aws::Vector<Aws::String>& value) { m_versionStagesHasBeenSet = true; m_versionStages = value; }
125 inline void SetVersionStages(Aws::Vector<Aws::String>&& value) { m_versionStagesHasBeenSet = true; m_versionStages = std::move(value); }
127 inline SecretValueEntry& WithVersionStages(Aws::Vector<Aws::String>&& value) { SetVersionStages(std::move(value)); return *this;}
128 inline SecretValueEntry& AddVersionStages(const Aws::String& value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(value); return *this; }
129 inline SecretValueEntry& AddVersionStages(Aws::String&& value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(std::move(value)); return *this; }
130 inline SecretValueEntry& AddVersionStages(const char* value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(value); return *this; }
132
134
137 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
138 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
139 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
140 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
141 inline SecretValueEntry& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
142 inline SecretValueEntry& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
144 private:
145
146 Aws::String m_aRN;
147 bool m_aRNHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 Aws::String m_versionId;
153 bool m_versionIdHasBeenSet = false;
154
155 Aws::Utils::CryptoBuffer m_secretBinary;
156 bool m_secretBinaryHasBeenSet = false;
157
158 Aws::String m_secretString;
159 bool m_secretStringHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_versionStages;
162 bool m_versionStagesHasBeenSet = false;
163
164 Aws::Utils::DateTime m_createdDate;
165 bool m_createdDateHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace SecretsManager
170} // namespace Aws
SecretValueEntry & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
void SetARN(const Aws::String &value)
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
const Aws::Vector< Aws::String > & GetVersionStages() const
SecretValueEntry & WithVersionId(Aws::String &&value)
void SetSecretBinary(Aws::Utils::CryptoBuffer &&value)
bool NameHasBeenSet() const
SecretValueEntry & WithCreatedDate(const Aws::Utils::DateTime &value)
SecretValueEntry & WithVersionId(const Aws::String &value)
void SetSecretString(Aws::String &&value)
void SetARN(Aws::String &&value)
void SetSecretBinary(const Aws::Utils::CryptoBuffer &value)
SecretValueEntry & WithSecretBinary(Aws::Utils::CryptoBuffer &&value)
SecretValueEntry & WithName(const Aws::String &value)
AWS_SECRETSMANAGER_API SecretValueEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool VersionStagesHasBeenSet() const
SecretValueEntry & WithVersionId(const char *value)
void SetVersionStages(Aws::Vector< Aws::String > &&value)
SecretValueEntry & WithSecretBinary(const Aws::Utils::CryptoBuffer &value)
const Aws::String & GetVersionId() const
bool CreatedDateHasBeenSet() const
SecretValueEntry & WithSecretString(const char *value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
void SetVersionId(const Aws::String &value)
bool ARNHasBeenSet() const
SecretValueEntry & AddVersionStages(const Aws::String &value)
SecretValueEntry & WithVersionStages(Aws::Vector< Aws::String > &&value)
SecretValueEntry & WithSecretString(const Aws::String &value)
void SetName(const Aws::String &value)
void SetSecretString(const Aws::String &value)
void SetVersionId(const char *value)
void SetSecretString(const char *value)
bool SecretBinaryHasBeenSet() const
SecretValueEntry & WithARN(const char *value)
AWS_SECRETSMANAGER_API SecretValueEntry()
SecretValueEntry & AddVersionStages(Aws::String &&value)
bool VersionIdHasBeenSet() const
const Aws::String & GetName() const
const Aws::String & GetSecretString() const
SecretValueEntry & WithVersionStages(const Aws::Vector< Aws::String > &value)
AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
SecretValueEntry & WithARN(const Aws::String &value)
void SetARN(const char *value)
void SetName(const char *value)
void SetName(Aws::String &&value)
SecretValueEntry & WithSecretString(Aws::String &&value)
void SetVersionStages(const Aws::Vector< Aws::String > &value)
SecretValueEntry & WithARN(Aws::String &&value)
SecretValueEntry & WithName(Aws::String &&value)
SecretValueEntry & WithName(const char *value)
SecretValueEntry & AddVersionStages(const char *value)
const Aws::Utils::DateTime & GetCreatedDate() const
bool SecretStringHasBeenSet() const
const Aws::String & GetARN() const
void SetVersionId(Aws::String &&value)
AWS_SECRETSMANAGER_API SecretValueEntry(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue