AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DnssecKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53domains/Route53Domains_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Route53Domains {
20namespace Model {
21
31class DnssecKey {
32 public:
33 AWS_ROUTE53DOMAINS_API DnssecKey() = default;
34 AWS_ROUTE53DOMAINS_API DnssecKey(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROUTE53DOMAINS_API DnssecKey& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
47 inline int GetAlgorithm() const { return m_algorithm; }
48 inline bool AlgorithmHasBeenSet() const { return m_algorithmHasBeenSet; }
49 inline void SetAlgorithm(int value) {
50 m_algorithmHasBeenSet = true;
51 m_algorithm = value;
52 }
53 inline DnssecKey& WithAlgorithm(int value) {
54 SetAlgorithm(value);
55 return *this;
56 }
58
60
67 inline int GetFlags() const { return m_flags; }
68 inline bool FlagsHasBeenSet() const { return m_flagsHasBeenSet; }
69 inline void SetFlags(int value) {
70 m_flagsHasBeenSet = true;
71 m_flags = value;
72 }
73 inline DnssecKey& WithFlags(int value) {
74 SetFlags(value);
75 return *this;
76 }
78
80
84 inline const Aws::String& GetPublicKey() const { return m_publicKey; }
85 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
86 template <typename PublicKeyT = Aws::String>
87 void SetPublicKey(PublicKeyT&& value) {
88 m_publicKeyHasBeenSet = true;
89 m_publicKey = std::forward<PublicKeyT>(value);
90 }
91 template <typename PublicKeyT = Aws::String>
92 DnssecKey& WithPublicKey(PublicKeyT&& value) {
93 SetPublicKey(std::forward<PublicKeyT>(value));
94 return *this;
95 }
97
99
106 inline int GetDigestType() const { return m_digestType; }
107 inline bool DigestTypeHasBeenSet() const { return m_digestTypeHasBeenSet; }
108 inline void SetDigestType(int value) {
109 m_digestTypeHasBeenSet = true;
110 m_digestType = value;
111 }
112 inline DnssecKey& WithDigestType(int value) {
113 SetDigestType(value);
114 return *this;
115 }
117
119
124 inline const Aws::String& GetDigest() const { return m_digest; }
125 inline bool DigestHasBeenSet() const { return m_digestHasBeenSet; }
126 template <typename DigestT = Aws::String>
127 void SetDigest(DigestT&& value) {
128 m_digestHasBeenSet = true;
129 m_digest = std::forward<DigestT>(value);
130 }
131 template <typename DigestT = Aws::String>
132 DnssecKey& WithDigest(DigestT&& value) {
133 SetDigest(std::forward<DigestT>(value));
134 return *this;
135 }
137
139
143 inline int GetKeyTag() const { return m_keyTag; }
144 inline bool KeyTagHasBeenSet() const { return m_keyTagHasBeenSet; }
145 inline void SetKeyTag(int value) {
146 m_keyTagHasBeenSet = true;
147 m_keyTag = value;
148 }
149 inline DnssecKey& WithKeyTag(int value) {
150 SetKeyTag(value);
151 return *this;
152 }
154
156
161 inline const Aws::String& GetId() const { return m_id; }
162 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
163 template <typename IdT = Aws::String>
164 void SetId(IdT&& value) {
165 m_idHasBeenSet = true;
166 m_id = std::forward<IdT>(value);
167 }
168 template <typename IdT = Aws::String>
169 DnssecKey& WithId(IdT&& value) {
170 SetId(std::forward<IdT>(value));
171 return *this;
172 }
174 private:
175 int m_algorithm{0};
176
177 int m_flags{0};
178
179 Aws::String m_publicKey;
180
181 int m_digestType{0};
182
183 Aws::String m_digest;
184
185 int m_keyTag{0};
186
187 Aws::String m_id;
188 bool m_algorithmHasBeenSet = false;
189 bool m_flagsHasBeenSet = false;
190 bool m_publicKeyHasBeenSet = false;
191 bool m_digestTypeHasBeenSet = false;
192 bool m_digestHasBeenSet = false;
193 bool m_keyTagHasBeenSet = false;
194 bool m_idHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace Route53Domains
199} // namespace Aws
DnssecKey & WithId(IdT &&value)
Definition DnssecKey.h:169
const Aws::String & GetPublicKey() const
Definition DnssecKey.h:84
DnssecKey & WithPublicKey(PublicKeyT &&value)
Definition DnssecKey.h:92
DnssecKey & WithKeyTag(int value)
Definition DnssecKey.h:149
DnssecKey & WithAlgorithm(int value)
Definition DnssecKey.h:53
const Aws::String & GetId() const
Definition DnssecKey.h:161
AWS_ROUTE53DOMAINS_API DnssecKey()=default
AWS_ROUTE53DOMAINS_API DnssecKey & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const
DnssecKey & WithDigest(DigestT &&value)
Definition DnssecKey.h:132
DnssecKey & WithDigestType(int value)
Definition DnssecKey.h:112
DnssecKey & WithFlags(int value)
Definition DnssecKey.h:73
void SetDigest(DigestT &&value)
Definition DnssecKey.h:127
const Aws::String & GetDigest() const
Definition DnssecKey.h:124
AWS_ROUTE53DOMAINS_API DnssecKey(Aws::Utils::Json::JsonView jsonValue)
void SetPublicKey(PublicKeyT &&value)
Definition DnssecKey.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue