AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AssociateIpGroupsRequest.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
12#include <utility>
13
14namespace Aws {
15namespace WorkSpaces {
16namespace Model {
17
21 public:
22 AWS_WORKSPACES_API AssociateIpGroupsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateIpGroups"; }
29
30 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
39 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
40 template <typename DirectoryIdT = Aws::String>
41 void SetDirectoryId(DirectoryIdT&& value) {
42 m_directoryIdHasBeenSet = true;
43 m_directoryId = std::forward<DirectoryIdT>(value);
44 }
45 template <typename DirectoryIdT = Aws::String>
47 SetDirectoryId(std::forward<DirectoryIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetGroupIds() const { return m_groupIds; }
57 inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
58 template <typename GroupIdsT = Aws::Vector<Aws::String>>
59 void SetGroupIds(GroupIdsT&& value) {
60 m_groupIdsHasBeenSet = true;
61 m_groupIds = std::forward<GroupIdsT>(value);
62 }
63 template <typename GroupIdsT = Aws::Vector<Aws::String>>
65 SetGroupIds(std::forward<GroupIdsT>(value));
66 return *this;
67 }
68 template <typename GroupIdsT = Aws::String>
70 m_groupIdsHasBeenSet = true;
71 m_groupIds.emplace_back(std::forward<GroupIdsT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_directoryId;
77
78 Aws::Vector<Aws::String> m_groupIds;
79 bool m_directoryIdHasBeenSet = false;
80 bool m_groupIdsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace WorkSpaces
85} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_WORKSPACES_API AssociateIpGroupsRequest()=default
const Aws::Vector< Aws::String > & GetGroupIds() const
AssociateIpGroupsRequest & WithGroupIds(GroupIdsT &&value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateIpGroupsRequest & AddGroupIds(GroupIdsT &&value)
AssociateIpGroupsRequest & WithDirectoryId(DirectoryIdT &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
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