AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AliasListEntry.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace KMS
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_KMS_API AliasListEntry() = default;
39
40
42
46 inline const Aws::String& GetAliasName() const { return m_aliasName; }
47 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
48 template<typename AliasNameT = Aws::String>
49 void SetAliasName(AliasNameT&& value) { m_aliasNameHasBeenSet = true; m_aliasName = std::forward<AliasNameT>(value); }
50 template<typename AliasNameT = Aws::String>
51 AliasListEntry& WithAliasName(AliasNameT&& value) { SetAliasName(std::forward<AliasNameT>(value)); return *this;}
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) { m_aliasArnHasBeenSet = true; m_aliasArn = std::forward<AliasArnT>(value); }
62 template<typename AliasArnT = Aws::String>
63 AliasListEntry& WithAliasArn(AliasArnT&& value) { SetAliasArn(std::forward<AliasArnT>(value)); return *this;}
65
67
71 inline const Aws::String& GetTargetKeyId() const { return m_targetKeyId; }
72 inline bool TargetKeyIdHasBeenSet() const { return m_targetKeyIdHasBeenSet; }
73 template<typename TargetKeyIdT = Aws::String>
74 void SetTargetKeyId(TargetKeyIdT&& value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId = std::forward<TargetKeyIdT>(value); }
75 template<typename TargetKeyIdT = Aws::String>
76 AliasListEntry& WithTargetKeyId(TargetKeyIdT&& value) { SetTargetKeyId(std::forward<TargetKeyIdT>(value)); return *this;}
78
80
84 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
85 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
86 template<typename CreationDateT = Aws::Utils::DateTime>
87 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
88 template<typename CreationDateT = Aws::Utils::DateTime>
89 AliasListEntry& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
91
93
97 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
98 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
99 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
100 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
101 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
102 AliasListEntry& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
104 private:
105
106 Aws::String m_aliasName;
107 bool m_aliasNameHasBeenSet = false;
108
109 Aws::String m_aliasArn;
110 bool m_aliasArnHasBeenSet = false;
111
112 Aws::String m_targetKeyId;
113 bool m_targetKeyIdHasBeenSet = false;
114
115 Aws::Utils::DateTime m_creationDate{};
116 bool m_creationDateHasBeenSet = false;
117
118 Aws::Utils::DateTime m_lastUpdatedDate{};
119 bool m_lastUpdatedDateHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace KMS
124} // 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