AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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& GetDescription() const{ return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
46 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
47 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
48 inline CreatePermissionSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
49 inline CreatePermissionSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
50 inline CreatePermissionSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
52
54
61 inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
62 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
63 inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
64 inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
65 inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
66 inline CreatePermissionSetRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
67 inline CreatePermissionSetRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
68 inline CreatePermissionSetRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
70
72
75 inline const Aws::String& GetName() const{ return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
79 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 inline CreatePermissionSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
81 inline CreatePermissionSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 inline CreatePermissionSetRequest& WithName(const char* value) { SetName(value); return *this;}
84
86
90 inline const Aws::String& GetRelayState() const{ return m_relayState; }
91 inline bool RelayStateHasBeenSet() const { return m_relayStateHasBeenSet; }
92 inline void SetRelayState(const Aws::String& value) { m_relayStateHasBeenSet = true; m_relayState = value; }
93 inline void SetRelayState(Aws::String&& value) { m_relayStateHasBeenSet = true; m_relayState = std::move(value); }
94 inline void SetRelayState(const char* value) { m_relayStateHasBeenSet = true; m_relayState.assign(value); }
95 inline CreatePermissionSetRequest& WithRelayState(const Aws::String& value) { SetRelayState(value); return *this;}
96 inline CreatePermissionSetRequest& WithRelayState(Aws::String&& value) { SetRelayState(std::move(value)); return *this;}
97 inline CreatePermissionSetRequest& WithRelayState(const char* value) { SetRelayState(value); return *this;}
99
101
105 inline const Aws::String& GetSessionDuration() const{ return m_sessionDuration; }
106 inline bool SessionDurationHasBeenSet() const { return m_sessionDurationHasBeenSet; }
107 inline void SetSessionDuration(const Aws::String& value) { m_sessionDurationHasBeenSet = true; m_sessionDuration = value; }
108 inline void SetSessionDuration(Aws::String&& value) { m_sessionDurationHasBeenSet = true; m_sessionDuration = std::move(value); }
109 inline void SetSessionDuration(const char* value) { m_sessionDurationHasBeenSet = true; m_sessionDuration.assign(value); }
111 inline CreatePermissionSetRequest& WithSessionDuration(Aws::String&& value) { SetSessionDuration(std::move(value)); return *this;}
112 inline CreatePermissionSetRequest& WithSessionDuration(const char* value) { SetSessionDuration(value); return *this;}
114
116
119 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
122 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
123 inline CreatePermissionSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
124 inline CreatePermissionSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
125 inline CreatePermissionSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
126 inline CreatePermissionSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
128 private:
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::String m_instanceArn;
134 bool m_instanceArnHasBeenSet = false;
135
136 Aws::String m_name;
137 bool m_nameHasBeenSet = false;
138
139 Aws::String m_relayState;
140 bool m_relayStateHasBeenSet = false;
141
142 Aws::String m_sessionDuration;
143 bool m_sessionDurationHasBeenSet = false;
144
145 Aws::Vector<Tag> m_tags;
146 bool m_tagsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace SSOAdmin
151} // namespace Aws
CreatePermissionSetRequest & WithSessionDuration(Aws::String &&value)
CreatePermissionSetRequest & WithDescription(const Aws::String &value)
CreatePermissionSetRequest & WithSessionDuration(const char *value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePermissionSetRequest & AddTags(const Tag &value)
CreatePermissionSetRequest & WithName(const char *value)
CreatePermissionSetRequest & WithSessionDuration(const Aws::String &value)
CreatePermissionSetRequest & WithDescription(const char *value)
CreatePermissionSetRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreatePermissionSetRequest & WithName(const Aws::String &value)
CreatePermissionSetRequest & WithInstanceArn(Aws::String &&value)
CreatePermissionSetRequest & WithInstanceArn(const Aws::String &value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
CreatePermissionSetRequest & WithInstanceArn(const char *value)
CreatePermissionSetRequest & WithRelayState(Aws::String &&value)
CreatePermissionSetRequest & WithTags(const Aws::Vector< Tag > &value)
CreatePermissionSetRequest & WithDescription(Aws::String &&value)
CreatePermissionSetRequest & WithRelayState(const Aws::String &value)
CreatePermissionSetRequest & WithRelayState(const char *value)
CreatePermissionSetRequest & AddTags(Tag &&value)
CreatePermissionSetRequest & WithTags(Aws::Vector< Tag > &&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