AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrantListEntry.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kms/model/GrantConstraints.h>
12#include <aws/kms/model/GrantOperation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace KMS
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_KMS_API GrantListEntry();
42
43
45
48 inline const Aws::String& GetKeyId() const{ return m_keyId; }
49 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
50 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
51 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
52 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
53 inline GrantListEntry& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
54 inline GrantListEntry& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
55 inline GrantListEntry& WithKeyId(const char* value) { SetKeyId(value); return *this;}
57
59
62 inline const Aws::String& GetGrantId() const{ return m_grantId; }
63 inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
64 inline void SetGrantId(const Aws::String& value) { m_grantIdHasBeenSet = true; m_grantId = value; }
65 inline void SetGrantId(Aws::String&& value) { m_grantIdHasBeenSet = true; m_grantId = std::move(value); }
66 inline void SetGrantId(const char* value) { m_grantIdHasBeenSet = true; m_grantId.assign(value); }
67 inline GrantListEntry& WithGrantId(const Aws::String& value) { SetGrantId(value); return *this;}
68 inline GrantListEntry& WithGrantId(Aws::String&& value) { SetGrantId(std::move(value)); return *this;}
69 inline GrantListEntry& WithGrantId(const char* value) { SetGrantId(value); return *this;}
71
73
78 inline const Aws::String& GetName() const{ return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
81 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
82 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 inline GrantListEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline GrantListEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline GrantListEntry& WithName(const char* value) { SetName(value); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
93 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
94 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
95 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
96 inline GrantListEntry& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
97 inline GrantListEntry& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
99
101
110 inline const Aws::String& GetGranteePrincipal() const{ return m_granteePrincipal; }
111 inline bool GranteePrincipalHasBeenSet() const { return m_granteePrincipalHasBeenSet; }
112 inline void SetGranteePrincipal(const Aws::String& value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal = value; }
113 inline void SetGranteePrincipal(Aws::String&& value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal = std::move(value); }
114 inline void SetGranteePrincipal(const char* value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal.assign(value); }
115 inline GrantListEntry& WithGranteePrincipal(const Aws::String& value) { SetGranteePrincipal(value); return *this;}
116 inline GrantListEntry& WithGranteePrincipal(Aws::String&& value) { SetGranteePrincipal(std::move(value)); return *this;}
117 inline GrantListEntry& WithGranteePrincipal(const char* value) { SetGranteePrincipal(value); return *this;}
119
121
124 inline const Aws::String& GetRetiringPrincipal() const{ return m_retiringPrincipal; }
125 inline bool RetiringPrincipalHasBeenSet() const { return m_retiringPrincipalHasBeenSet; }
126 inline void SetRetiringPrincipal(const Aws::String& value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal = value; }
127 inline void SetRetiringPrincipal(Aws::String&& value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal = std::move(value); }
128 inline void SetRetiringPrincipal(const char* value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal.assign(value); }
129 inline GrantListEntry& WithRetiringPrincipal(const Aws::String& value) { SetRetiringPrincipal(value); return *this;}
130 inline GrantListEntry& WithRetiringPrincipal(Aws::String&& value) { SetRetiringPrincipal(std::move(value)); return *this;}
131 inline GrantListEntry& WithRetiringPrincipal(const char* value) { SetRetiringPrincipal(value); return *this;}
133
135
138 inline const Aws::String& GetIssuingAccount() const{ return m_issuingAccount; }
139 inline bool IssuingAccountHasBeenSet() const { return m_issuingAccountHasBeenSet; }
140 inline void SetIssuingAccount(const Aws::String& value) { m_issuingAccountHasBeenSet = true; m_issuingAccount = value; }
141 inline void SetIssuingAccount(Aws::String&& value) { m_issuingAccountHasBeenSet = true; m_issuingAccount = std::move(value); }
142 inline void SetIssuingAccount(const char* value) { m_issuingAccountHasBeenSet = true; m_issuingAccount.assign(value); }
143 inline GrantListEntry& WithIssuingAccount(const Aws::String& value) { SetIssuingAccount(value); return *this;}
144 inline GrantListEntry& WithIssuingAccount(Aws::String&& value) { SetIssuingAccount(std::move(value)); return *this;}
145 inline GrantListEntry& WithIssuingAccount(const char* value) { SetIssuingAccount(value); return *this;}
147
149
152 inline const Aws::Vector<GrantOperation>& GetOperations() const{ return m_operations; }
153 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
154 inline void SetOperations(const Aws::Vector<GrantOperation>& value) { m_operationsHasBeenSet = true; m_operations = value; }
155 inline void SetOperations(Aws::Vector<GrantOperation>&& value) { m_operationsHasBeenSet = true; m_operations = std::move(value); }
156 inline GrantListEntry& WithOperations(const Aws::Vector<GrantOperation>& value) { SetOperations(value); return *this;}
157 inline GrantListEntry& WithOperations(Aws::Vector<GrantOperation>&& value) { SetOperations(std::move(value)); return *this;}
158 inline GrantListEntry& AddOperations(const GrantOperation& value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
159 inline GrantListEntry& AddOperations(GrantOperation&& value) { m_operationsHasBeenSet = true; m_operations.push_back(std::move(value)); return *this; }
161
163
167 inline const GrantConstraints& GetConstraints() const{ return m_constraints; }
168 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
169 inline void SetConstraints(const GrantConstraints& value) { m_constraintsHasBeenSet = true; m_constraints = value; }
170 inline void SetConstraints(GrantConstraints&& value) { m_constraintsHasBeenSet = true; m_constraints = std::move(value); }
171 inline GrantListEntry& WithConstraints(const GrantConstraints& value) { SetConstraints(value); return *this;}
172 inline GrantListEntry& WithConstraints(GrantConstraints&& value) { SetConstraints(std::move(value)); return *this;}
174 private:
175
176 Aws::String m_keyId;
177 bool m_keyIdHasBeenSet = false;
178
179 Aws::String m_grantId;
180 bool m_grantIdHasBeenSet = false;
181
182 Aws::String m_name;
183 bool m_nameHasBeenSet = false;
184
185 Aws::Utils::DateTime m_creationDate;
186 bool m_creationDateHasBeenSet = false;
187
188 Aws::String m_granteePrincipal;
189 bool m_granteePrincipalHasBeenSet = false;
190
191 Aws::String m_retiringPrincipal;
192 bool m_retiringPrincipalHasBeenSet = false;
193
194 Aws::String m_issuingAccount;
195 bool m_issuingAccountHasBeenSet = false;
196
197 Aws::Vector<GrantOperation> m_operations;
198 bool m_operationsHasBeenSet = false;
199
200 GrantConstraints m_constraints;
201 bool m_constraintsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace KMS
206} // namespace Aws
void SetRetiringPrincipal(const Aws::String &value)
GrantListEntry & WithIssuingAccount(const Aws::String &value)
void SetGranteePrincipal(Aws::String &&value)
bool OperationsHasBeenSet() const
void SetGranteePrincipal(const char *value)
GrantListEntry & WithName(Aws::String &&value)
GrantListEntry & WithRetiringPrincipal(Aws::String &&value)
GrantListEntry & WithName(const char *value)
GrantListEntry & WithOperations(const Aws::Vector< GrantOperation > &value)
GrantListEntry & WithIssuingAccount(const char *value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetCreationDate(const Aws::Utils::DateTime &value)
bool ConstraintsHasBeenSet() const
AWS_KMS_API GrantListEntry()
void SetConstraints(GrantConstraints &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
bool IssuingAccountHasBeenSet() const
void SetOperations(const Aws::Vector< GrantOperation > &value)
void SetGrantId(Aws::String &&value)
void SetOperations(Aws::Vector< GrantOperation > &&value)
void SetGranteePrincipal(const Aws::String &value)
bool RetiringPrincipalHasBeenSet() const
AWS_KMS_API GrantListEntry(Aws::Utils::Json::JsonView jsonValue)
bool NameHasBeenSet() const
GrantListEntry & WithRetiringPrincipal(const char *value)
AWS_KMS_API GrantListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
GrantListEntry & WithRetiringPrincipal(const Aws::String &value)
const Aws::String & GetIssuingAccount() const
bool KeyIdHasBeenSet() const
GrantListEntry & WithGrantId(Aws::String &&value)
void SetRetiringPrincipal(const char *value)
void SetGrantId(const Aws::String &value)
void SetName(Aws::String &&value)
bool CreationDateHasBeenSet() const
GrantListEntry & WithGranteePrincipal(const Aws::String &value)
bool GranteePrincipalHasBeenSet() const
GrantListEntry & WithGranteePrincipal(Aws::String &&value)
GrantListEntry & WithKeyId(const char *value)
GrantListEntry & AddOperations(const GrantOperation &value)
GrantListEntry & WithIssuingAccount(Aws::String &&value)
void SetKeyId(const char *value)
void SetName(const Aws::String &value)
GrantListEntry & AddOperations(GrantOperation &&value)
GrantListEntry & WithGranteePrincipal(const char *value)
GrantListEntry & WithName(const Aws::String &value)
GrantListEntry & WithGrantId(const Aws::String &value)
void SetIssuingAccount(const Aws::String &value)
void SetIssuingAccount(const char *value)
GrantListEntry & WithConstraints(GrantConstraints &&value)
void SetRetiringPrincipal(Aws::String &&value)
GrantListEntry & WithGrantId(const char *value)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConstraints(const GrantConstraints &value)
const GrantConstraints & GetConstraints() const
void SetIssuingAccount(Aws::String &&value)
GrantListEntry & WithCreationDate(Aws::Utils::DateTime &&value)
const Aws::String & GetGranteePrincipal() const
GrantListEntry & WithCreationDate(const Aws::Utils::DateTime &value)
GrantListEntry & WithOperations(Aws::Vector< GrantOperation > &&value)
const Aws::String & GetName() const
GrantListEntry & WithConstraints(const GrantConstraints &value)
const Aws::String & GetGrantId() const
GrantListEntry & WithKeyId(const Aws::String &value)
GrantListEntry & WithKeyId(Aws::String &&value)
void SetKeyId(const Aws::String &value)
const Aws::Vector< GrantOperation > & GetOperations() const
bool GrantIdHasBeenSet() const
const Aws::String & GetRetiringPrincipal() const
const Aws::String & GetKeyId() const
void SetName(const char *value)
void SetKeyId(Aws::String &&value)
void SetGrantId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue