AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
42
43
45
48 inline const Aws::String& GetKeyId() const { return m_keyId; }
49 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
50 template<typename KeyIdT = Aws::String>
51 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
52 template<typename KeyIdT = Aws::String>
53 GrantListEntry& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetGrantId() const { return m_grantId; }
61 inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
62 template<typename GrantIdT = Aws::String>
63 void SetGrantId(GrantIdT&& value) { m_grantIdHasBeenSet = true; m_grantId = std::forward<GrantIdT>(value); }
64 template<typename GrantIdT = Aws::String>
65 GrantListEntry& WithGrantId(GrantIdT&& value) { SetGrantId(std::forward<GrantIdT>(value)); return *this;}
67
69
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 GrantListEntry& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
87 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
88 template<typename CreationDateT = Aws::Utils::DateTime>
89 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
90 template<typename CreationDateT = Aws::Utils::DateTime>
91 GrantListEntry& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
93
95
104 inline const Aws::String& GetGranteePrincipal() const { return m_granteePrincipal; }
105 inline bool GranteePrincipalHasBeenSet() const { return m_granteePrincipalHasBeenSet; }
106 template<typename GranteePrincipalT = Aws::String>
107 void SetGranteePrincipal(GranteePrincipalT&& value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal = std::forward<GranteePrincipalT>(value); }
108 template<typename GranteePrincipalT = Aws::String>
109 GrantListEntry& WithGranteePrincipal(GranteePrincipalT&& value) { SetGranteePrincipal(std::forward<GranteePrincipalT>(value)); return *this;}
111
113
116 inline const Aws::String& GetRetiringPrincipal() const { return m_retiringPrincipal; }
117 inline bool RetiringPrincipalHasBeenSet() const { return m_retiringPrincipalHasBeenSet; }
118 template<typename RetiringPrincipalT = Aws::String>
119 void SetRetiringPrincipal(RetiringPrincipalT&& value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal = std::forward<RetiringPrincipalT>(value); }
120 template<typename RetiringPrincipalT = Aws::String>
121 GrantListEntry& WithRetiringPrincipal(RetiringPrincipalT&& value) { SetRetiringPrincipal(std::forward<RetiringPrincipalT>(value)); return *this;}
123
125
128 inline const Aws::String& GetIssuingAccount() const { return m_issuingAccount; }
129 inline bool IssuingAccountHasBeenSet() const { return m_issuingAccountHasBeenSet; }
130 template<typename IssuingAccountT = Aws::String>
131 void SetIssuingAccount(IssuingAccountT&& value) { m_issuingAccountHasBeenSet = true; m_issuingAccount = std::forward<IssuingAccountT>(value); }
132 template<typename IssuingAccountT = Aws::String>
133 GrantListEntry& WithIssuingAccount(IssuingAccountT&& value) { SetIssuingAccount(std::forward<IssuingAccountT>(value)); return *this;}
135
137
140 inline const Aws::Vector<GrantOperation>& GetOperations() const { return m_operations; }
141 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
142 template<typename OperationsT = Aws::Vector<GrantOperation>>
143 void SetOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations = std::forward<OperationsT>(value); }
144 template<typename OperationsT = Aws::Vector<GrantOperation>>
145 GrantListEntry& WithOperations(OperationsT&& value) { SetOperations(std::forward<OperationsT>(value)); return *this;}
146 inline GrantListEntry& AddOperations(GrantOperation value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
148
150
154 inline const GrantConstraints& GetConstraints() const { return m_constraints; }
155 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
156 template<typename ConstraintsT = GrantConstraints>
157 void SetConstraints(ConstraintsT&& value) { m_constraintsHasBeenSet = true; m_constraints = std::forward<ConstraintsT>(value); }
158 template<typename ConstraintsT = GrantConstraints>
159 GrantListEntry& WithConstraints(ConstraintsT&& value) { SetConstraints(std::forward<ConstraintsT>(value)); return *this;}
161 private:
162
163 Aws::String m_keyId;
164 bool m_keyIdHasBeenSet = false;
165
166 Aws::String m_grantId;
167 bool m_grantIdHasBeenSet = false;
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
172 Aws::Utils::DateTime m_creationDate{};
173 bool m_creationDateHasBeenSet = false;
174
175 Aws::String m_granteePrincipal;
176 bool m_granteePrincipalHasBeenSet = false;
177
178 Aws::String m_retiringPrincipal;
179 bool m_retiringPrincipalHasBeenSet = false;
180
181 Aws::String m_issuingAccount;
182 bool m_issuingAccountHasBeenSet = false;
183
184 Aws::Vector<GrantOperation> m_operations;
185 bool m_operationsHasBeenSet = false;
186
187 GrantConstraints m_constraints;
188 bool m_constraintsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace KMS
193} // namespace Aws
GrantListEntry & WithGrantId(GrantIdT &&value)
bool OperationsHasBeenSet() const
const Aws::Utils::DateTime & GetCreationDate() const
bool ConstraintsHasBeenSet() const
void SetIssuingAccount(IssuingAccountT &&value)
bool IssuingAccountHasBeenSet() const
GrantListEntry & WithGranteePrincipal(GranteePrincipalT &&value)
bool RetiringPrincipalHasBeenSet() const
AWS_KMS_API GrantListEntry(Aws::Utils::Json::JsonView jsonValue)
bool NameHasBeenSet() const
AWS_KMS_API GrantListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIssuingAccount() const
GrantListEntry & WithIssuingAccount(IssuingAccountT &&value)
bool KeyIdHasBeenSet() const
void SetRetiringPrincipal(RetiringPrincipalT &&value)
void SetKeyId(KeyIdT &&value)
void SetGranteePrincipal(GranteePrincipalT &&value)
bool CreationDateHasBeenSet() const
void SetGrantId(GrantIdT &&value)
bool GranteePrincipalHasBeenSet() const
GrantListEntry & WithName(NameT &&value)
GrantListEntry & WithRetiringPrincipal(RetiringPrincipalT &&value)
GrantListEntry & WithKeyId(KeyIdT &&value)
GrantListEntry & WithOperations(OperationsT &&value)
void SetConstraints(ConstraintsT &&value)
GrantListEntry & WithConstraints(ConstraintsT &&value)
void SetOperations(OperationsT &&value)
void SetName(NameT &&value)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
const GrantConstraints & GetConstraints() const
const Aws::String & GetGranteePrincipal() const
const Aws::String & GetName() const
const Aws::String & GetGrantId() const
AWS_KMS_API GrantListEntry()=default
const Aws::Vector< GrantOperation > & GetOperations() const
GrantListEntry & WithCreationDate(CreationDateT &&value)
bool GrantIdHasBeenSet() const
const Aws::String & GetRetiringPrincipal() const
const Aws::String & GetKeyId() const
void SetCreationDate(CreationDateT &&value)
GrantListEntry & AddOperations(GrantOperation 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