AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateIpGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workspaces/WorkSpacesRequest.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11#include <aws/workspaces/model/IpRuleItem.h>
12#include <aws/workspaces/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace WorkSpaces {
18namespace Model {
19
23 public:
24 AWS_WORKSPACES_API CreateIpGroupRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateIpGroup"; }
31
32 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetGroupName() const { return m_groupName; }
41 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
42 template <typename GroupNameT = Aws::String>
43 void SetGroupName(GroupNameT&& value) {
44 m_groupNameHasBeenSet = true;
45 m_groupName = std::forward<GroupNameT>(value);
46 }
47 template <typename GroupNameT = Aws::String>
48 CreateIpGroupRequest& WithGroupName(GroupNameT&& value) {
49 SetGroupName(std::forward<GroupNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetGroupDesc() const { return m_groupDesc; }
59 inline bool GroupDescHasBeenSet() const { return m_groupDescHasBeenSet; }
60 template <typename GroupDescT = Aws::String>
61 void SetGroupDesc(GroupDescT&& value) {
62 m_groupDescHasBeenSet = true;
63 m_groupDesc = std::forward<GroupDescT>(value);
64 }
65 template <typename GroupDescT = Aws::String>
66 CreateIpGroupRequest& WithGroupDesc(GroupDescT&& value) {
67 SetGroupDesc(std::forward<GroupDescT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<IpRuleItem>& GetUserRules() const { return m_userRules; }
77 inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
78 template <typename UserRulesT = Aws::Vector<IpRuleItem>>
79 void SetUserRules(UserRulesT&& value) {
80 m_userRulesHasBeenSet = true;
81 m_userRules = std::forward<UserRulesT>(value);
82 }
83 template <typename UserRulesT = Aws::Vector<IpRuleItem>>
84 CreateIpGroupRequest& WithUserRules(UserRulesT&& value) {
85 SetUserRules(std::forward<UserRulesT>(value));
86 return *this;
87 }
88 template <typename UserRulesT = IpRuleItem>
89 CreateIpGroupRequest& AddUserRules(UserRulesT&& value) {
90 m_userRulesHasBeenSet = true;
91 m_userRules.emplace_back(std::forward<UserRulesT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template <typename TagsT = Aws::Vector<Tag>>
103 void SetTags(TagsT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags = std::forward<TagsT>(value);
106 }
107 template <typename TagsT = Aws::Vector<Tag>>
109 SetTags(std::forward<TagsT>(value));
110 return *this;
111 }
112 template <typename TagsT = Tag>
114 m_tagsHasBeenSet = true;
115 m_tags.emplace_back(std::forward<TagsT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_groupName;
121
122 Aws::String m_groupDesc;
123
124 Aws::Vector<IpRuleItem> m_userRules;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_groupNameHasBeenSet = false;
128 bool m_groupDescHasBeenSet = false;
129 bool m_userRulesHasBeenSet = false;
130 bool m_tagsHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace WorkSpaces
135} // namespace Aws
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateIpGroupRequest & WithUserRules(UserRulesT &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
AWS_WORKSPACES_API CreateIpGroupRequest()=default
const Aws::Vector< IpRuleItem > & GetUserRules() const
CreateIpGroupRequest & AddUserRules(UserRulesT &&value)
CreateIpGroupRequest & AddTags(TagsT &&value)
CreateIpGroupRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateIpGroupRequest & WithGroupName(GroupNameT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateIpGroupRequest & WithGroupDesc(GroupDescT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector