AWS SDK for C++  1.9.16
AWS SDK for C++
GetResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace APIGateway
20 {
21 namespace Model
22 {
23 
30  {
31  public:
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::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
49 
53  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
54 
58  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
59 
63  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
64 
68  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
69 
73  inline GetResourceRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
74 
78  inline GetResourceRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
79 
83  inline GetResourceRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
84 
85 
89  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
90 
94  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
95 
99  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
100 
104  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
105 
109  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
110 
114  inline GetResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
115 
119  inline GetResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
120 
124  inline GetResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
125 
126 
136  inline const Aws::Vector<Aws::String>& GetEmbed() const{ return m_embed; }
137 
147  inline bool EmbedHasBeenSet() const { return m_embedHasBeenSet; }
148 
158  inline void SetEmbed(const Aws::Vector<Aws::String>& value) { m_embedHasBeenSet = true; m_embed = value; }
159 
169  inline void SetEmbed(Aws::Vector<Aws::String>&& value) { m_embedHasBeenSet = true; m_embed = std::move(value); }
170 
180  inline GetResourceRequest& WithEmbed(const Aws::Vector<Aws::String>& value) { SetEmbed(value); return *this;}
181 
191  inline GetResourceRequest& WithEmbed(Aws::Vector<Aws::String>&& value) { SetEmbed(std::move(value)); return *this;}
192 
202  inline GetResourceRequest& AddEmbed(const Aws::String& value) { m_embedHasBeenSet = true; m_embed.push_back(value); return *this; }
203 
213  inline GetResourceRequest& AddEmbed(Aws::String&& value) { m_embedHasBeenSet = true; m_embed.push_back(std::move(value)); return *this; }
214 
224  inline GetResourceRequest& AddEmbed(const char* value) { m_embedHasBeenSet = true; m_embed.push_back(value); return *this; }
225 
226  private:
227 
228  Aws::String m_restApiId;
229  bool m_restApiIdHasBeenSet;
230 
231  Aws::String m_resourceId;
232  bool m_resourceIdHasBeenSet;
233 
234  Aws::Vector<Aws::String> m_embed;
235  bool m_embedHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace APIGateway
240 } // namespace Aws
Aws::APIGateway::Model::GetResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: GetResourceRequest.h:94
Aws::APIGateway::Model::GetResourceRequest::WithResourceId
GetResourceRequest & WithResourceId(const char *value)
Definition: GetResourceRequest.h:124
Aws::Http::URI
Definition: URI.h:32
Aws::APIGateway::Model::GetResourceRequest::WithEmbed
GetResourceRequest & WithEmbed(Aws::Vector< Aws::String > &&value)
Definition: GetResourceRequest.h:191
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: GetResourceRequest.h:99
Aws::APIGateway::Model::GetResourceRequest::EmbedHasBeenSet
bool EmbedHasBeenSet() const
Definition: GetResourceRequest.h:147
Aws::APIGateway::Model::GetResourceRequest::SetEmbed
void SetEmbed(const Aws::Vector< Aws::String > &value)
Definition: GetResourceRequest.h:158
Aws::APIGateway::Model::GetResourceRequest::WithEmbed
GetResourceRequest & WithEmbed(const Aws::Vector< Aws::String > &value)
Definition: GetResourceRequest.h:180
Aws::APIGateway::Model::GetResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: GetResourceRequest.h:89
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetResourceRequest::WithRestApiId
GetResourceRequest & WithRestApiId(Aws::String &&value)
Definition: GetResourceRequest.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::GetResourceRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::APIGateway::Model::GetResourceRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: GetResourceRequest.h:53
AWSVector.h
APIGatewayRequest.h
Aws::APIGateway::Model::GetResourceRequest
Definition: GetResourceRequest.h:30
Aws::APIGateway::Model::GetResourceRequest::WithRestApiId
GetResourceRequest & WithRestApiId(const Aws::String &value)
Definition: GetResourceRequest.h:73
Aws::APIGateway::Model::GetResourceRequest::GetEmbed
const Aws::Vector< Aws::String > & GetEmbed() const
Definition: GetResourceRequest.h:136
Aws::APIGateway::Model::GetResourceRequest::AddEmbed
GetResourceRequest & AddEmbed(Aws::String &&value)
Definition: GetResourceRequest.h:213
Aws::APIGateway::Model::GetResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: GetResourceRequest.h:109
Aws::APIGateway::Model::GetResourceRequest::WithResourceId
GetResourceRequest & WithResourceId(const Aws::String &value)
Definition: GetResourceRequest.h:114
Aws::APIGateway::Model::GetResourceRequest::GetResourceRequest
GetResourceRequest()
AWSString.h
Aws::APIGateway::Model::GetResourceRequest::SetEmbed
void SetEmbed(Aws::Vector< Aws::String > &&value)
Definition: GetResourceRequest.h:169
Aws::APIGateway::Model::GetResourceRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: GetResourceRequest.h:63
Aws::APIGateway::Model::GetResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: GetResourceRequest.h:104
Aws::APIGateway::Model::GetResourceRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: GetResourceRequest.h:68
Aws::APIGateway::Model::GetResourceRequest::WithRestApiId
GetResourceRequest & WithRestApiId(const char *value)
Definition: GetResourceRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GetResourceRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: GetResourceRequest.h:48
Aws::APIGateway::Model::GetResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetResourceRequest::WithResourceId
GetResourceRequest & WithResourceId(Aws::String &&value)
Definition: GetResourceRequest.h:119
Aws::APIGateway::Model::GetResourceRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: GetResourceRequest.h:58
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::GetResourceRequest::AddEmbed
GetResourceRequest & AddEmbed(const Aws::String &value)
Definition: GetResourceRequest.h:202
Aws::APIGateway::Model::GetResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetResourceRequest.h:38
Aws::APIGateway::Model::GetResourceRequest::AddEmbed
GetResourceRequest & AddEmbed(const char *value)
Definition: GetResourceRequest.h:224