AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateRoleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/IAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IAM {
15namespace Model {
16
20 public:
21 AWS_IAM_API UpdateRoleRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateRole"; }
28
29 AWS_IAM_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetRoleName() const { return m_roleName; }
40 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
41 template <typename RoleNameT = Aws::String>
42 void SetRoleName(RoleNameT&& value) {
43 m_roleNameHasBeenSet = true;
44 m_roleName = std::forward<RoleNameT>(value);
45 }
46 template <typename RoleNameT = Aws::String>
47 UpdateRoleRequest& WithRoleName(RoleNameT&& value) {
48 SetRoleName(std::forward<RoleNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 UpdateRoleRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
91 inline int GetMaxSessionDuration() const { return m_maxSessionDuration; }
92 inline bool MaxSessionDurationHasBeenSet() const { return m_maxSessionDurationHasBeenSet; }
93 inline void SetMaxSessionDuration(int value) {
94 m_maxSessionDurationHasBeenSet = true;
95 m_maxSessionDuration = value;
96 }
99 return *this;
100 }
102
104
117 inline int GetMaxSigninSessionDuration() const { return m_maxSigninSessionDuration; }
118 inline bool MaxSigninSessionDurationHasBeenSet() const { return m_maxSigninSessionDurationHasBeenSet; }
119 inline void SetMaxSigninSessionDuration(int value) {
120 m_maxSigninSessionDurationHasBeenSet = true;
121 m_maxSigninSessionDuration = value;
122 }
125 return *this;
126 }
128
130
141 inline bool GetResetMaxSigninSessionDuration() const { return m_resetMaxSigninSessionDuration; }
142 inline bool ResetMaxSigninSessionDurationHasBeenSet() const { return m_resetMaxSigninSessionDurationHasBeenSet; }
143 inline void SetResetMaxSigninSessionDuration(bool value) {
144 m_resetMaxSigninSessionDurationHasBeenSet = true;
145 m_resetMaxSigninSessionDuration = value;
146 }
149 return *this;
150 }
152 private:
153 Aws::String m_roleName;
154
155 Aws::String m_description;
156
157 int m_maxSessionDuration{0};
158
159 int m_maxSigninSessionDuration{0};
160
161 bool m_resetMaxSigninSessionDuration{false};
162 bool m_roleNameHasBeenSet = false;
163 bool m_descriptionHasBeenSet = false;
164 bool m_maxSessionDurationHasBeenSet = false;
165 bool m_maxSigninSessionDurationHasBeenSet = false;
166 bool m_resetMaxSigninSessionDurationHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace IAM
171} // namespace Aws
const Aws::String & GetDescription() const
AWS_IAM_API Aws::String SerializePayload() const override
UpdateRoleRequest & WithMaxSigninSessionDuration(int value)
UpdateRoleRequest & WithDescription(DescriptionT &&value)
void SetRoleName(RoleNameT &&value)
UpdateRoleRequest & WithMaxSessionDuration(int value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetRoleName() const
UpdateRoleRequest & WithRoleName(RoleNameT &&value)
void SetDescription(DescriptionT &&value)
UpdateRoleRequest & WithResetMaxSigninSessionDuration(bool value)
AWS_IAM_API UpdateRoleRequest()=default
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String