AWS SDK for C++

AWS SDK for C++ Version 1.11.919

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 GetDigestType() const { return m_digestType; }
68 inline bool DigestTypeHasBeenSet() const { return m_digestTypeHasBeenSet; }
69 inline void SetDigestType(int value) {
70 m_digestTypeHasBeenSet = true;
71 m_digestType = value;
72 }
73 inline DnssecKey& WithDigestType(int value) {
74 SetDigestType(value);
75 return *this;
76 }
78
80
85 inline const Aws::String& GetDigest() const { return m_digest; }
86 inline bool DigestHasBeenSet() const { return m_digestHasBeenSet; }
87 template <typename DigestT = Aws::String>
88 void SetDigest(DigestT&& value) {
89 m_digestHasBeenSet = true;
90 m_digest = std::forward<DigestT>(value);
91 }
92 template <typename DigestT = Aws::String>
93 DnssecKey& WithDigest(DigestT&& value) {
94 SetDigest(std::forward<DigestT>(value));
95 return *this;
96 }
98
100
104 inline int GetKeyTag() const { return m_keyTag; }
105 inline bool KeyTagHasBeenSet() const { return m_keyTagHasBeenSet; }
106 inline void SetKeyTag(int value) {
107 m_keyTagHasBeenSet = true;
108 m_keyTag = value;
109 }
110 inline DnssecKey& WithKeyTag(int value) {
111 SetKeyTag(value);
112 return *this;
113 }
115
117
122 inline const Aws::String& GetId() const { return m_id; }
123 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
124 template <typename IdT = Aws::String>
125 void SetId(IdT&& value) {
126 m_idHasBeenSet = true;
127 m_id = std::forward<IdT>(value);
128 }
129 template <typename IdT = Aws::String>
130 DnssecKey& WithId(IdT&& value) {
131 SetId(std::forward<IdT>(value));
132 return *this;
133 }
135 private:
136 int m_algorithm{0};
137
138 int m_digestType{0};
139
140 Aws::String m_digest;
141
142 int m_keyTag{0};
143
144 Aws::String m_id;
145 bool m_algorithmHasBeenSet = false;
146 bool m_digestTypeHasBeenSet = false;
147 bool m_digestHasBeenSet = false;
148 bool m_keyTagHasBeenSet = false;
149 bool m_idHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace Route53Domains
154} // namespace Aws
DnssecKey & WithId(IdT &&value)
Definition DnssecKey.h:130
DnssecKey & WithKeyTag(int value)
Definition DnssecKey.h:110
DnssecKey & WithAlgorithm(int value)
Definition DnssecKey.h:53
const Aws::String & GetId() const
Definition DnssecKey.h:122
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:93
DnssecKey & WithDigestType(int value)
Definition DnssecKey.h:73
void SetDigest(DigestT &&value)
Definition DnssecKey.h:88
const Aws::String & GetDigest() const
Definition DnssecKey.h:85
AWS_ROUTE53DOMAINS_API DnssecKey(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue