AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
52 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
53 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
54 inline GetResourceRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
55 inline GetResourceRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
56 inline GetResourceRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
58
60
63 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
64 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
65 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
66 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
67 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
68 inline GetResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
69 inline GetResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
70 inline GetResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
72
74
83 inline const Aws::Vector<Aws::String>& GetEmbed() const{ return m_embed; }
84 inline bool EmbedHasBeenSet() const { return m_embedHasBeenSet; }
85 inline void SetEmbed(const Aws::Vector<Aws::String>& value) { m_embedHasBeenSet = true; m_embed = value; }
86 inline void SetEmbed(Aws::Vector<Aws::String>&& value) { m_embedHasBeenSet = true; m_embed = std::move(value); }
87 inline GetResourceRequest& WithEmbed(const Aws::Vector<Aws::String>& value) { SetEmbed(value); return *this;}
88 inline GetResourceRequest& WithEmbed(Aws::Vector<Aws::String>&& value) { SetEmbed(std::move(value)); return *this;}
89 inline GetResourceRequest& AddEmbed(const Aws::String& value) { m_embedHasBeenSet = true; m_embed.push_back(value); return *this; }
90 inline GetResourceRequest& AddEmbed(Aws::String&& value) { m_embedHasBeenSet = true; m_embed.push_back(std::move(value)); return *this; }
91 inline GetResourceRequest& AddEmbed(const char* value) { m_embedHasBeenSet = true; m_embed.push_back(value); return *this; }
93 private:
94
95 Aws::String m_restApiId;
96 bool m_restApiIdHasBeenSet = false;
97
98 Aws::String m_resourceId;
99 bool m_resourceIdHasBeenSet = false;
100
102 bool m_embedHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace APIGateway
107} // namespace Aws
GetResourceRequest & WithRestApiId(Aws::String &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
void SetEmbed(const Aws::Vector< Aws::String > &value)
GetResourceRequest & AddEmbed(const char *value)
GetResourceRequest & WithRestApiId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetEmbed() const
GetResourceRequest & WithResourceId(Aws::String &&value)
GetResourceRequest & AddEmbed(const Aws::String &value)
GetResourceRequest & WithEmbed(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
GetResourceRequest & WithResourceId(const Aws::String &value)
void SetEmbed(Aws::Vector< Aws::String > &&value)
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetResourceRequest & WithRestApiId(const char *value)
GetResourceRequest & WithEmbed(Aws::Vector< Aws::String > &&value)
GetResourceRequest & WithResourceId(const char *value)
GetResourceRequest & AddEmbed(Aws::String &&value)
void SetRestApiId(const Aws::String &value)
void SetResourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector