AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspacesIpGroup.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workspaces/model/IpRuleItem.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkSpaces
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WORKSPACES_API WorkspacesIpGroup();
37 AWS_WORKSPACES_API WorkspacesIpGroup(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetGroupId() const{ return m_groupId; }
47 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
48 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
49 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
50 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
51 inline WorkspacesIpGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
52 inline WorkspacesIpGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
53 inline WorkspacesIpGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;}
55
57
60 inline const Aws::String& GetGroupName() const{ return m_groupName; }
61 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
62 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
63 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
64 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
65 inline WorkspacesIpGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
66 inline WorkspacesIpGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
67 inline WorkspacesIpGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;}
69
71
74 inline const Aws::String& GetGroupDesc() const{ return m_groupDesc; }
75 inline bool GroupDescHasBeenSet() const { return m_groupDescHasBeenSet; }
76 inline void SetGroupDesc(const Aws::String& value) { m_groupDescHasBeenSet = true; m_groupDesc = value; }
77 inline void SetGroupDesc(Aws::String&& value) { m_groupDescHasBeenSet = true; m_groupDesc = std::move(value); }
78 inline void SetGroupDesc(const char* value) { m_groupDescHasBeenSet = true; m_groupDesc.assign(value); }
79 inline WorkspacesIpGroup& WithGroupDesc(const Aws::String& value) { SetGroupDesc(value); return *this;}
80 inline WorkspacesIpGroup& WithGroupDesc(Aws::String&& value) { SetGroupDesc(std::move(value)); return *this;}
81 inline WorkspacesIpGroup& WithGroupDesc(const char* value) { SetGroupDesc(value); return *this;}
83
85
88 inline const Aws::Vector<IpRuleItem>& GetUserRules() const{ return m_userRules; }
89 inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
90 inline void SetUserRules(const Aws::Vector<IpRuleItem>& value) { m_userRulesHasBeenSet = true; m_userRules = value; }
91 inline void SetUserRules(Aws::Vector<IpRuleItem>&& value) { m_userRulesHasBeenSet = true; m_userRules = std::move(value); }
92 inline WorkspacesIpGroup& WithUserRules(const Aws::Vector<IpRuleItem>& value) { SetUserRules(value); return *this;}
93 inline WorkspacesIpGroup& WithUserRules(Aws::Vector<IpRuleItem>&& value) { SetUserRules(std::move(value)); return *this;}
94 inline WorkspacesIpGroup& AddUserRules(const IpRuleItem& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(value); return *this; }
95 inline WorkspacesIpGroup& AddUserRules(IpRuleItem&& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_groupId;
100 bool m_groupIdHasBeenSet = false;
101
102 Aws::String m_groupName;
103 bool m_groupNameHasBeenSet = false;
104
105 Aws::String m_groupDesc;
106 bool m_groupDescHasBeenSet = false;
107
108 Aws::Vector<IpRuleItem> m_userRules;
109 bool m_userRulesHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace WorkSpaces
114} // namespace Aws
WorkspacesIpGroup & AddUserRules(IpRuleItem &&value)
WorkspacesIpGroup & WithUserRules(const Aws::Vector< IpRuleItem > &value)
WorkspacesIpGroup & WithGroupId(const Aws::String &value)
AWS_WORKSPACES_API WorkspacesIpGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspacesIpGroup & WithGroupDesc(Aws::String &&value)
AWS_WORKSPACES_API WorkspacesIpGroup(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< IpRuleItem > & GetUserRules() const
WorkspacesIpGroup & WithGroupId(const char *value)
void SetGroupName(const Aws::String &value)
void SetUserRules(Aws::Vector< IpRuleItem > &&value)
void SetUserRules(const Aws::Vector< IpRuleItem > &value)
WorkspacesIpGroup & WithGroupName(const Aws::String &value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspacesIpGroup & WithUserRules(Aws::Vector< IpRuleItem > &&value)
void SetGroupDesc(const Aws::String &value)
void SetGroupId(const Aws::String &value)
WorkspacesIpGroup & AddUserRules(const IpRuleItem &value)
WorkspacesIpGroup & WithGroupName(Aws::String &&value)
WorkspacesIpGroup & WithGroupName(const char *value)
WorkspacesIpGroup & WithGroupDesc(const char *value)
WorkspacesIpGroup & WithGroupId(Aws::String &&value)
WorkspacesIpGroup & WithGroupDesc(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue