AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
46 inline const Aws::String& GetAliasName() const{ return m_aliasName; }
47 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
48 inline void SetAliasName(const Aws::String& value) { m_aliasNameHasBeenSet = true; m_aliasName = value; }
49 inline void SetAliasName(Aws::String&& value) { m_aliasNameHasBeenSet = true; m_aliasName = std::move(value); }
50 inline void SetAliasName(const char* value) { m_aliasNameHasBeenSet = true; m_aliasName.assign(value); }
51 inline AliasListEntry& WithAliasName(const Aws::String& value) { SetAliasName(value); return *this;}
52 inline AliasListEntry& WithAliasName(Aws::String&& value) { SetAliasName(std::move(value)); return *this;}
53 inline AliasListEntry& WithAliasName(const char* value) { SetAliasName(value); return *this;}
55
57
60 inline const Aws::String& GetAliasArn() const{ return m_aliasArn; }
61 inline bool AliasArnHasBeenSet() const { return m_aliasArnHasBeenSet; }
62 inline void SetAliasArn(const Aws::String& value) { m_aliasArnHasBeenSet = true; m_aliasArn = value; }
63 inline void SetAliasArn(Aws::String&& value) { m_aliasArnHasBeenSet = true; m_aliasArn = std::move(value); }
64 inline void SetAliasArn(const char* value) { m_aliasArnHasBeenSet = true; m_aliasArn.assign(value); }
65 inline AliasListEntry& WithAliasArn(const Aws::String& value) { SetAliasArn(value); return *this;}
66 inline AliasListEntry& WithAliasArn(Aws::String&& value) { SetAliasArn(std::move(value)); return *this;}
67 inline AliasListEntry& WithAliasArn(const char* value) { SetAliasArn(value); return *this;}
69
71
75 inline const Aws::String& GetTargetKeyId() const{ return m_targetKeyId; }
76 inline bool TargetKeyIdHasBeenSet() const { return m_targetKeyIdHasBeenSet; }
77 inline void SetTargetKeyId(const Aws::String& value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId = value; }
78 inline void SetTargetKeyId(Aws::String&& value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId = std::move(value); }
79 inline void SetTargetKeyId(const char* value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId.assign(value); }
80 inline AliasListEntry& WithTargetKeyId(const Aws::String& value) { SetTargetKeyId(value); return *this;}
81 inline AliasListEntry& WithTargetKeyId(Aws::String&& value) { SetTargetKeyId(std::move(value)); return *this;}
82 inline AliasListEntry& WithTargetKeyId(const char* value) { SetTargetKeyId(value); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
91 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
92 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
93 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
94 inline AliasListEntry& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
95 inline AliasListEntry& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
97
99
103 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
104 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
105 inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; }
106 inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); }
107 inline AliasListEntry& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
108 inline AliasListEntry& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_aliasName;
113 bool m_aliasNameHasBeenSet = false;
114
115 Aws::String m_aliasArn;
116 bool m_aliasArnHasBeenSet = false;
117
118 Aws::String m_targetKeyId;
119 bool m_targetKeyIdHasBeenSet = false;
120
121 Aws::Utils::DateTime m_creationDate;
122 bool m_creationDateHasBeenSet = false;
123
124 Aws::Utils::DateTime m_lastUpdatedDate;
125 bool m_lastUpdatedDateHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace KMS
130} // 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(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::String & GetAliasArn() const
AWS_KMS_API AliasListEntry()
const Aws::String & GetAliasName() const
bool AliasNameHasBeenSet() const
void SetAliasName(Aws::String &&value)
AliasListEntry & WithCreationDate(const Aws::Utils::DateTime &value)
AliasListEntry & WithCreationDate(Aws::Utils::DateTime &&value)
AliasListEntry & WithAliasName(const char *value)
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
AWS_KMS_API AliasListEntry(Aws::Utils::Json::JsonView jsonValue)
void SetAliasArn(const char *value)
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
bool CreationDateHasBeenSet() const
void SetTargetKeyId(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
AliasListEntry & WithTargetKeyId(const char *value)
void SetCreationDate(Aws::Utils::DateTime &&value)
bool TargetKeyIdHasBeenSet() const
AliasListEntry & WithTargetKeyId(const Aws::String &value)
void SetTargetKeyId(const char *value)
bool AliasArnHasBeenSet() const
void SetAliasArn(const Aws::String &value)
bool LastUpdatedDateHasBeenSet() const
void SetAliasArn(Aws::String &&value)
AliasListEntry & WithAliasArn(const Aws::String &value)
AliasListEntry & WithAliasName(Aws::String &&value)
AliasListEntry & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
void SetAliasName(const char *value)
void SetTargetKeyId(Aws::String &&value)
AliasListEntry & WithTargetKeyId(Aws::String &&value)
AliasListEntry & WithAliasName(const Aws::String &value)
AliasListEntry & WithAliasArn(Aws::String &&value)
void SetAliasName(const Aws::String &value)
AliasListEntry & WithAliasArn(const char *value)
void SetCreationDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue