AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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 private:
103 Aws::String m_roleName;
104
105 Aws::String m_description;
106
107 int m_maxSessionDuration{0};
108 bool m_roleNameHasBeenSet = false;
109 bool m_descriptionHasBeenSet = false;
110 bool m_maxSessionDurationHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace IAM
115} // namespace Aws
const Aws::String & GetDescription() const
AWS_IAM_API Aws::String SerializePayload() const override
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)
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