AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateIpGroupRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces/model/IpRuleItem.h>
12#include <aws/workspaces/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace WorkSpaces
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_WORKSPACES_API CreateIpGroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateIpGroup"; }
34
35 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetGroupName() const { return m_groupName; }
45 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
46 template<typename GroupNameT = Aws::String>
47 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
48 template<typename GroupNameT = Aws::String>
49 CreateIpGroupRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetGroupDesc() const { return m_groupDesc; }
57 inline bool GroupDescHasBeenSet() const { return m_groupDescHasBeenSet; }
58 template<typename GroupDescT = Aws::String>
59 void SetGroupDesc(GroupDescT&& value) { m_groupDescHasBeenSet = true; m_groupDesc = std::forward<GroupDescT>(value); }
60 template<typename GroupDescT = Aws::String>
61 CreateIpGroupRequest& WithGroupDesc(GroupDescT&& value) { SetGroupDesc(std::forward<GroupDescT>(value)); return *this;}
63
65
68 inline const Aws::Vector<IpRuleItem>& GetUserRules() const { return m_userRules; }
69 inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
70 template<typename UserRulesT = Aws::Vector<IpRuleItem>>
71 void SetUserRules(UserRulesT&& value) { m_userRulesHasBeenSet = true; m_userRules = std::forward<UserRulesT>(value); }
72 template<typename UserRulesT = Aws::Vector<IpRuleItem>>
73 CreateIpGroupRequest& WithUserRules(UserRulesT&& value) { SetUserRules(std::forward<UserRulesT>(value)); return *this;}
74 template<typename UserRulesT = IpRuleItem>
75 CreateIpGroupRequest& AddUserRules(UserRulesT&& value) { m_userRulesHasBeenSet = true; m_userRules.emplace_back(std::forward<UserRulesT>(value)); return *this; }
77
79
82 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template<typename TagsT = Aws::Vector<Tag>>
85 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
86 template<typename TagsT = Aws::Vector<Tag>>
87 CreateIpGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
88 template<typename TagsT = Tag>
89 CreateIpGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
91 private:
92
93 Aws::String m_groupName;
94 bool m_groupNameHasBeenSet = false;
95
96 Aws::String m_groupDesc;
97 bool m_groupDescHasBeenSet = false;
98
99 Aws::Vector<IpRuleItem> m_userRules;
100 bool m_userRulesHasBeenSet = false;
101
102 Aws::Vector<Tag> m_tags;
103 bool m_tagsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace WorkSpaces
108} // 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