AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateProfileRequest.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/RolesAnywhereRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/rolesanywhere/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RolesAnywhere
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROLESANYWHERE_API CreateProfileRequest();
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 "CreateProfile"; }
33
34 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
35
36
38
42 inline bool GetAcceptRoleSessionName() const{ return m_acceptRoleSessionName; }
43 inline bool AcceptRoleSessionNameHasBeenSet() const { return m_acceptRoleSessionNameHasBeenSet; }
44 inline void SetAcceptRoleSessionName(bool value) { m_acceptRoleSessionNameHasBeenSet = true; m_acceptRoleSessionName = value; }
45 inline CreateProfileRequest& WithAcceptRoleSessionName(bool value) { SetAcceptRoleSessionName(value); return *this;}
47
49
56 inline int GetDurationSeconds() const{ return m_durationSeconds; }
57 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
58 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
59 inline CreateProfileRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
61
63
66 inline bool GetEnabled() const{ return m_enabled; }
67 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
68 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
69 inline CreateProfileRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
71
73
77 inline const Aws::Vector<Aws::String>& GetManagedPolicyArns() const{ return m_managedPolicyArns; }
78 inline bool ManagedPolicyArnsHasBeenSet() const { return m_managedPolicyArnsHasBeenSet; }
79 inline void SetManagedPolicyArns(const Aws::Vector<Aws::String>& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = value; }
80 inline void SetManagedPolicyArns(Aws::Vector<Aws::String>&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = std::move(value); }
83 inline CreateProfileRequest& AddManagedPolicyArns(const Aws::String& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(value); return *this; }
84 inline CreateProfileRequest& AddManagedPolicyArns(Aws::String&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(std::move(value)); return *this; }
85 inline CreateProfileRequest& AddManagedPolicyArns(const char* value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(value); return *this; }
87
89
92 inline const Aws::String& GetName() const{ return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
96 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
97 inline CreateProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
98 inline CreateProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
99 inline CreateProfileRequest& WithName(const char* value) { SetName(value); return *this;}
101
103
107 inline bool GetRequireInstanceProperties() const{ return m_requireInstanceProperties; }
108 inline bool RequireInstancePropertiesHasBeenSet() const { return m_requireInstancePropertiesHasBeenSet; }
109 inline void SetRequireInstanceProperties(bool value) { m_requireInstancePropertiesHasBeenSet = true; m_requireInstanceProperties = value; }
112
114
118 inline const Aws::Vector<Aws::String>& GetRoleArns() const{ return m_roleArns; }
119 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
120 inline void SetRoleArns(const Aws::Vector<Aws::String>& value) { m_roleArnsHasBeenSet = true; m_roleArns = value; }
121 inline void SetRoleArns(Aws::Vector<Aws::String>&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::move(value); }
122 inline CreateProfileRequest& WithRoleArns(const Aws::Vector<Aws::String>& value) { SetRoleArns(value); return *this;}
123 inline CreateProfileRequest& WithRoleArns(Aws::Vector<Aws::String>&& value) { SetRoleArns(std::move(value)); return *this;}
124 inline CreateProfileRequest& AddRoleArns(const Aws::String& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
125 inline CreateProfileRequest& AddRoleArns(Aws::String&& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(std::move(value)); return *this; }
126 inline CreateProfileRequest& AddRoleArns(const char* value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
128
130
134 inline const Aws::String& GetSessionPolicy() const{ return m_sessionPolicy; }
135 inline bool SessionPolicyHasBeenSet() const { return m_sessionPolicyHasBeenSet; }
136 inline void SetSessionPolicy(const Aws::String& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = value; }
137 inline void SetSessionPolicy(Aws::String&& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = std::move(value); }
138 inline void SetSessionPolicy(const char* value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy.assign(value); }
139 inline CreateProfileRequest& WithSessionPolicy(const Aws::String& value) { SetSessionPolicy(value); return *this;}
140 inline CreateProfileRequest& WithSessionPolicy(Aws::String&& value) { SetSessionPolicy(std::move(value)); return *this;}
141 inline CreateProfileRequest& WithSessionPolicy(const char* value) { SetSessionPolicy(value); return *this;}
143
145
148 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
151 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
152 inline CreateProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
153 inline CreateProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
154 inline CreateProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
155 inline CreateProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
157 private:
158
159 bool m_acceptRoleSessionName;
160 bool m_acceptRoleSessionNameHasBeenSet = false;
161
162 int m_durationSeconds;
163 bool m_durationSecondsHasBeenSet = false;
164
165 bool m_enabled;
166 bool m_enabledHasBeenSet = false;
167
168 Aws::Vector<Aws::String> m_managedPolicyArns;
169 bool m_managedPolicyArnsHasBeenSet = false;
170
171 Aws::String m_name;
172 bool m_nameHasBeenSet = false;
173
174 bool m_requireInstanceProperties;
175 bool m_requireInstancePropertiesHasBeenSet = false;
176
177 Aws::Vector<Aws::String> m_roleArns;
178 bool m_roleArnsHasBeenSet = false;
179
180 Aws::String m_sessionPolicy;
181 bool m_sessionPolicyHasBeenSet = false;
182
183 Aws::Vector<Tag> m_tags;
184 bool m_tagsHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace RolesAnywhere
189} // namespace Aws
void SetManagedPolicyArns(Aws::Vector< Aws::String > &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateProfileRequest & WithSessionPolicy(const char *value)
CreateProfileRequest & WithEnabled(bool value)
CreateProfileRequest & WithSessionPolicy(Aws::String &&value)
CreateProfileRequest & WithName(Aws::String &&value)
CreateProfileRequest & AddRoleArns(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateProfileRequest & WithAcceptRoleSessionName(bool value)
CreateProfileRequest & AddTags(const Tag &value)
CreateProfileRequest & WithRequireInstanceProperties(bool value)
const Aws::Vector< Aws::String > & GetManagedPolicyArns() const
CreateProfileRequest & WithTags(const Aws::Vector< Tag > &value)
CreateProfileRequest & AddRoleArns(const Aws::String &value)
CreateProfileRequest & WithName(const Aws::String &value)
CreateProfileRequest & AddManagedPolicyArns(const char *value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetRoleArns() const
CreateProfileRequest & WithName(const char *value)
CreateProfileRequest & AddManagedPolicyArns(Aws::String &&value)
void SetRoleArns(Aws::Vector< Aws::String > &&value)
CreateProfileRequest & WithRoleArns(Aws::Vector< Aws::String > &&value)
CreateProfileRequest & WithManagedPolicyArns(Aws::Vector< Aws::String > &&value)
void SetManagedPolicyArns(const Aws::Vector< Aws::String > &value)
CreateProfileRequest & WithTags(Aws::Vector< Tag > &&value)
CreateProfileRequest & WithDurationSeconds(int value)
CreateProfileRequest & AddManagedPolicyArns(const Aws::String &value)
void SetRoleArns(const Aws::Vector< Aws::String > &value)
CreateProfileRequest & WithManagedPolicyArns(const Aws::Vector< Aws::String > &value)
CreateProfileRequest & WithSessionPolicy(const Aws::String &value)
CreateProfileRequest & AddRoleArns(const char *value)
CreateProfileRequest & WithRoleArns(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector