AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ApplicationT = Aws::String>
51 void SetApplication(ApplicationT&& value) { m_applicationHasBeenSet = true; m_application = std::forward<ApplicationT>(value); }
52 template<typename ApplicationT = Aws::String>
53 GetAssociatedResourceRequest& WithApplication(ApplicationT&& value) { SetApplication(std::forward<ApplicationT>(value)); return *this;}
55
57
60 inline ResourceType GetResourceType() const { return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65
67
70 inline const Aws::String& GetResource() const { return m_resource; }
71 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
72 template<typename ResourceT = Aws::String>
73 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
74 template<typename ResourceT = Aws::String>
75 GetAssociatedResourceRequest& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
77
79
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template<typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
87 template<typename NextTokenT = Aws::String>
88 GetAssociatedResourceRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
90
92
96 inline const Aws::Vector<ResourceItemStatus>& GetResourceTagStatus() const { return m_resourceTagStatus; }
97 inline bool ResourceTagStatusHasBeenSet() const { return m_resourceTagStatusHasBeenSet; }
98 template<typename ResourceTagStatusT = Aws::Vector<ResourceItemStatus>>
99 void SetResourceTagStatus(ResourceTagStatusT&& value) { m_resourceTagStatusHasBeenSet = true; m_resourceTagStatus = std::forward<ResourceTagStatusT>(value); }
100 template<typename ResourceTagStatusT = Aws::Vector<ResourceItemStatus>>
101 GetAssociatedResourceRequest& WithResourceTagStatus(ResourceTagStatusT&& value) { SetResourceTagStatus(std::forward<ResourceTagStatusT>(value)); return *this;}
102 inline GetAssociatedResourceRequest& AddResourceTagStatus(ResourceItemStatus value) { m_resourceTagStatusHasBeenSet = true; m_resourceTagStatus.push_back(value); return *this; }
104
106
110 inline int GetMaxResults() const { return m_maxResults; }
111 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
112 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
113 inline GetAssociatedResourceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
115 private:
116
117 Aws::String m_application;
118 bool m_applicationHasBeenSet = false;
119
120 ResourceType m_resourceType{ResourceType::NOT_SET};
121 bool m_resourceTypeHasBeenSet = false;
122
123 Aws::String m_resource;
124 bool m_resourceHasBeenSet = false;
125
126 Aws::String m_nextToken;
127 bool m_nextTokenHasBeenSet = false;
128
129 Aws::Vector<ResourceItemStatus> m_resourceTagStatus;
130 bool m_resourceTagStatusHasBeenSet = false;
131
132 int m_maxResults{0};
133 bool m_maxResultsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace AppRegistry
138} // namespace Aws
AWS_APPREGISTRY_API GetAssociatedResourceRequest()=default
GetAssociatedResourceRequest & WithResourceTagStatus(ResourceTagStatusT &&value)
GetAssociatedResourceRequest & WithResourceType(ResourceType value)
GetAssociatedResourceRequest & WithApplication(ApplicationT &&value)
GetAssociatedResourceRequest & AddResourceTagStatus(ResourceItemStatus value)
GetAssociatedResourceRequest & WithResource(ResourceT &&value)
GetAssociatedResourceRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< ResourceItemStatus > & GetResourceTagStatus() const
AWS_APPREGISTRY_API Aws::String SerializePayload() const override
AWS_APPREGISTRY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector