AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetResourceRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace APIGateway
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_APIGATEWAY_API GetResourceRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "GetResource"; }
39
40 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
41
42 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
50 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
51 template<typename RestApiIdT = Aws::String>
52 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
53 template<typename RestApiIdT = Aws::String>
54 GetResourceRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetResourceId() const { return m_resourceId; }
62 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
63 template<typename ResourceIdT = Aws::String>
64 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
65 template<typename ResourceIdT = Aws::String>
66 GetResourceRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
68
70
79 inline const Aws::Vector<Aws::String>& GetEmbed() const { return m_embed; }
80 inline bool EmbedHasBeenSet() const { return m_embedHasBeenSet; }
81 template<typename EmbedT = Aws::Vector<Aws::String>>
82 void SetEmbed(EmbedT&& value) { m_embedHasBeenSet = true; m_embed = std::forward<EmbedT>(value); }
83 template<typename EmbedT = Aws::Vector<Aws::String>>
84 GetResourceRequest& WithEmbed(EmbedT&& value) { SetEmbed(std::forward<EmbedT>(value)); return *this;}
85 template<typename EmbedT = Aws::String>
86 GetResourceRequest& AddEmbed(EmbedT&& value) { m_embedHasBeenSet = true; m_embed.emplace_back(std::forward<EmbedT>(value)); return *this; }
88 private:
89
90 Aws::String m_restApiId;
91 bool m_restApiIdHasBeenSet = false;
92
93 Aws::String m_resourceId;
94 bool m_resourceIdHasBeenSet = false;
95
97 bool m_embedHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace APIGateway
102} // namespace Aws
GetResourceRequest & AddEmbed(EmbedT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetEmbed() const
GetResourceRequest & WithRestApiId(RestApiIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetResourceRequest & WithEmbed(EmbedT &&value)
AWS_APIGATEWAY_API GetResourceRequest()=default
GetResourceRequest & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector