AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetAssociatedResourceRequest.h
1
6#pragma once
7#include <aws/servicecatalog-appregistry/AppRegistry_EXPORTS.h>
8#include <aws/servicecatalog-appregistry/AppRegistryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/servicecatalog-appregistry/model/ResourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/servicecatalog-appregistry/model/ResourceItemStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace AppRegistry
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_APPREGISTRY_API GetAssociatedResourceRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "GetAssociatedResource"; }
38
39 AWS_APPREGISTRY_API Aws::String SerializePayload() const override;
40
41 AWS_APPREGISTRY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::String& GetApplication() const{ return m_application; }
49 inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
50 inline void SetApplication(const Aws::String& value) { m_applicationHasBeenSet = true; m_application = value; }
51 inline void SetApplication(Aws::String&& value) { m_applicationHasBeenSet = true; m_application = std::move(value); }
52 inline void SetApplication(const char* value) { m_applicationHasBeenSet = true; m_application.assign(value); }
53 inline GetAssociatedResourceRequest& WithApplication(const Aws::String& value) { SetApplication(value); return *this;}
54 inline GetAssociatedResourceRequest& WithApplication(Aws::String&& value) { SetApplication(std::move(value)); return *this;}
55 inline GetAssociatedResourceRequest& WithApplication(const char* value) { SetApplication(value); return *this;}
57
59
62 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
63 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
64 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
66 inline GetAssociatedResourceRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
67 inline GetAssociatedResourceRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetResource() const{ return m_resource; }
75 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
76 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
77 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
78 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
79 inline GetAssociatedResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
80 inline GetAssociatedResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
81 inline GetAssociatedResourceRequest& WithResource(const char* value) { SetResource(value); return *this;}
83
85
89 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
90 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
92 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
93 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
94 inline GetAssociatedResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
95 inline GetAssociatedResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
96 inline GetAssociatedResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
98
100
104 inline const Aws::Vector<ResourceItemStatus>& GetResourceTagStatus() const{ return m_resourceTagStatus; }
105 inline bool ResourceTagStatusHasBeenSet() const { return m_resourceTagStatusHasBeenSet; }
106 inline void SetResourceTagStatus(const Aws::Vector<ResourceItemStatus>& value) { m_resourceTagStatusHasBeenSet = true; m_resourceTagStatus = value; }
107 inline void SetResourceTagStatus(Aws::Vector<ResourceItemStatus>&& value) { m_resourceTagStatusHasBeenSet = true; m_resourceTagStatus = std::move(value); }
110 inline GetAssociatedResourceRequest& AddResourceTagStatus(const ResourceItemStatus& value) { m_resourceTagStatusHasBeenSet = true; m_resourceTagStatus.push_back(value); return *this; }
111 inline GetAssociatedResourceRequest& AddResourceTagStatus(ResourceItemStatus&& value) { m_resourceTagStatusHasBeenSet = true; m_resourceTagStatus.push_back(std::move(value)); return *this; }
113
115
119 inline int GetMaxResults() const{ return m_maxResults; }
120 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
121 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
122 inline GetAssociatedResourceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
124 private:
125
126 Aws::String m_application;
127 bool m_applicationHasBeenSet = false;
128
129 ResourceType m_resourceType;
130 bool m_resourceTypeHasBeenSet = false;
131
132 Aws::String m_resource;
133 bool m_resourceHasBeenSet = false;
134
135 Aws::String m_nextToken;
136 bool m_nextTokenHasBeenSet = false;
137
138 Aws::Vector<ResourceItemStatus> m_resourceTagStatus;
139 bool m_resourceTagStatusHasBeenSet = false;
140
141 int m_maxResults;
142 bool m_maxResultsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace AppRegistry
147} // namespace Aws
GetAssociatedResourceRequest & AddResourceTagStatus(ResourceItemStatus &&value)
GetAssociatedResourceRequest & WithApplication(const char *value)
GetAssociatedResourceRequest & WithResource(const Aws::String &value)
GetAssociatedResourceRequest & WithNextToken(const char *value)
void SetResourceTagStatus(const Aws::Vector< ResourceItemStatus > &value)
GetAssociatedResourceRequest & WithNextToken(const Aws::String &value)
void SetResourceTagStatus(Aws::Vector< ResourceItemStatus > &&value)
GetAssociatedResourceRequest & WithResourceType(const ResourceType &value)
GetAssociatedResourceRequest & WithApplication(Aws::String &&value)
GetAssociatedResourceRequest & WithResource(const char *value)
GetAssociatedResourceRequest & WithApplication(const Aws::String &value)
GetAssociatedResourceRequest & WithResourceTagStatus(const Aws::Vector< ResourceItemStatus > &value)
GetAssociatedResourceRequest & WithResource(Aws::String &&value)
GetAssociatedResourceRequest & WithResourceTagStatus(Aws::Vector< ResourceItemStatus > &&value)
const Aws::Vector< ResourceItemStatus > & GetResourceTagStatus() const
GetAssociatedResourceRequest & WithNextToken(Aws::String &&value)
GetAssociatedResourceRequest & WithResourceType(ResourceType &&value)
AWS_APPREGISTRY_API Aws::String SerializePayload() const override
AWS_APPREGISTRY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetAssociatedResourceRequest & AddResourceTagStatus(const ResourceItemStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector