AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateProfileRequest.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 <utility>
12
13namespace Aws
14{
15namespace RolesAnywhere
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ROLESANYWHERE_API UpdateProfileRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateProfile"; }
32
33 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
34
35
37
41 inline bool GetAcceptRoleSessionName() const{ return m_acceptRoleSessionName; }
42 inline bool AcceptRoleSessionNameHasBeenSet() const { return m_acceptRoleSessionNameHasBeenSet; }
43 inline void SetAcceptRoleSessionName(bool value) { m_acceptRoleSessionNameHasBeenSet = true; m_acceptRoleSessionName = value; }
44 inline UpdateProfileRequest& WithAcceptRoleSessionName(bool value) { SetAcceptRoleSessionName(value); return *this;}
46
48
55 inline int GetDurationSeconds() const{ return m_durationSeconds; }
56 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
57 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
58 inline UpdateProfileRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
60
62
66 inline const Aws::Vector<Aws::String>& GetManagedPolicyArns() const{ return m_managedPolicyArns; }
67 inline bool ManagedPolicyArnsHasBeenSet() const { return m_managedPolicyArnsHasBeenSet; }
68 inline void SetManagedPolicyArns(const Aws::Vector<Aws::String>& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = value; }
69 inline void SetManagedPolicyArns(Aws::Vector<Aws::String>&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = std::move(value); }
72 inline UpdateProfileRequest& AddManagedPolicyArns(const Aws::String& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(value); return *this; }
73 inline UpdateProfileRequest& AddManagedPolicyArns(Aws::String&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(std::move(value)); return *this; }
74 inline UpdateProfileRequest& AddManagedPolicyArns(const char* value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(value); return *this; }
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline UpdateProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline UpdateProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline UpdateProfileRequest& WithName(const char* value) { SetName(value); return *this;}
90
92
95 inline const Aws::String& GetProfileId() const{ return m_profileId; }
96 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
97 inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; }
98 inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); }
99 inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); }
100 inline UpdateProfileRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;}
101 inline UpdateProfileRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;}
102 inline UpdateProfileRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;}
104
106
110 inline const Aws::Vector<Aws::String>& GetRoleArns() const{ return m_roleArns; }
111 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
112 inline void SetRoleArns(const Aws::Vector<Aws::String>& value) { m_roleArnsHasBeenSet = true; m_roleArns = value; }
113 inline void SetRoleArns(Aws::Vector<Aws::String>&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::move(value); }
114 inline UpdateProfileRequest& WithRoleArns(const Aws::Vector<Aws::String>& value) { SetRoleArns(value); return *this;}
115 inline UpdateProfileRequest& WithRoleArns(Aws::Vector<Aws::String>&& value) { SetRoleArns(std::move(value)); return *this;}
116 inline UpdateProfileRequest& AddRoleArns(const Aws::String& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
117 inline UpdateProfileRequest& AddRoleArns(Aws::String&& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(std::move(value)); return *this; }
118 inline UpdateProfileRequest& AddRoleArns(const char* value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
120
122
126 inline const Aws::String& GetSessionPolicy() const{ return m_sessionPolicy; }
127 inline bool SessionPolicyHasBeenSet() const { return m_sessionPolicyHasBeenSet; }
128 inline void SetSessionPolicy(const Aws::String& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = value; }
129 inline void SetSessionPolicy(Aws::String&& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = std::move(value); }
130 inline void SetSessionPolicy(const char* value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy.assign(value); }
131 inline UpdateProfileRequest& WithSessionPolicy(const Aws::String& value) { SetSessionPolicy(value); return *this;}
132 inline UpdateProfileRequest& WithSessionPolicy(Aws::String&& value) { SetSessionPolicy(std::move(value)); return *this;}
133 inline UpdateProfileRequest& WithSessionPolicy(const char* value) { SetSessionPolicy(value); return *this;}
135 private:
136
137 bool m_acceptRoleSessionName;
138 bool m_acceptRoleSessionNameHasBeenSet = false;
139
140 int m_durationSeconds;
141 bool m_durationSecondsHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_managedPolicyArns;
144 bool m_managedPolicyArnsHasBeenSet = false;
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 Aws::String m_profileId;
150 bool m_profileIdHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_roleArns;
153 bool m_roleArnsHasBeenSet = false;
154
155 Aws::String m_sessionPolicy;
156 bool m_sessionPolicyHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace RolesAnywhere
161} // namespace Aws
void SetRoleArns(Aws::Vector< Aws::String > &&value)
UpdateProfileRequest & AddManagedPolicyArns(const char *value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateProfileRequest & AddRoleArns(const char *value)
UpdateProfileRequest & WithProfileId(const char *value)
void SetManagedPolicyArns(const Aws::Vector< Aws::String > &value)
UpdateProfileRequest & WithSessionPolicy(const char *value)
UpdateProfileRequest & WithManagedPolicyArns(Aws::Vector< Aws::String > &&value)
UpdateProfileRequest & WithName(Aws::String &&value)
void SetRoleArns(const Aws::Vector< Aws::String > &value)
UpdateProfileRequest & AddRoleArns(Aws::String &&value)
UpdateProfileRequest & AddManagedPolicyArns(Aws::String &&value)
const Aws::Vector< Aws::String > & GetManagedPolicyArns() const
UpdateProfileRequest & WithName(const char *value)
const Aws::Vector< Aws::String > & GetRoleArns() const
UpdateProfileRequest & WithProfileId(Aws::String &&value)
UpdateProfileRequest & WithManagedPolicyArns(const Aws::Vector< Aws::String > &value)
UpdateProfileRequest & AddRoleArns(const Aws::String &value)
UpdateProfileRequest & WithSessionPolicy(Aws::String &&value)
UpdateProfileRequest & WithRoleArns(Aws::Vector< Aws::String > &&value)
UpdateProfileRequest & WithAcceptRoleSessionName(bool value)
UpdateProfileRequest & WithSessionPolicy(const Aws::String &value)
UpdateProfileRequest & WithDurationSeconds(int value)
UpdateProfileRequest & WithName(const Aws::String &value)
UpdateProfileRequest & AddManagedPolicyArns(const Aws::String &value)
UpdateProfileRequest & WithProfileId(const Aws::String &value)
UpdateProfileRequest & WithRoleArns(const Aws::Vector< Aws::String > &value)
void SetManagedPolicyArns(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector