AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateGroupRequest.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 UpdateGroupRequest() = 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 "UpdateGroup"; }
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
43 inline const Aws::String& GetGroupName() const { return m_groupName; }
44 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
45 template <typename GroupNameT = Aws::String>
46 void SetGroupName(GroupNameT&& value) {
47 m_groupNameHasBeenSet = true;
48 m_groupName = std::forward<GroupNameT>(value);
49 }
50 template <typename GroupNameT = Aws::String>
51 UpdateGroupRequest& WithGroupName(GroupNameT&& value) {
52 SetGroupName(std::forward<GroupNameT>(value));
53 return *this;
54 }
56
58
68 inline const Aws::String& GetNewPath() const { return m_newPath; }
69 inline bool NewPathHasBeenSet() const { return m_newPathHasBeenSet; }
70 template <typename NewPathT = Aws::String>
71 void SetNewPath(NewPathT&& value) {
72 m_newPathHasBeenSet = true;
73 m_newPath = std::forward<NewPathT>(value);
74 }
75 template <typename NewPathT = Aws::String>
76 UpdateGroupRequest& WithNewPath(NewPathT&& value) {
77 SetNewPath(std::forward<NewPathT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::String& GetNewGroupName() const { return m_newGroupName; }
90 inline bool NewGroupNameHasBeenSet() const { return m_newGroupNameHasBeenSet; }
91 template <typename NewGroupNameT = Aws::String>
92 void SetNewGroupName(NewGroupNameT&& value) {
93 m_newGroupNameHasBeenSet = true;
94 m_newGroupName = std::forward<NewGroupNameT>(value);
95 }
96 template <typename NewGroupNameT = Aws::String>
97 UpdateGroupRequest& WithNewGroupName(NewGroupNameT&& value) {
98 SetNewGroupName(std::forward<NewGroupNameT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_groupName;
104
105 Aws::String m_newPath;
106
107 Aws::String m_newGroupName;
108 bool m_groupNameHasBeenSet = false;
109 bool m_newPathHasBeenSet = false;
110 bool m_newGroupNameHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace IAM
115} // namespace Aws
AWS_IAM_API UpdateGroupRequest()=default
void SetGroupName(GroupNameT &&value)
const Aws::String & GetGroupName() const
const Aws::String & GetNewPath() const
const Aws::String & GetNewGroupName() const
AWS_IAM_API Aws::String SerializePayload() const override
UpdateGroupRequest & WithNewGroupName(NewGroupNameT &&value)
UpdateGroupRequest & WithNewPath(NewPathT &&value)
UpdateGroupRequest & WithGroupName(GroupNameT &&value)
void SetNewGroupName(NewGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String