1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/appsync/AppSync_EXPORTS.h>
8 #include <aws/appsync/AppSyncRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AppSync
15 {
16 namespace Model
17 {
18 
19   /**
20    * <p>Represents the input of a <code>DeleteApiCache</code>
21    * operation.</p><p><h3>See Also:</h3>   <a
22    * href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCacheRequest">AWS
23    * API Reference</a></p>
24    */
25   class AWS_APPSYNC_API DeleteApiCacheRequest : public AppSyncRequest
26   {
27   public:
28     DeleteApiCacheRequest();
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.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "DeleteApiCache"; }
35 
36     Aws::String SerializePayload() const override;
37 
38 
39     /**
40      * <p>The API ID.</p>
41      */
GetApiId()42     inline const Aws::String& GetApiId() const{ return m_apiId; }
43 
44     /**
45      * <p>The API ID.</p>
46      */
ApiIdHasBeenSet()47     inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
48 
49     /**
50      * <p>The API ID.</p>
51      */
SetApiId(const Aws::String & value)52     inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
53 
54     /**
55      * <p>The API ID.</p>
56      */
SetApiId(Aws::String && value)57     inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
58 
59     /**
60      * <p>The API ID.</p>
61      */
SetApiId(const char * value)62     inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
63 
64     /**
65      * <p>The API ID.</p>
66      */
WithApiId(const Aws::String & value)67     inline DeleteApiCacheRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
68 
69     /**
70      * <p>The API ID.</p>
71      */
WithApiId(Aws::String && value)72     inline DeleteApiCacheRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
73 
74     /**
75      * <p>The API ID.</p>
76      */
WithApiId(const char * value)77     inline DeleteApiCacheRequest& 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
88