AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeApplicationAssociationsRequest.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/ApplicationAssociatedResourceType.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 "DescribeApplicationAssociations"; }
33
34 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline int GetMaxResults() const{ return m_maxResults; }
44 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
45 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
46 inline DescribeApplicationAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
48
50
54 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
55 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
56 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
57 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
58 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
60 inline DescribeApplicationAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
61 inline DescribeApplicationAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
63
65
68 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
69 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
70 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
71 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
72 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
74 inline DescribeApplicationAssociationsRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
75 inline DescribeApplicationAssociationsRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
77
79
82 inline const Aws::Vector<ApplicationAssociatedResourceType>& GetAssociatedResourceTypes() const{ return m_associatedResourceTypes; }
83 inline bool AssociatedResourceTypesHasBeenSet() const { return m_associatedResourceTypesHasBeenSet; }
84 inline void SetAssociatedResourceTypes(const Aws::Vector<ApplicationAssociatedResourceType>& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes = value; }
85 inline void SetAssociatedResourceTypes(Aws::Vector<ApplicationAssociatedResourceType>&& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes = std::move(value); }
88 inline DescribeApplicationAssociationsRequest& AddAssociatedResourceTypes(const ApplicationAssociatedResourceType& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes.push_back(value); return *this; }
89 inline DescribeApplicationAssociationsRequest& AddAssociatedResourceTypes(ApplicationAssociatedResourceType&& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes.push_back(std::move(value)); return *this; }
91 private:
92
93 int m_maxResults;
94 bool m_maxResultsHasBeenSet = false;
95
96 Aws::String m_nextToken;
97 bool m_nextTokenHasBeenSet = false;
98
99 Aws::String m_applicationId;
100 bool m_applicationIdHasBeenSet = false;
101
102 Aws::Vector<ApplicationAssociatedResourceType> m_associatedResourceTypes;
103 bool m_associatedResourceTypesHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace WorkSpaces
108} // namespace Aws
DescribeApplicationAssociationsRequest & WithNextToken(Aws::String &&value)
DescribeApplicationAssociationsRequest & WithAssociatedResourceTypes(Aws::Vector< ApplicationAssociatedResourceType > &&value)
DescribeApplicationAssociationsRequest & WithAssociatedResourceTypes(const Aws::Vector< ApplicationAssociatedResourceType > &value)
DescribeApplicationAssociationsRequest & WithApplicationId(const Aws::String &value)
DescribeApplicationAssociationsRequest & WithApplicationId(const char *value)
DescribeApplicationAssociationsRequest & WithNextToken(const char *value)
DescribeApplicationAssociationsRequest & AddAssociatedResourceTypes(ApplicationAssociatedResourceType &&value)
void SetAssociatedResourceTypes(Aws::Vector< ApplicationAssociatedResourceType > &&value)
DescribeApplicationAssociationsRequest & WithApplicationId(Aws::String &&value)
const Aws::Vector< ApplicationAssociatedResourceType > & GetAssociatedResourceTypes() const
DescribeApplicationAssociationsRequest & AddAssociatedResourceTypes(const ApplicationAssociatedResourceType &value)
void SetAssociatedResourceTypes(const Aws::Vector< ApplicationAssociatedResourceType > &value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeApplicationAssociationsRequest & WithNextToken(const Aws::String &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