AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
IAMPolicyAssignment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/AssignmentStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
32 public:
33 AWS_QUICKSIGHT_API IAMPolicyAssignment() = default;
34 AWS_QUICKSIGHT_API IAMPolicyAssignment(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
43 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
44 template <typename AwsAccountIdT = Aws::String>
45 void SetAwsAccountId(AwsAccountIdT&& value) {
46 m_awsAccountIdHasBeenSet = true;
47 m_awsAccountId = std::forward<AwsAccountIdT>(value);
48 }
49 template <typename AwsAccountIdT = Aws::String>
50 IAMPolicyAssignment& WithAwsAccountId(AwsAccountIdT&& value) {
51 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAssignmentId() const { return m_assignmentId; }
61 inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
62 template <typename AssignmentIdT = Aws::String>
63 void SetAssignmentId(AssignmentIdT&& value) {
64 m_assignmentIdHasBeenSet = true;
65 m_assignmentId = std::forward<AssignmentIdT>(value);
66 }
67 template <typename AssignmentIdT = Aws::String>
68 IAMPolicyAssignment& WithAssignmentId(AssignmentIdT&& value) {
69 SetAssignmentId(std::forward<AssignmentIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAssignmentName() const { return m_assignmentName; }
79 inline bool AssignmentNameHasBeenSet() const { return m_assignmentNameHasBeenSet; }
80 template <typename AssignmentNameT = Aws::String>
81 void SetAssignmentName(AssignmentNameT&& value) {
82 m_assignmentNameHasBeenSet = true;
83 m_assignmentName = std::forward<AssignmentNameT>(value);
84 }
85 template <typename AssignmentNameT = Aws::String>
86 IAMPolicyAssignment& WithAssignmentName(AssignmentNameT&& value) {
87 SetAssignmentName(std::forward<AssignmentNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
97 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
98 template <typename PolicyArnT = Aws::String>
99 void SetPolicyArn(PolicyArnT&& value) {
100 m_policyArnHasBeenSet = true;
101 m_policyArn = std::forward<PolicyArnT>(value);
102 }
103 template <typename PolicyArnT = Aws::String>
104 IAMPolicyAssignment& WithPolicyArn(PolicyArnT&& value) {
105 SetPolicyArn(std::forward<PolicyArnT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetIdentities() const { return m_identities; }
115 inline bool IdentitiesHasBeenSet() const { return m_identitiesHasBeenSet; }
116 template <typename IdentitiesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
117 void SetIdentities(IdentitiesT&& value) {
118 m_identitiesHasBeenSet = true;
119 m_identities = std::forward<IdentitiesT>(value);
120 }
121 template <typename IdentitiesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
122 IAMPolicyAssignment& WithIdentities(IdentitiesT&& value) {
123 SetIdentities(std::forward<IdentitiesT>(value));
124 return *this;
125 }
126 template <typename IdentitiesKeyT = Aws::String, typename IdentitiesValueT = Aws::Vector<Aws::String>>
127 IAMPolicyAssignment& AddIdentities(IdentitiesKeyT&& key, IdentitiesValueT&& value) {
128 m_identitiesHasBeenSet = true;
129 m_identities.emplace(std::forward<IdentitiesKeyT>(key), std::forward<IdentitiesValueT>(value));
130 return *this;
131 }
133
135
138 inline AssignmentStatus GetAssignmentStatus() const { return m_assignmentStatus; }
139 inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; }
141 m_assignmentStatusHasBeenSet = true;
142 m_assignmentStatus = value;
143 }
145 SetAssignmentStatus(value);
146 return *this;
147 }
149 private:
150 Aws::String m_awsAccountId;
151
152 Aws::String m_assignmentId;
153
154 Aws::String m_assignmentName;
155
156 Aws::String m_policyArn;
157
159
161 bool m_awsAccountIdHasBeenSet = false;
162 bool m_assignmentIdHasBeenSet = false;
163 bool m_assignmentNameHasBeenSet = false;
164 bool m_policyArnHasBeenSet = false;
165 bool m_identitiesHasBeenSet = false;
166 bool m_assignmentStatusHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace QuickSight
171} // namespace Aws
AWS_QUICKSIGHT_API IAMPolicyAssignment(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
IAMPolicyAssignment & WithAwsAccountId(AwsAccountIdT &&value)
IAMPolicyAssignment & WithAssignmentId(AssignmentIdT &&value)
AWS_QUICKSIGHT_API IAMPolicyAssignment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API IAMPolicyAssignment()=default
IAMPolicyAssignment & WithPolicyArn(PolicyArnT &&value)
void SetAssignmentName(AssignmentNameT &&value)
IAMPolicyAssignment & WithIdentities(IdentitiesT &&value)
IAMPolicyAssignment & AddIdentities(IdentitiesKeyT &&key, IdentitiesValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetIdentities() const
IAMPolicyAssignment & WithAssignmentName(AssignmentNameT &&value)
IAMPolicyAssignment & WithAssignmentStatus(AssignmentStatus value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue