AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePermissionSetRequest.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/sso-admin/SSOAdminRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sso-admin/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSOAdmin
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSOADMIN_API CreatePermissionSetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePermissionSet"; }
33
34 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreatePermissionSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 CreatePermissionSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
71 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
72 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
73 template<typename InstanceArnT = Aws::String>
74 void SetInstanceArn(InstanceArnT&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::forward<InstanceArnT>(value); }
75 template<typename InstanceArnT = Aws::String>
76 CreatePermissionSetRequest& WithInstanceArn(InstanceArnT&& value) { SetInstanceArn(std::forward<InstanceArnT>(value)); return *this;}
78
80
84 inline const Aws::String& GetSessionDuration() const { return m_sessionDuration; }
85 inline bool SessionDurationHasBeenSet() const { return m_sessionDurationHasBeenSet; }
86 template<typename SessionDurationT = Aws::String>
87 void SetSessionDuration(SessionDurationT&& value) { m_sessionDurationHasBeenSet = true; m_sessionDuration = std::forward<SessionDurationT>(value); }
88 template<typename SessionDurationT = Aws::String>
89 CreatePermissionSetRequest& WithSessionDuration(SessionDurationT&& value) { SetSessionDuration(std::forward<SessionDurationT>(value)); return *this;}
91
93
97 inline const Aws::String& GetRelayState() const { return m_relayState; }
98 inline bool RelayStateHasBeenSet() const { return m_relayStateHasBeenSet; }
99 template<typename RelayStateT = Aws::String>
100 void SetRelayState(RelayStateT&& value) { m_relayStateHasBeenSet = true; m_relayState = std::forward<RelayStateT>(value); }
101 template<typename RelayStateT = Aws::String>
102 CreatePermissionSetRequest& WithRelayState(RelayStateT&& value) { SetRelayState(std::forward<RelayStateT>(value)); return *this;}
104
106
109 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template<typename TagsT = Aws::Vector<Tag>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
113 template<typename TagsT = Aws::Vector<Tag>>
114 CreatePermissionSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115 template<typename TagsT = Tag>
116 CreatePermissionSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
118 private:
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 Aws::String m_instanceArn;
127 bool m_instanceArnHasBeenSet = false;
128
129 Aws::String m_sessionDuration;
130 bool m_sessionDurationHasBeenSet = false;
131
132 Aws::String m_relayState;
133 bool m_relayStateHasBeenSet = false;
134
135 Aws::Vector<Tag> m_tags;
136 bool m_tagsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SSOAdmin
141} // 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