AWS SDK for C++  1.8.71
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
FlushStageCacheRequest & WithRestApiId(const char *value)
FlushStageCacheRequest & WithRestApiId(Aws::String &&value)
FlushStageCacheRequest & WithStageName(Aws::String &&value)
FlushStageCacheRequest & WithRestApiId(const Aws::String &value)
FlushStageCacheRequest & WithStageName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
FlushStageCacheRequest & WithStageName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override