AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
69 void SetManagedPolicyArns(ManagedPolicyArnsT&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = std::forward<ManagedPolicyArnsT>(value); }
70 template<typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
71 UpdateProfileRequest& WithManagedPolicyArns(ManagedPolicyArnsT&& value) { SetManagedPolicyArns(std::forward<ManagedPolicyArnsT>(value)); return *this;}
72 template<typename ManagedPolicyArnsT = Aws::String>
73 UpdateProfileRequest& AddManagedPolicyArns(ManagedPolicyArnsT&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.emplace_back(std::forward<ManagedPolicyArnsT>(value)); return *this; }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template<typename NameT = Aws::String>
83 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
84 template<typename NameT = Aws::String>
85 UpdateProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
87
89
92 inline const Aws::String& GetProfileId() const { return m_profileId; }
93 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
94 template<typename ProfileIdT = Aws::String>
95 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
96 template<typename ProfileIdT = Aws::String>
97 UpdateProfileRequest& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
99
101
105 inline const Aws::Vector<Aws::String>& GetRoleArns() const { return m_roleArns; }
106 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
107 template<typename RoleArnsT = Aws::Vector<Aws::String>>
108 void SetRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::forward<RoleArnsT>(value); }
109 template<typename RoleArnsT = Aws::Vector<Aws::String>>
110 UpdateProfileRequest& WithRoleArns(RoleArnsT&& value) { SetRoleArns(std::forward<RoleArnsT>(value)); return *this;}
111 template<typename RoleArnsT = Aws::String>
112 UpdateProfileRequest& AddRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet = true; m_roleArns.emplace_back(std::forward<RoleArnsT>(value)); return *this; }
114
116
120 inline const Aws::String& GetSessionPolicy() const { return m_sessionPolicy; }
121 inline bool SessionPolicyHasBeenSet() const { return m_sessionPolicyHasBeenSet; }
122 template<typename SessionPolicyT = Aws::String>
123 void SetSessionPolicy(SessionPolicyT&& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = std::forward<SessionPolicyT>(value); }
124 template<typename SessionPolicyT = Aws::String>
125 UpdateProfileRequest& WithSessionPolicy(SessionPolicyT&& value) { SetSessionPolicy(std::forward<SessionPolicyT>(value)); return *this;}
127 private:
128
129 bool m_acceptRoleSessionName{false};
130 bool m_acceptRoleSessionNameHasBeenSet = false;
131
132 int m_durationSeconds{0};
133 bool m_durationSecondsHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_managedPolicyArns;
136 bool m_managedPolicyArnsHasBeenSet = false;
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
141 Aws::String m_profileId;
142 bool m_profileIdHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_roleArns;
145 bool m_roleArnsHasBeenSet = false;
146
147 Aws::String m_sessionPolicy;
148 bool m_sessionPolicyHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace RolesAnywhere
153} // namespace Aws
UpdateProfileRequest & WithName(NameT &&value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateProfileRequest & WithManagedPolicyArns(ManagedPolicyArnsT &&value)
AWS_ROLESANYWHERE_API UpdateProfileRequest()=default
UpdateProfileRequest & WithRoleArns(RoleArnsT &&value)
const Aws::Vector< Aws::String > & GetManagedPolicyArns() const
UpdateProfileRequest & AddManagedPolicyArns(ManagedPolicyArnsT &&value)
const Aws::Vector< Aws::String > & GetRoleArns() const
UpdateProfileRequest & AddRoleArns(RoleArnsT &&value)
UpdateProfileRequest & WithProfileId(ProfileIdT &&value)
UpdateProfileRequest & WithSessionPolicy(SessionPolicyT &&value)
UpdateProfileRequest & WithAcceptRoleSessionName(bool value)
UpdateProfileRequest & WithDurationSeconds(int value)
void SetManagedPolicyArns(ManagedPolicyArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector