AWS SDK for C++  1.9.155
AWS SDK for C++
KmsGrantConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AccessAnalyzer
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
53  inline const KmsGrantConstraints& GetConstraints() const{ return m_constraints; }
54 
63  inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
64 
73  inline void SetConstraints(const KmsGrantConstraints& value) { m_constraintsHasBeenSet = true; m_constraints = value; }
74 
83  inline void SetConstraints(KmsGrantConstraints&& value) { m_constraintsHasBeenSet = true; m_constraints = std::move(value); }
84 
93  inline KmsGrantConfiguration& WithConstraints(const KmsGrantConstraints& value) { SetConstraints(value); return *this;}
94 
103  inline KmsGrantConfiguration& WithConstraints(KmsGrantConstraints&& value) { SetConstraints(std::move(value)); return *this;}
104 
105 
110  inline const Aws::String& GetGranteePrincipal() const{ return m_granteePrincipal; }
111 
116  inline bool GranteePrincipalHasBeenSet() const { return m_granteePrincipalHasBeenSet; }
117 
122  inline void SetGranteePrincipal(const Aws::String& value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal = value; }
123 
128  inline void SetGranteePrincipal(Aws::String&& value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal = std::move(value); }
129 
134  inline void SetGranteePrincipal(const char* value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal.assign(value); }
135 
140  inline KmsGrantConfiguration& WithGranteePrincipal(const Aws::String& value) { SetGranteePrincipal(value); return *this;}
141 
146  inline KmsGrantConfiguration& WithGranteePrincipal(Aws::String&& value) { SetGranteePrincipal(std::move(value)); return *this;}
147 
152  inline KmsGrantConfiguration& WithGranteePrincipal(const char* value) { SetGranteePrincipal(value); return *this;}
153 
154 
160  inline const Aws::String& GetIssuingAccount() const{ return m_issuingAccount; }
161 
167  inline bool IssuingAccountHasBeenSet() const { return m_issuingAccountHasBeenSet; }
168 
174  inline void SetIssuingAccount(const Aws::String& value) { m_issuingAccountHasBeenSet = true; m_issuingAccount = value; }
175 
181  inline void SetIssuingAccount(Aws::String&& value) { m_issuingAccountHasBeenSet = true; m_issuingAccount = std::move(value); }
182 
188  inline void SetIssuingAccount(const char* value) { m_issuingAccountHasBeenSet = true; m_issuingAccount.assign(value); }
189 
195  inline KmsGrantConfiguration& WithIssuingAccount(const Aws::String& value) { SetIssuingAccount(value); return *this;}
196 
202  inline KmsGrantConfiguration& WithIssuingAccount(Aws::String&& value) { SetIssuingAccount(std::move(value)); return *this;}
203 
209  inline KmsGrantConfiguration& WithIssuingAccount(const char* value) { SetIssuingAccount(value); return *this;}
210 
211 
215  inline const Aws::Vector<KmsGrantOperation>& GetOperations() const{ return m_operations; }
216 
220  inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
221 
225  inline void SetOperations(const Aws::Vector<KmsGrantOperation>& value) { m_operationsHasBeenSet = true; m_operations = value; }
226 
230  inline void SetOperations(Aws::Vector<KmsGrantOperation>&& value) { m_operationsHasBeenSet = true; m_operations = std::move(value); }
231 
235  inline KmsGrantConfiguration& WithOperations(const Aws::Vector<KmsGrantOperation>& value) { SetOperations(value); return *this;}
236 
240  inline KmsGrantConfiguration& WithOperations(Aws::Vector<KmsGrantOperation>&& value) { SetOperations(std::move(value)); return *this;}
241 
245  inline KmsGrantConfiguration& AddOperations(const KmsGrantOperation& value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
246 
250  inline KmsGrantConfiguration& AddOperations(KmsGrantOperation&& value) { m_operationsHasBeenSet = true; m_operations.push_back(std::move(value)); return *this; }
251 
252 
258  inline const Aws::String& GetRetiringPrincipal() const{ return m_retiringPrincipal; }
259 
265  inline bool RetiringPrincipalHasBeenSet() const { return m_retiringPrincipalHasBeenSet; }
266 
272  inline void SetRetiringPrincipal(const Aws::String& value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal = value; }
273 
279  inline void SetRetiringPrincipal(Aws::String&& value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal = std::move(value); }
280 
286  inline void SetRetiringPrincipal(const char* value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal.assign(value); }
287 
293  inline KmsGrantConfiguration& WithRetiringPrincipal(const Aws::String& value) { SetRetiringPrincipal(value); return *this;}
294 
300  inline KmsGrantConfiguration& WithRetiringPrincipal(Aws::String&& value) { SetRetiringPrincipal(std::move(value)); return *this;}
301 
307  inline KmsGrantConfiguration& WithRetiringPrincipal(const char* value) { SetRetiringPrincipal(value); return *this;}
308 
309  private:
310 
311  KmsGrantConstraints m_constraints;
312  bool m_constraintsHasBeenSet;
313 
314  Aws::String m_granteePrincipal;
315  bool m_granteePrincipalHasBeenSet;
316 
317  Aws::String m_issuingAccount;
318  bool m_issuingAccountHasBeenSet;
319 
320  Aws::Vector<KmsGrantOperation> m_operations;
321  bool m_operationsHasBeenSet;
322 
323  Aws::String m_retiringPrincipal;
324  bool m_retiringPrincipalHasBeenSet;
325  };
326 
327 } // namespace Model
328 } // namespace AccessAnalyzer
329 } // namespace Aws
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithGranteePrincipal
KmsGrantConfiguration & WithGranteePrincipal(Aws::String &&value)
Definition: KmsGrantConfiguration.h:146
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithGranteePrincipal
KmsGrantConfiguration & WithGranteePrincipal(const Aws::String &value)
Definition: KmsGrantConfiguration.h:140
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetRetiringPrincipal
void SetRetiringPrincipal(const Aws::String &value)
Definition: KmsGrantConfiguration.h:272
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetIssuingAccount
void SetIssuingAccount(const char *value)
Definition: KmsGrantConfiguration.h:188
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::OperationsHasBeenSet
bool OperationsHasBeenSet() const
Definition: KmsGrantConfiguration.h:220
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithIssuingAccount
KmsGrantConfiguration & WithIssuingAccount(const char *value)
Definition: KmsGrantConfiguration.h:209
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::KmsGrantConfiguration
KmsGrantConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetConstraints
void SetConstraints(const KmsGrantConstraints &value)
Definition: KmsGrantConfiguration.h:73
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetGranteePrincipal
void SetGranteePrincipal(Aws::String &&value)
Definition: KmsGrantConfiguration.h:128
KmsGrantOperation.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::GetConstraints
const KmsGrantConstraints & GetConstraints() const
Definition: KmsGrantConfiguration.h:53
KmsGrantConstraints.h
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::AddOperations
KmsGrantConfiguration & AddOperations(KmsGrantOperation &&value)
Definition: KmsGrantConfiguration.h:250
AWSVector.h
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetRetiringPrincipal
void SetRetiringPrincipal(const char *value)
Definition: KmsGrantConfiguration.h:286
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::GetOperations
const Aws::Vector< KmsGrantOperation > & GetOperations() const
Definition: KmsGrantConfiguration.h:215
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetOperations
void SetOperations(const Aws::Vector< KmsGrantOperation > &value)
Definition: KmsGrantConfiguration.h:225
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::AddOperations
KmsGrantConfiguration & AddOperations(const KmsGrantOperation &value)
Definition: KmsGrantConfiguration.h:245
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::GetIssuingAccount
const Aws::String & GetIssuingAccount() const
Definition: KmsGrantConfiguration.h:160
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithConstraints
KmsGrantConfiguration & WithConstraints(KmsGrantConstraints &&value)
Definition: KmsGrantConfiguration.h:103
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::ConstraintsHasBeenSet
bool ConstraintsHasBeenSet() const
Definition: KmsGrantConfiguration.h:63
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetGranteePrincipal
void SetGranteePrincipal(const char *value)
Definition: KmsGrantConfiguration.h:134
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithOperations
KmsGrantConfiguration & WithOperations(Aws::Vector< KmsGrantOperation > &&value)
Definition: KmsGrantConfiguration.h:240
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithIssuingAccount
KmsGrantConfiguration & WithIssuingAccount(Aws::String &&value)
Definition: KmsGrantConfiguration.h:202
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::KmsGrantConfiguration
KmsGrantConfiguration()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithConstraints
KmsGrantConfiguration & WithConstraints(const KmsGrantConstraints &value)
Definition: KmsGrantConfiguration.h:93
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithGranteePrincipal
KmsGrantConfiguration & WithGranteePrincipal(const char *value)
Definition: KmsGrantConfiguration.h:152
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::KmsGrantConstraints
Definition: KmsGrantConstraints.h:41
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::GetRetiringPrincipal
const Aws::String & GetRetiringPrincipal() const
Definition: KmsGrantConfiguration.h:258
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithOperations
KmsGrantConfiguration & WithOperations(const Aws::Vector< KmsGrantOperation > &value)
Definition: KmsGrantConfiguration.h:235
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetIssuingAccount
void SetIssuingAccount(const Aws::String &value)
Definition: KmsGrantConfiguration.h:174
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetIssuingAccount
void SetIssuingAccount(Aws::String &&value)
Definition: KmsGrantConfiguration.h:181
Aws::AccessAnalyzer::Model::KmsGrantConfiguration
Definition: KmsGrantConfiguration.h:37
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::GetGranteePrincipal
const Aws::String & GetGranteePrincipal() const
Definition: KmsGrantConfiguration.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::operator=
KmsGrantConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithRetiringPrincipal
KmsGrantConfiguration & WithRetiringPrincipal(const char *value)
Definition: KmsGrantConfiguration.h:307
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithRetiringPrincipal
KmsGrantConfiguration & WithRetiringPrincipal(const Aws::String &value)
Definition: KmsGrantConfiguration.h:293
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithRetiringPrincipal
KmsGrantConfiguration & WithRetiringPrincipal(Aws::String &&value)
Definition: KmsGrantConfiguration.h:300
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::RetiringPrincipalHasBeenSet
bool RetiringPrincipalHasBeenSet() const
Definition: KmsGrantConfiguration.h:265
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetConstraints
void SetConstraints(KmsGrantConstraints &&value)
Definition: KmsGrantConfiguration.h:83
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::IssuingAccountHasBeenSet
bool IssuingAccountHasBeenSet() const
Definition: KmsGrantConfiguration.h:167
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetOperations
void SetOperations(Aws::Vector< KmsGrantOperation > &&value)
Definition: KmsGrantConfiguration.h:230
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::WithIssuingAccount
KmsGrantConfiguration & WithIssuingAccount(const Aws::String &value)
Definition: KmsGrantConfiguration.h:195
Aws::AccessAnalyzer::Model::KmsGrantOperation
KmsGrantOperation
Definition: KmsGrantOperation.h:17
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::GranteePrincipalHasBeenSet
bool GranteePrincipalHasBeenSet() const
Definition: KmsGrantConfiguration.h:116
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetRetiringPrincipal
void SetRetiringPrincipal(Aws::String &&value)
Definition: KmsGrantConfiguration.h:279
Aws::AccessAnalyzer::Model::KmsGrantConfiguration::SetGranteePrincipal
void SetGranteePrincipal(const Aws::String &value)
Definition: KmsGrantConfiguration.h:122