AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociateIpGroupsRequest.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 <utility>
12
13namespace Aws
14{
15namespace WorkSpaces
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKSPACES_API AssociateIpGroupsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AssociateIpGroups"; }
32
33 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
43 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
44 template<typename DirectoryIdT = Aws::String>
45 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
46 template<typename DirectoryIdT = Aws::String>
47 AssociateIpGroupsRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
49
51
54 inline const Aws::Vector<Aws::String>& GetGroupIds() const { return m_groupIds; }
55 inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
56 template<typename GroupIdsT = Aws::Vector<Aws::String>>
57 void SetGroupIds(GroupIdsT&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::forward<GroupIdsT>(value); }
58 template<typename GroupIdsT = Aws::Vector<Aws::String>>
59 AssociateIpGroupsRequest& WithGroupIds(GroupIdsT&& value) { SetGroupIds(std::forward<GroupIdsT>(value)); return *this;}
60 template<typename GroupIdsT = Aws::String>
61 AssociateIpGroupsRequest& AddGroupIds(GroupIdsT&& value) { m_groupIdsHasBeenSet = true; m_groupIds.emplace_back(std::forward<GroupIdsT>(value)); return *this; }
63 private:
64
65 Aws::String m_directoryId;
66 bool m_directoryIdHasBeenSet = false;
67
68 Aws::Vector<Aws::String> m_groupIds;
69 bool m_groupIdsHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace WorkSpaces
74} // 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