AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
CreatePermissionSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sso-admin/SSOAdminRequest.h>
10#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
11#include <aws/sso-admin/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SSOAdmin {
17namespace Model {
18
22 public:
23 AWS_SSOADMIN_API CreatePermissionSetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreatePermissionSet"; }
30
31 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
80 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
81 template <typename InstanceArnT = Aws::String>
82 void SetInstanceArn(InstanceArnT&& value) {
83 m_instanceArnHasBeenSet = true;
84 m_instanceArn = std::forward<InstanceArnT>(value);
85 }
86 template <typename InstanceArnT = Aws::String>
88 SetInstanceArn(std::forward<InstanceArnT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetSessionDuration() const { return m_sessionDuration; }
99 inline bool SessionDurationHasBeenSet() const { return m_sessionDurationHasBeenSet; }
100 template <typename SessionDurationT = Aws::String>
101 void SetSessionDuration(SessionDurationT&& value) {
102 m_sessionDurationHasBeenSet = true;
103 m_sessionDuration = std::forward<SessionDurationT>(value);
104 }
105 template <typename SessionDurationT = Aws::String>
107 SetSessionDuration(std::forward<SessionDurationT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetRelayState() const { return m_relayState; }
118 inline bool RelayStateHasBeenSet() const { return m_relayStateHasBeenSet; }
119 template <typename RelayStateT = Aws::String>
120 void SetRelayState(RelayStateT&& value) {
121 m_relayStateHasBeenSet = true;
122 m_relayState = std::forward<RelayStateT>(value);
123 }
124 template <typename RelayStateT = Aws::String>
126 SetRelayState(std::forward<RelayStateT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template <typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags = std::forward<TagsT>(value);
141 }
142 template <typename TagsT = Aws::Vector<Tag>>
144 SetTags(std::forward<TagsT>(value));
145 return *this;
146 }
147 template <typename TagsT = Tag>
149 m_tagsHasBeenSet = true;
150 m_tags.emplace_back(std::forward<TagsT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_name;
156
157 Aws::String m_description;
158
159 Aws::String m_instanceArn;
160
161 Aws::String m_sessionDuration;
162
163 Aws::String m_relayState;
164
165 Aws::Vector<Tag> m_tags;
166 bool m_nameHasBeenSet = false;
167 bool m_descriptionHasBeenSet = false;
168 bool m_instanceArnHasBeenSet = false;
169 bool m_sessionDurationHasBeenSet = false;
170 bool m_relayStateHasBeenSet = false;
171 bool m_tagsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace SSOAdmin
176} // namespace Aws
AWS_SSOADMIN_API CreatePermissionSetRequest()=default
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePermissionSetRequest & AddTags(TagsT &&value)
CreatePermissionSetRequest & WithTags(TagsT &&value)
CreatePermissionSetRequest & WithInstanceArn(InstanceArnT &&value)
CreatePermissionSetRequest & WithName(NameT &&value)
CreatePermissionSetRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SSOADMIN_API Aws::String SerializePayload() const override
CreatePermissionSetRequest & WithSessionDuration(SessionDurationT &&value)
CreatePermissionSetRequest & WithRelayState(RelayStateT &&value)
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