AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AssignPermissionSetRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/assurance/model/AssignmentScope.h>
10#include <aws/assurance/model/PrincipalType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Assurance {
18namespace Model {
19
23 public:
24 AWS_ASSURANCE_API AssignPermissionSetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AssignPermissionSet"; }
31
32 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
41 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
42 template <typename EnvironmentArnT = Aws::String>
43 void SetEnvironmentArn(EnvironmentArnT&& value) {
44 m_environmentArnHasBeenSet = true;
45 m_environmentArn = std::forward<EnvironmentArnT>(value);
46 }
47 template <typename EnvironmentArnT = Aws::String>
49 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
50 return *this;
51 }
53
55
58 inline PrincipalType GetPrincipalType() const { return m_principalType; }
59 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
60 inline void SetPrincipalType(PrincipalType value) {
61 m_principalTypeHasBeenSet = true;
62 m_principalType = value;
63 }
65 SetPrincipalType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
75 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
76 template <typename PrincipalIdT = Aws::String>
77 void SetPrincipalId(PrincipalIdT&& value) {
78 m_principalIdHasBeenSet = true;
79 m_principalId = std::forward<PrincipalIdT>(value);
80 }
81 template <typename PrincipalIdT = Aws::String>
83 SetPrincipalId(std::forward<PrincipalIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetPermissionSetId() const { return m_permissionSetId; }
93 inline bool PermissionSetIdHasBeenSet() const { return m_permissionSetIdHasBeenSet; }
94 template <typename PermissionSetIdT = Aws::String>
95 void SetPermissionSetId(PermissionSetIdT&& value) {
96 m_permissionSetIdHasBeenSet = true;
97 m_permissionSetId = std::forward<PermissionSetIdT>(value);
98 }
99 template <typename PermissionSetIdT = Aws::String>
101 SetPermissionSetId(std::forward<PermissionSetIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<AssignmentScope>& GetScopes() const { return m_scopes; }
111 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
112 template <typename ScopesT = Aws::Vector<AssignmentScope>>
113 void SetScopes(ScopesT&& value) {
114 m_scopesHasBeenSet = true;
115 m_scopes = std::forward<ScopesT>(value);
116 }
117 template <typename ScopesT = Aws::Vector<AssignmentScope>>
119 SetScopes(std::forward<ScopesT>(value));
120 return *this;
121 }
122 template <typename ScopesT = AssignmentScope>
124 m_scopesHasBeenSet = true;
125 m_scopes.emplace_back(std::forward<ScopesT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_environmentArn;
131
132 PrincipalType m_principalType{PrincipalType::NOT_SET};
133
134 Aws::String m_principalId;
135
136 Aws::String m_permissionSetId;
137
139 bool m_environmentArnHasBeenSet = false;
140 bool m_principalTypeHasBeenSet = false;
141 bool m_principalIdHasBeenSet = false;
142 bool m_permissionSetIdHasBeenSet = false;
143 bool m_scopesHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Assurance
148} // namespace Aws
AssignPermissionSetRequest & WithEnvironmentArn(EnvironmentArnT &&value)
AssignPermissionSetRequest & AddScopes(ScopesT &&value)
AWS_ASSURANCE_API AssignPermissionSetRequest()=default
const Aws::Vector< AssignmentScope > & GetScopes() const
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ASSURANCE_API Aws::String SerializePayload() const override
AssignPermissionSetRequest & WithPrincipalType(PrincipalType value)
AssignPermissionSetRequest & WithPrincipalId(PrincipalIdT &&value)
AssignPermissionSetRequest & WithScopes(ScopesT &&value)
AssignPermissionSetRequest & WithPermissionSetId(PermissionSetIdT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector