AWS SDK for C++  1.9.21
AWS SDK for C++
DeleteResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace APIGateway
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "DeleteResource"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
42 
46  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 
51  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
52 
56  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
57 
61  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
62 
66  inline DeleteResourceRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
67 
71  inline DeleteResourceRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
72 
76  inline DeleteResourceRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
77 
78 
82  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
83 
87  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
88 
92  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
93 
97  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
98 
102  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
103 
107  inline DeleteResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
108 
112  inline DeleteResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
113 
117  inline DeleteResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
118 
119  private:
120 
121  Aws::String m_restApiId;
122  bool m_restApiIdHasBeenSet;
123 
124  Aws::String m_resourceId;
125  bool m_resourceIdHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace APIGateway
130 } // namespace Aws
Aws::APIGateway::Model::DeleteResourceRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: DeleteResourceRequest.h:61
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::DeleteResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: DeleteResourceRequest.h:102
Aws::APIGateway::Model::DeleteResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: DeleteResourceRequest.h:82
Aws::APIGateway::Model::DeleteResourceRequest
Definition: DeleteResourceRequest.h:25
APIGateway_EXPORTS.h
Aws::APIGateway::Model::DeleteResourceRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: DeleteResourceRequest.h:46
Aws::APIGateway::Model::DeleteResourceRequest::WithRestApiId
DeleteResourceRequest & WithRestApiId(const char *value)
Definition: DeleteResourceRequest.h:76
APIGatewayRequest.h
Aws::APIGateway::Model::DeleteResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: DeleteResourceRequest.h:87
Aws::APIGateway::Model::DeleteResourceRequest::WithResourceId
DeleteResourceRequest & WithResourceId(const char *value)
Definition: DeleteResourceRequest.h:117
Aws::APIGateway::Model::DeleteResourceRequest::WithRestApiId
DeleteResourceRequest & WithRestApiId(const Aws::String &value)
Definition: DeleteResourceRequest.h:66
Aws::APIGateway::Model::DeleteResourceRequest::WithResourceId
DeleteResourceRequest & WithResourceId(const Aws::String &value)
Definition: DeleteResourceRequest.h:107
AWSString.h
Aws::APIGateway::Model::DeleteResourceRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: DeleteResourceRequest.h:51
Aws::APIGateway::Model::DeleteResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::DeleteResourceRequest::WithResourceId
DeleteResourceRequest & WithResourceId(Aws::String &&value)
Definition: DeleteResourceRequest.h:112
Aws::APIGateway::Model::DeleteResourceRequest::WithRestApiId
DeleteResourceRequest & WithRestApiId(Aws::String &&value)
Definition: DeleteResourceRequest.h:71
Aws::APIGateway::Model::DeleteResourceRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: DeleteResourceRequest.h:41
Aws::APIGateway::Model::DeleteResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: DeleteResourceRequest.h:97
Aws::APIGateway::Model::DeleteResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteResourceRequest.h:33
Aws::APIGateway::Model::DeleteResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: DeleteResourceRequest.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::DeleteResourceRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: DeleteResourceRequest.h:56
Aws::APIGateway::Model::DeleteResourceRequest::DeleteResourceRequest
DeleteResourceRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18