AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateGroupRequest.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 CreateGroupRequest() = 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 "CreateGroup"; }
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
48 inline const Aws::String& GetPath() const { return m_path; }
49 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
50 template <typename PathT = Aws::String>
51 void SetPath(PathT&& value) {
52 m_pathHasBeenSet = true;
53 m_path = std::forward<PathT>(value);
54 }
55 template <typename PathT = Aws::String>
56 CreateGroupRequest& WithPath(PathT&& value) {
57 SetPath(std::forward<PathT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::String& GetGroupName() const { return m_groupName; }
70 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
71 template <typename GroupNameT = Aws::String>
72 void SetGroupName(GroupNameT&& value) {
73 m_groupNameHasBeenSet = true;
74 m_groupName = std::forward<GroupNameT>(value);
75 }
76 template <typename GroupNameT = Aws::String>
77 CreateGroupRequest& WithGroupName(GroupNameT&& value) {
78 SetGroupName(std::forward<GroupNameT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_path;
84
85 Aws::String m_groupName;
86 bool m_pathHasBeenSet = false;
87 bool m_groupNameHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace IAM
92} // namespace Aws
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetPath() const
AWS_IAM_API Aws::String SerializePayload() const override
CreateGroupRequest & WithGroupName(GroupNameT &&value)
const Aws::String & GetGroupName() const
virtual const char * GetServiceRequestName() const override
CreateGroupRequest & WithPath(PathT &&value)
void SetGroupName(GroupNameT &&value)
AWS_IAM_API CreateGroupRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String