AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AliasListEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kms/KMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace KMS {
21namespace Model {
22
29 public:
30 AWS_KMS_API AliasListEntry() = default;
34
36
40 inline const Aws::String& GetAliasName() const { return m_aliasName; }
41 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
42 template <typename AliasNameT = Aws::String>
43 void SetAliasName(AliasNameT&& value) {
44 m_aliasNameHasBeenSet = true;
45 m_aliasName = std::forward<AliasNameT>(value);
46 }
47 template <typename AliasNameT = Aws::String>
48 AliasListEntry& WithAliasName(AliasNameT&& value) {
49 SetAliasName(std::forward<AliasNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAliasArn() const { return m_aliasArn; }
59 inline bool AliasArnHasBeenSet() const { return m_aliasArnHasBeenSet; }
60 template <typename AliasArnT = Aws::String>
61 void SetAliasArn(AliasArnT&& value) {
62 m_aliasArnHasBeenSet = true;
63 m_aliasArn = std::forward<AliasArnT>(value);
64 }
65 template <typename AliasArnT = Aws::String>
66 AliasListEntry& WithAliasArn(AliasArnT&& value) {
67 SetAliasArn(std::forward<AliasArnT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetTargetKeyId() const { return m_targetKeyId; }
78 inline bool TargetKeyIdHasBeenSet() const { return m_targetKeyIdHasBeenSet; }
79 template <typename TargetKeyIdT = Aws::String>
80 void SetTargetKeyId(TargetKeyIdT&& value) {
81 m_targetKeyIdHasBeenSet = true;
82 m_targetKeyId = std::forward<TargetKeyIdT>(value);
83 }
84 template <typename TargetKeyIdT = Aws::String>
85 AliasListEntry& WithTargetKeyId(TargetKeyIdT&& value) {
86 SetTargetKeyId(std::forward<TargetKeyIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
97 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
98 template <typename CreationDateT = Aws::Utils::DateTime>
99 void SetCreationDate(CreationDateT&& value) {
100 m_creationDateHasBeenSet = true;
101 m_creationDate = std::forward<CreationDateT>(value);
102 }
103 template <typename CreationDateT = Aws::Utils::DateTime>
104 AliasListEntry& WithCreationDate(CreationDateT&& value) {
105 SetCreationDate(std::forward<CreationDateT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
116 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
117 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
118 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
119 m_lastUpdatedDateHasBeenSet = true;
120 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
121 }
122 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
123 AliasListEntry& WithLastUpdatedDate(LastUpdatedDateT&& value) {
124 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_aliasName;
130
131 Aws::String m_aliasArn;
132
133 Aws::String m_targetKeyId;
134
135 Aws::Utils::DateTime m_creationDate{};
136
137 Aws::Utils::DateTime m_lastUpdatedDate{};
138 bool m_aliasNameHasBeenSet = false;
139 bool m_aliasArnHasBeenSet = false;
140 bool m_targetKeyIdHasBeenSet = false;
141 bool m_creationDateHasBeenSet = false;
142 bool m_lastUpdatedDateHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace KMS
147} // namespace Aws
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KMS_API AliasListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTargetKeyId() const
AliasListEntry & WithLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::String & GetAliasArn() const
const Aws::String & GetAliasName() const
bool AliasNameHasBeenSet() const
AliasListEntry & WithTargetKeyId(TargetKeyIdT &&value)
AWS_KMS_API AliasListEntry(Aws::Utils::Json::JsonView jsonValue)
AliasListEntry & WithAliasArn(AliasArnT &&value)
AliasListEntry & WithAliasName(AliasNameT &&value)
void SetAliasArn(AliasArnT &&value)
AliasListEntry & WithCreationDate(CreationDateT &&value)
bool CreationDateHasBeenSet() const
void SetTargetKeyId(TargetKeyIdT &&value)
AWS_KMS_API AliasListEntry()=default
const Aws::Utils::DateTime & GetLastUpdatedDate() const
bool TargetKeyIdHasBeenSet() const
void SetAliasName(AliasNameT &&value)
bool AliasArnHasBeenSet() const
void SetCreationDate(CreationDateT &&value)
bool LastUpdatedDateHasBeenSet() const
void SetLastUpdatedDate(LastUpdatedDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue