AWS SDK for C++  1.8.71
AWS SDK for C++
GetApiCacheRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AppSync
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetApiCache"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetApiId() const{ return m_apiId; }
43 
47  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
48 
52  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
53 
57  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
58 
62  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
63 
67  inline GetApiCacheRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
68 
72  inline GetApiCacheRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
73 
77  inline GetApiCacheRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
78 
79  private:
80 
81  Aws::String m_apiId;
82  bool m_apiIdHasBeenSet;
83  };
84 
85 } // namespace Model
86 } // namespace AppSync
87 } // namespace Aws
GetApiCacheRequest & WithApiId(Aws::String &&value)
const Aws::String & GetApiId() const
GetApiCacheRequest & WithApiId(const char *value)
virtual const char * GetServiceRequestName() const override
#define AWS_APPSYNC_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetApiId(const Aws::String &value)
GetApiCacheRequest & WithApiId(const Aws::String &value)