AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeWorkspaceAssociationsRequest.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/WorkSpaceAssociatedResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkSpaces
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeWorkspaceAssociations"; }
33
34 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
44 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
45 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
46 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
47 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
49 inline DescribeWorkspaceAssociationsRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
50 inline DescribeWorkspaceAssociationsRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
52
54
57 inline const Aws::Vector<WorkSpaceAssociatedResourceType>& GetAssociatedResourceTypes() const{ return m_associatedResourceTypes; }
58 inline bool AssociatedResourceTypesHasBeenSet() const { return m_associatedResourceTypesHasBeenSet; }
59 inline void SetAssociatedResourceTypes(const Aws::Vector<WorkSpaceAssociatedResourceType>& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes = value; }
60 inline void SetAssociatedResourceTypes(Aws::Vector<WorkSpaceAssociatedResourceType>&& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes = std::move(value); }
63 inline DescribeWorkspaceAssociationsRequest& AddAssociatedResourceTypes(const WorkSpaceAssociatedResourceType& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes.push_back(value); return *this; }
64 inline DescribeWorkspaceAssociationsRequest& AddAssociatedResourceTypes(WorkSpaceAssociatedResourceType&& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes.push_back(std::move(value)); return *this; }
66 private:
67
68 Aws::String m_workspaceId;
69 bool m_workspaceIdHasBeenSet = false;
70
71 Aws::Vector<WorkSpaceAssociatedResourceType> m_associatedResourceTypes;
72 bool m_associatedResourceTypesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace WorkSpaces
77} // namespace Aws
void SetAssociatedResourceTypes(Aws::Vector< WorkSpaceAssociatedResourceType > &&value)
void SetAssociatedResourceTypes(const Aws::Vector< WorkSpaceAssociatedResourceType > &value)
DescribeWorkspaceAssociationsRequest & WithWorkspaceId(const char *value)
const Aws::Vector< WorkSpaceAssociatedResourceType > & GetAssociatedResourceTypes() const
DescribeWorkspaceAssociationsRequest & AddAssociatedResourceTypes(const WorkSpaceAssociatedResourceType &value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
DescribeWorkspaceAssociationsRequest & AddAssociatedResourceTypes(WorkSpaceAssociatedResourceType &&value)
DescribeWorkspaceAssociationsRequest & WithAssociatedResourceTypes(Aws::Vector< WorkSpaceAssociatedResourceType > &&value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeWorkspaceAssociationsRequest & WithWorkspaceId(const Aws::String &value)
DescribeWorkspaceAssociationsRequest & WithAssociatedResourceTypes(const Aws::Vector< WorkSpaceAssociatedResourceType > &value)
DescribeWorkspaceAssociationsRequest & WithWorkspaceId(Aws::String &&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