AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IAMPolicyAssignment.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/quicksight/model/AssignmentStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.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 QuickSight
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QUICKSIGHT_API IAMPolicyAssignment();
39 AWS_QUICKSIGHT_API IAMPolicyAssignment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
49 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
50 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
51 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
52 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
53 inline IAMPolicyAssignment& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
54 inline IAMPolicyAssignment& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
55 inline IAMPolicyAssignment& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
57
59
62 inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
63 inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
64 inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
65 inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
66 inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
67 inline IAMPolicyAssignment& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
68 inline IAMPolicyAssignment& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
69 inline IAMPolicyAssignment& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
71
73
76 inline const Aws::String& GetAssignmentName() const{ return m_assignmentName; }
77 inline bool AssignmentNameHasBeenSet() const { return m_assignmentNameHasBeenSet; }
78 inline void SetAssignmentName(const Aws::String& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = value; }
79 inline void SetAssignmentName(Aws::String&& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = std::move(value); }
80 inline void SetAssignmentName(const char* value) { m_assignmentNameHasBeenSet = true; m_assignmentName.assign(value); }
81 inline IAMPolicyAssignment& WithAssignmentName(const Aws::String& value) { SetAssignmentName(value); return *this;}
82 inline IAMPolicyAssignment& WithAssignmentName(Aws::String&& value) { SetAssignmentName(std::move(value)); return *this;}
83 inline IAMPolicyAssignment& WithAssignmentName(const char* value) { SetAssignmentName(value); return *this;}
85
87
90 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
91 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
92 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
93 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
94 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
95 inline IAMPolicyAssignment& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
96 inline IAMPolicyAssignment& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
97 inline IAMPolicyAssignment& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
99
101
104 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetIdentities() const{ return m_identities; }
105 inline bool IdentitiesHasBeenSet() const { return m_identitiesHasBeenSet; }
106 inline void SetIdentities(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_identitiesHasBeenSet = true; m_identities = value; }
107 inline void SetIdentities(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_identitiesHasBeenSet = true; m_identities = std::move(value); }
110 inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
111 inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), value); return *this; }
112 inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
113 inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), std::move(value)); return *this; }
114 inline IAMPolicyAssignment& AddIdentities(const char* key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
115 inline IAMPolicyAssignment& AddIdentities(const char* key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
117
119
122 inline const AssignmentStatus& GetAssignmentStatus() const{ return m_assignmentStatus; }
123 inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; }
124 inline void SetAssignmentStatus(const AssignmentStatus& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = value; }
125 inline void SetAssignmentStatus(AssignmentStatus&& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = std::move(value); }
127 inline IAMPolicyAssignment& WithAssignmentStatus(AssignmentStatus&& value) { SetAssignmentStatus(std::move(value)); return *this;}
129 private:
130
131 Aws::String m_awsAccountId;
132 bool m_awsAccountIdHasBeenSet = false;
133
134 Aws::String m_assignmentId;
135 bool m_assignmentIdHasBeenSet = false;
136
137 Aws::String m_assignmentName;
138 bool m_assignmentNameHasBeenSet = false;
139
140 Aws::String m_policyArn;
141 bool m_policyArnHasBeenSet = false;
142
144 bool m_identitiesHasBeenSet = false;
145
146 AssignmentStatus m_assignmentStatus;
147 bool m_assignmentStatusHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace QuickSight
152} // namespace Aws
AWS_QUICKSIGHT_API IAMPolicyAssignment(Aws::Utils::Json::JsonView jsonValue)
void SetIdentities(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
IAMPolicyAssignment & WithAssignmentName(const char *value)
IAMPolicyAssignment & AddIdentities(Aws::String &&key, Aws::Vector< Aws::String > &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssignmentId(const Aws::String &value)
void SetAssignmentStatus(const AssignmentStatus &value)
AWS_QUICKSIGHT_API IAMPolicyAssignment & operator=(Aws::Utils::Json::JsonView jsonValue)
IAMPolicyAssignment & AddIdentities(const char *key, Aws::Vector< Aws::String > &&value)
IAMPolicyAssignment & WithAssignmentId(Aws::String &&value)
void SetAssignmentStatus(AssignmentStatus &&value)
const AssignmentStatus & GetAssignmentStatus() const
IAMPolicyAssignment & AddIdentities(const Aws::String &key, const Aws::Vector< Aws::String > &value)
void SetIdentities(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
IAMPolicyAssignment & WithIdentities(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
IAMPolicyAssignment & WithAssignmentStatus(AssignmentStatus &&value)
IAMPolicyAssignment & WithPolicyArn(const char *value)
IAMPolicyAssignment & WithPolicyArn(const Aws::String &value)
IAMPolicyAssignment & WithAssignmentStatus(const AssignmentStatus &value)
IAMPolicyAssignment & AddIdentities(Aws::String &&key, const Aws::Vector< Aws::String > &value)
void SetAwsAccountId(const Aws::String &value)
void SetPolicyArn(const Aws::String &value)
IAMPolicyAssignment & WithAwsAccountId(const char *value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetIdentities() const
IAMPolicyAssignment & WithAssignmentId(const char *value)
IAMPolicyAssignment & WithAssignmentName(Aws::String &&value)
IAMPolicyAssignment & AddIdentities(const Aws::String &key, Aws::Vector< Aws::String > &&value)
IAMPolicyAssignment & AddIdentities(const char *key, const Aws::Vector< Aws::String > &value)
void SetAssignmentName(const Aws::String &value)
IAMPolicyAssignment & WithAwsAccountId(Aws::String &&value)
IAMPolicyAssignment & WithIdentities(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
IAMPolicyAssignment & WithPolicyArn(Aws::String &&value)
IAMPolicyAssignment & WithAwsAccountId(const Aws::String &value)
IAMPolicyAssignment & WithAssignmentName(const Aws::String &value)
IAMPolicyAssignment & WithAssignmentId(const Aws::String &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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue