AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
47 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
48 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
49 inline CreateIpGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
50 inline CreateIpGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
51 inline CreateIpGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
53
55
58 inline const Aws::String& GetGroupDesc() const{ return m_groupDesc; }
59 inline bool GroupDescHasBeenSet() const { return m_groupDescHasBeenSet; }
60 inline void SetGroupDesc(const Aws::String& value) { m_groupDescHasBeenSet = true; m_groupDesc = value; }
61 inline void SetGroupDesc(Aws::String&& value) { m_groupDescHasBeenSet = true; m_groupDesc = std::move(value); }
62 inline void SetGroupDesc(const char* value) { m_groupDescHasBeenSet = true; m_groupDesc.assign(value); }
63 inline CreateIpGroupRequest& WithGroupDesc(const Aws::String& value) { SetGroupDesc(value); return *this;}
64 inline CreateIpGroupRequest& WithGroupDesc(Aws::String&& value) { SetGroupDesc(std::move(value)); return *this;}
65 inline CreateIpGroupRequest& WithGroupDesc(const char* value) { SetGroupDesc(value); return *this;}
67
69
72 inline const Aws::Vector<IpRuleItem>& GetUserRules() const{ return m_userRules; }
73 inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
74 inline void SetUserRules(const Aws::Vector<IpRuleItem>& value) { m_userRulesHasBeenSet = true; m_userRules = value; }
75 inline void SetUserRules(Aws::Vector<IpRuleItem>&& value) { m_userRulesHasBeenSet = true; m_userRules = std::move(value); }
76 inline CreateIpGroupRequest& WithUserRules(const Aws::Vector<IpRuleItem>& value) { SetUserRules(value); return *this;}
77 inline CreateIpGroupRequest& WithUserRules(Aws::Vector<IpRuleItem>&& value) { SetUserRules(std::move(value)); return *this;}
78 inline CreateIpGroupRequest& AddUserRules(const IpRuleItem& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(value); return *this; }
79 inline CreateIpGroupRequest& AddUserRules(IpRuleItem&& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(std::move(value)); return *this; }
81
83
86 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline CreateIpGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
91 inline CreateIpGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
92 inline CreateIpGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
93 inline CreateIpGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_groupName;
98 bool m_groupNameHasBeenSet = false;
99
100 Aws::String m_groupDesc;
101 bool m_groupDescHasBeenSet = false;
102
103 Aws::Vector<IpRuleItem> m_userRules;
104 bool m_userRulesHasBeenSet = false;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace WorkSpaces
112} // namespace Aws
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateIpGroupRequest & AddTags(const Tag &value)
CreateIpGroupRequest & WithUserRules(Aws::Vector< IpRuleItem > &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
void SetUserRules(Aws::Vector< IpRuleItem > &&value)
CreateIpGroupRequest & WithGroupName(const char *value)
CreateIpGroupRequest & WithTags(Aws::Vector< Tag > &&value)
void SetUserRules(const Aws::Vector< IpRuleItem > &value)
CreateIpGroupRequest & WithGroupName(const Aws::String &value)
CreateIpGroupRequest & AddTags(Tag &&value)
CreateIpGroupRequest & WithGroupDesc(const char *value)
CreateIpGroupRequest & AddUserRules(IpRuleItem &&value)
CreateIpGroupRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< IpRuleItem > & GetUserRules() const
CreateIpGroupRequest & WithUserRules(const Aws::Vector< IpRuleItem > &value)
virtual const char * GetServiceRequestName() const override
CreateIpGroupRequest & WithGroupDesc(const Aws::String &value)
CreateIpGroupRequest & WithGroupDesc(Aws::String &&value)
CreateIpGroupRequest & AddUserRules(const IpRuleItem &value)
CreateIpGroupRequest & WithGroupName(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(const Aws::Vector< Tag > &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