AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
SecretKey.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudExtensions {
20namespace Model {
21
28class SecretKey {
29 public:
30 AWS_CLOUDEXTENSIONS_API SecretKey() = default;
31 AWS_CLOUDEXTENSIONS_API SecretKey(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDEXTENSIONS_API SecretKey& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetLiteral() const { return m_literal; }
41 inline bool LiteralHasBeenSet() const { return m_literalHasBeenSet; }
42 template <typename LiteralT = Aws::String>
43 void SetLiteral(LiteralT&& value) {
44 m_literalHasBeenSet = true;
45 m_literal = std::forward<LiteralT>(value);
46 }
47 template <typename LiteralT = Aws::String>
48 SecretKey& WithLiteral(LiteralT&& value) {
49 SetLiteral(std::forward<LiteralT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetReference() const { return m_reference; }
59 inline bool ReferenceHasBeenSet() const { return m_referenceHasBeenSet; }
60 template <typename ReferenceT = Aws::String>
61 void SetReference(ReferenceT&& value) {
62 m_referenceHasBeenSet = true;
63 m_reference = std::forward<ReferenceT>(value);
64 }
65 template <typename ReferenceT = Aws::String>
66 SecretKey& WithReference(ReferenceT&& value) {
67 SetReference(std::forward<ReferenceT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_literal;
73
74 Aws::String m_reference;
75 bool m_literalHasBeenSet = false;
76 bool m_referenceHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CloudExtensions
81} // namespace Aws
const Aws::String & GetReference() const
Definition SecretKey.h:58
AWS_CLOUDEXTENSIONS_API SecretKey & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLiteral(LiteralT &&value)
Definition SecretKey.h:43
const Aws::String & GetLiteral() const
Definition SecretKey.h:40
SecretKey & WithReference(ReferenceT &&value)
Definition SecretKey.h:66
AWS_CLOUDEXTENSIONS_API SecretKey()=default
void SetReference(ReferenceT &&value)
Definition SecretKey.h:61
SecretKey & WithLiteral(LiteralT &&value)
Definition SecretKey.h:48
AWS_CLOUDEXTENSIONS_API SecretKey(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue