AWS SDK for C++  1.9.131
AWS SDK for C++
AssociateIpGroupsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkSpaces
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
42 
46  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
47 
51  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
52 
56  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
57 
61  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
62 
66  inline AssociateIpGroupsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
67 
71  inline AssociateIpGroupsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
72 
76  inline AssociateIpGroupsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
77 
78 
82  inline const Aws::Vector<Aws::String>& GetGroupIds() const{ return m_groupIds; }
83 
87  inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
88 
92  inline void SetGroupIds(const Aws::Vector<Aws::String>& value) { m_groupIdsHasBeenSet = true; m_groupIds = value; }
93 
97  inline void SetGroupIds(Aws::Vector<Aws::String>&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::move(value); }
98 
102  inline AssociateIpGroupsRequest& WithGroupIds(const Aws::Vector<Aws::String>& value) { SetGroupIds(value); return *this;}
103 
107  inline AssociateIpGroupsRequest& WithGroupIds(Aws::Vector<Aws::String>&& value) { SetGroupIds(std::move(value)); return *this;}
108 
112  inline AssociateIpGroupsRequest& AddGroupIds(const Aws::String& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
113 
117  inline AssociateIpGroupsRequest& AddGroupIds(Aws::String&& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(std::move(value)); return *this; }
118 
122  inline AssociateIpGroupsRequest& AddGroupIds(const char* value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
123 
124  private:
125 
126  Aws::String m_directoryId;
127  bool m_directoryIdHasBeenSet;
128 
129  Aws::Vector<Aws::String> m_groupIds;
130  bool m_groupIdsHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace WorkSpaces
135 } // namespace Aws
WorkSpaces_EXPORTS.h
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::GroupIdsHasBeenSet
bool GroupIdsHasBeenSet() const
Definition: AssociateIpGroupsRequest.h:87
Aws::WorkSpaces::WorkSpacesRequest
Definition: WorkSpacesRequest.h:17
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
WorkSpacesRequest.h
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::WithDirectoryId
AssociateIpGroupsRequest & WithDirectoryId(Aws::String &&value)
Definition: AssociateIpGroupsRequest.h:71
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: AssociateIpGroupsRequest.h:61
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: AssociateIpGroupsRequest.h:56
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::GetGroupIds
const Aws::Vector< Aws::String > & GetGroupIds() const
Definition: AssociateIpGroupsRequest.h:82
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::SetGroupIds
void SetGroupIds(Aws::Vector< Aws::String > &&value)
Definition: AssociateIpGroupsRequest.h:97
AWSVector.h
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateIpGroupsRequest.h:31
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::AddGroupIds
AssociateIpGroupsRequest & AddGroupIds(const char *value)
Definition: AssociateIpGroupsRequest.h:122
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::WithDirectoryId
AssociateIpGroupsRequest & WithDirectoryId(const Aws::String &value)
Definition: AssociateIpGroupsRequest.h:66
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::WithGroupIds
AssociateIpGroupsRequest & WithGroupIds(const Aws::Vector< Aws::String > &value)
Definition: AssociateIpGroupsRequest.h:102
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::WithDirectoryId
AssociateIpGroupsRequest & WithDirectoryId(const char *value)
Definition: AssociateIpGroupsRequest.h:76
AWSString.h
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: AssociateIpGroupsRequest.h:41
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: AssociateIpGroupsRequest.h:46
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::AssociateIpGroupsRequest
AssociateIpGroupsRequest()
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: AssociateIpGroupsRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::AddGroupIds
AssociateIpGroupsRequest & AddGroupIds(Aws::String &&value)
Definition: AssociateIpGroupsRequest.h:117
Aws::WorkSpaces::Model::AssociateIpGroupsRequest
Definition: AssociateIpGroupsRequest.h:23
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::SetGroupIds
void SetGroupIds(const Aws::Vector< Aws::String > &value)
Definition: AssociateIpGroupsRequest.h:92
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::AddGroupIds
AssociateIpGroupsRequest & AddGroupIds(const Aws::String &value)
Definition: AssociateIpGroupsRequest.h:112
Aws::WorkSpaces::Model::AssociateIpGroupsRequest::WithGroupIds
AssociateIpGroupsRequest & WithGroupIds(Aws::Vector< Aws::String > &&value)
Definition: AssociateIpGroupsRequest.h:107