AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KmsGrantConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/accessanalyzer/model/KmsGrantConstraints.h>
11#include <aws/accessanalyzer/model/KmsGrantOperation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_ACCESSANALYZER_API KmsGrantConfiguration();
40 AWS_ACCESSANALYZER_API KmsGrantConfiguration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<KmsGrantOperation>& GetOperations() const{ return m_operations; }
50 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
51 inline void SetOperations(const Aws::Vector<KmsGrantOperation>& value) { m_operationsHasBeenSet = true; m_operations = value; }
52 inline void SetOperations(Aws::Vector<KmsGrantOperation>&& value) { m_operationsHasBeenSet = true; m_operations = std::move(value); }
54 inline KmsGrantConfiguration& WithOperations(Aws::Vector<KmsGrantOperation>&& value) { SetOperations(std::move(value)); return *this;}
55 inline KmsGrantConfiguration& AddOperations(const KmsGrantOperation& value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
56 inline KmsGrantConfiguration& AddOperations(KmsGrantOperation&& value) { m_operationsHasBeenSet = true; m_operations.push_back(std::move(value)); return *this; }
58
60
64 inline const Aws::String& GetGranteePrincipal() const{ return m_granteePrincipal; }
65 inline bool GranteePrincipalHasBeenSet() const { return m_granteePrincipalHasBeenSet; }
66 inline void SetGranteePrincipal(const Aws::String& value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal = value; }
67 inline void SetGranteePrincipal(Aws::String&& value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal = std::move(value); }
68 inline void SetGranteePrincipal(const char* value) { m_granteePrincipalHasBeenSet = true; m_granteePrincipal.assign(value); }
69 inline KmsGrantConfiguration& WithGranteePrincipal(const Aws::String& value) { SetGranteePrincipal(value); return *this;}
70 inline KmsGrantConfiguration& WithGranteePrincipal(Aws::String&& value) { SetGranteePrincipal(std::move(value)); return *this;}
71 inline KmsGrantConfiguration& WithGranteePrincipal(const char* value) { SetGranteePrincipal(value); return *this;}
73
75
80 inline const Aws::String& GetRetiringPrincipal() const{ return m_retiringPrincipal; }
81 inline bool RetiringPrincipalHasBeenSet() const { return m_retiringPrincipalHasBeenSet; }
82 inline void SetRetiringPrincipal(const Aws::String& value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal = value; }
83 inline void SetRetiringPrincipal(Aws::String&& value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal = std::move(value); }
84 inline void SetRetiringPrincipal(const char* value) { m_retiringPrincipalHasBeenSet = true; m_retiringPrincipal.assign(value); }
85 inline KmsGrantConfiguration& WithRetiringPrincipal(const Aws::String& value) { SetRetiringPrincipal(value); return *this;}
86 inline KmsGrantConfiguration& WithRetiringPrincipal(Aws::String&& value) { SetRetiringPrincipal(std::move(value)); return *this;}
87 inline KmsGrantConfiguration& WithRetiringPrincipal(const char* value) { SetRetiringPrincipal(value); return *this;}
89
91
99 inline const KmsGrantConstraints& GetConstraints() const{ return m_constraints; }
100 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
101 inline void SetConstraints(const KmsGrantConstraints& value) { m_constraintsHasBeenSet = true; m_constraints = value; }
102 inline void SetConstraints(KmsGrantConstraints&& value) { m_constraintsHasBeenSet = true; m_constraints = std::move(value); }
103 inline KmsGrantConfiguration& WithConstraints(const KmsGrantConstraints& value) { SetConstraints(value); return *this;}
104 inline KmsGrantConfiguration& WithConstraints(KmsGrantConstraints&& value) { SetConstraints(std::move(value)); return *this;}
106
108
113 inline const Aws::String& GetIssuingAccount() const{ return m_issuingAccount; }
114 inline bool IssuingAccountHasBeenSet() const { return m_issuingAccountHasBeenSet; }
115 inline void SetIssuingAccount(const Aws::String& value) { m_issuingAccountHasBeenSet = true; m_issuingAccount = value; }
116 inline void SetIssuingAccount(Aws::String&& value) { m_issuingAccountHasBeenSet = true; m_issuingAccount = std::move(value); }
117 inline void SetIssuingAccount(const char* value) { m_issuingAccountHasBeenSet = true; m_issuingAccount.assign(value); }
118 inline KmsGrantConfiguration& WithIssuingAccount(const Aws::String& value) { SetIssuingAccount(value); return *this;}
119 inline KmsGrantConfiguration& WithIssuingAccount(Aws::String&& value) { SetIssuingAccount(std::move(value)); return *this;}
120 inline KmsGrantConfiguration& WithIssuingAccount(const char* value) { SetIssuingAccount(value); return *this;}
122 private:
123
125 bool m_operationsHasBeenSet = false;
126
127 Aws::String m_granteePrincipal;
128 bool m_granteePrincipalHasBeenSet = false;
129
130 Aws::String m_retiringPrincipal;
131 bool m_retiringPrincipalHasBeenSet = false;
132
133 KmsGrantConstraints m_constraints;
134 bool m_constraintsHasBeenSet = false;
135
136 Aws::String m_issuingAccount;
137 bool m_issuingAccountHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace AccessAnalyzer
142} // namespace Aws
KmsGrantConfiguration & WithGranteePrincipal(const Aws::String &value)
KmsGrantConfiguration & WithIssuingAccount(const Aws::String &value)
KmsGrantConfiguration & AddOperations(KmsGrantOperation &&value)
const KmsGrantConstraints & GetConstraints() const
KmsGrantConfiguration & WithConstraints(const KmsGrantConstraints &value)
KmsGrantConfiguration & WithRetiringPrincipal(const Aws::String &value)
const Aws::Vector< KmsGrantOperation > & GetOperations() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
KmsGrantConfiguration & WithOperations(Aws::Vector< KmsGrantOperation > &&value)
KmsGrantConfiguration & WithRetiringPrincipal(Aws::String &&value)
KmsGrantConfiguration & WithOperations(const Aws::Vector< KmsGrantOperation > &value)
KmsGrantConfiguration & WithGranteePrincipal(Aws::String &&value)
void SetOperations(Aws::Vector< KmsGrantOperation > &&value)
AWS_ACCESSANALYZER_API KmsGrantConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KmsGrantConfiguration & WithIssuingAccount(const char *value)
void SetOperations(const Aws::Vector< KmsGrantOperation > &value)
KmsGrantConfiguration & WithConstraints(KmsGrantConstraints &&value)
KmsGrantConfiguration & WithIssuingAccount(Aws::String &&value)
KmsGrantConfiguration & WithRetiringPrincipal(const char *value)
KmsGrantConfiguration & AddOperations(const KmsGrantOperation &value)
AWS_ACCESSANALYZER_API KmsGrantConfiguration(Aws::Utils::Json::JsonView jsonValue)
KmsGrantConfiguration & WithGranteePrincipal(const char *value)
void SetConstraints(const KmsGrantConstraints &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