AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DescribeApplicationAssociationsRequest.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#include <aws/workspaces/model/ApplicationAssociatedResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WorkSpaces {
17namespace Model {
18
22 public:
23 AWS_WORKSPACES_API DescribeApplicationAssociationsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeApplicationAssociations"; }
30
31 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
32
34
36
39 inline int GetMaxResults() const { return m_maxResults; }
40 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
41 inline void SetMaxResults(int value) {
42 m_maxResultsHasBeenSet = true;
43 m_maxResults = value;
44 }
46 SetMaxResults(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
75 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
76 template <typename ApplicationIdT = Aws::String>
77 void SetApplicationId(ApplicationIdT&& value) {
78 m_applicationIdHasBeenSet = true;
79 m_applicationId = std::forward<ApplicationIdT>(value);
80 }
81 template <typename ApplicationIdT = Aws::String>
83 SetApplicationId(std::forward<ApplicationIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<ApplicationAssociatedResourceType>& GetAssociatedResourceTypes() const { return m_associatedResourceTypes; }
93 inline bool AssociatedResourceTypesHasBeenSet() const { return m_associatedResourceTypesHasBeenSet; }
94 template <typename AssociatedResourceTypesT = Aws::Vector<ApplicationAssociatedResourceType>>
95 void SetAssociatedResourceTypes(AssociatedResourceTypesT&& value) {
96 m_associatedResourceTypesHasBeenSet = true;
97 m_associatedResourceTypes = std::forward<AssociatedResourceTypesT>(value);
98 }
99 template <typename AssociatedResourceTypesT = Aws::Vector<ApplicationAssociatedResourceType>>
101 SetAssociatedResourceTypes(std::forward<AssociatedResourceTypesT>(value));
102 return *this;
103 }
105 m_associatedResourceTypesHasBeenSet = true;
106 m_associatedResourceTypes.push_back(value);
107 return *this;
108 }
110 private:
111 int m_maxResults{0};
112
113 Aws::String m_nextToken;
114
115 Aws::String m_applicationId;
116
117 Aws::Vector<ApplicationAssociatedResourceType> m_associatedResourceTypes;
118 bool m_maxResultsHasBeenSet = false;
119 bool m_nextTokenHasBeenSet = false;
120 bool m_applicationIdHasBeenSet = false;
121 bool m_associatedResourceTypesHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace WorkSpaces
126} // namespace Aws
DescribeApplicationAssociationsRequest & AddAssociatedResourceTypes(ApplicationAssociatedResourceType value)
DescribeApplicationAssociationsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< ApplicationAssociatedResourceType > & GetAssociatedResourceTypes() const
DescribeApplicationAssociationsRequest & WithApplicationId(ApplicationIdT &&value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeApplicationAssociationsRequest & WithAssociatedResourceTypes(AssociatedResourceTypesT &&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