AWS SDK for C++  1.9.20
AWS SDK for C++
FlushStageCacheRequest.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 "FlushStageCache"; }
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 FlushStageCacheRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
67 
71  inline FlushStageCacheRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
72 
76  inline FlushStageCacheRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
77 
78 
82  inline const Aws::String& GetStageName() const{ return m_stageName; }
83 
87  inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
88 
92  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
93 
97  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); }
98 
102  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
103 
107  inline FlushStageCacheRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
108 
112  inline FlushStageCacheRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;}
113 
117  inline FlushStageCacheRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
118 
119  private:
120 
121  Aws::String m_restApiId;
122  bool m_restApiIdHasBeenSet;
123 
124  Aws::String m_stageName;
125  bool m_stageNameHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace APIGateway
130 } // namespace Aws
Aws::APIGateway::Model::FlushStageCacheRequest::WithRestApiId
FlushStageCacheRequest & WithRestApiId(const char *value)
Definition: FlushStageCacheRequest.h:76
Aws::APIGateway::Model::FlushStageCacheRequest::SetStageName
void SetStageName(const Aws::String &value)
Definition: FlushStageCacheRequest.h:92
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::FlushStageCacheRequest::FlushStageCacheRequest
FlushStageCacheRequest()
Aws::APIGateway::Model::FlushStageCacheRequest::WithStageName
FlushStageCacheRequest & WithStageName(const char *value)
Definition: FlushStageCacheRequest.h:117
Aws::APIGateway::Model::FlushStageCacheRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: FlushStageCacheRequest.h:56
Aws::APIGateway::Model::FlushStageCacheRequest
Definition: FlushStageCacheRequest.h:25
APIGateway_EXPORTS.h
Aws::APIGateway::Model::FlushStageCacheRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: FlushStageCacheRequest.h:61
APIGatewayRequest.h
Aws::APIGateway::Model::FlushStageCacheRequest::WithStageName
FlushStageCacheRequest & WithStageName(const Aws::String &value)
Definition: FlushStageCacheRequest.h:107
Aws::APIGateway::Model::FlushStageCacheRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::FlushStageCacheRequest::SetStageName
void SetStageName(const char *value)
Definition: FlushStageCacheRequest.h:102
Aws::APIGateway::Model::FlushStageCacheRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: FlushStageCacheRequest.h:33
Aws::APIGateway::Model::FlushStageCacheRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: FlushStageCacheRequest.h:41
Aws::APIGateway::Model::FlushStageCacheRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: FlushStageCacheRequest.h:51
AWSString.h
Aws::APIGateway::Model::FlushStageCacheRequest::StageNameHasBeenSet
bool StageNameHasBeenSet() const
Definition: FlushStageCacheRequest.h:87
Aws::APIGateway::Model::FlushStageCacheRequest::WithRestApiId
FlushStageCacheRequest & WithRestApiId(const Aws::String &value)
Definition: FlushStageCacheRequest.h:66
Aws::APIGateway::Model::FlushStageCacheRequest::WithRestApiId
FlushStageCacheRequest & WithRestApiId(Aws::String &&value)
Definition: FlushStageCacheRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::FlushStageCacheRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: FlushStageCacheRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::FlushStageCacheRequest::SetStageName
void SetStageName(Aws::String &&value)
Definition: FlushStageCacheRequest.h:97
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::FlushStageCacheRequest::GetStageName
const Aws::String & GetStageName() const
Definition: FlushStageCacheRequest.h:82
Aws::APIGateway::Model::FlushStageCacheRequest::WithStageName
FlushStageCacheRequest & WithStageName(Aws::String &&value)
Definition: FlushStageCacheRequest.h:112