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/apigateway/APIGateway_EXPORTS.h> 8 #include <aws/apigateway/APIGatewayRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace APIGateway 15 { 16 namespace Model 17 { 18 19 /** 20 * <p>Request to delete an existing <a>Method</a> resource.</p><p><h3>See 21 * Also:</h3> <a 22 * href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/DeleteMethodRequest">AWS 23 * API Reference</a></p> 24 */ 25 class AWS_APIGATEWAY_API DeleteMethodRequest : public APIGatewayRequest 26 { 27 public: 28 DeleteMethodRequest(); 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 "DeleteMethod"; } 35 36 Aws::String SerializePayload() const override; 37 38 39 /** 40 * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p> 41 */ GetRestApiId()42 inline const Aws::String& GetRestApiId() const{ return m_restApiId; } 43 44 /** 45 * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p> 46 */ RestApiIdHasBeenSet()47 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; } 48 49 /** 50 * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p> 51 */ SetRestApiId(const Aws::String & value)52 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; } 53 54 /** 55 * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p> 56 */ SetRestApiId(Aws::String && value)57 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); } 58 59 /** 60 * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p> 61 */ SetRestApiId(const char * value)62 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); } 63 64 /** 65 * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p> 66 */ WithRestApiId(const Aws::String & value)67 inline DeleteMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;} 68 69 /** 70 * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p> 71 */ WithRestApiId(Aws::String && value)72 inline DeleteMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;} 73 74 /** 75 * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p> 76 */ WithRestApiId(const char * value)77 inline DeleteMethodRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;} 78 79 80 /** 81 * <p>[Required] The <a>Resource</a> identifier for the <a>Method</a> resource.</p> 82 */ GetResourceId()83 inline const Aws::String& GetResourceId() const{ return m_resourceId; } 84 85 /** 86 * <p>[Required] The <a>Resource</a> identifier for the <a>Method</a> resource.</p> 87 */ ResourceIdHasBeenSet()88 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } 89 90 /** 91 * <p>[Required] The <a>Resource</a> identifier for the <a>Method</a> resource.</p> 92 */ SetResourceId(const Aws::String & value)93 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } 94 95 /** 96 * <p>[Required] The <a>Resource</a> identifier for the <a>Method</a> resource.</p> 97 */ SetResourceId(Aws::String && value)98 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } 99 100 /** 101 * <p>[Required] The <a>Resource</a> identifier for the <a>Method</a> resource.</p> 102 */ SetResourceId(const char * value)103 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } 104 105 /** 106 * <p>[Required] The <a>Resource</a> identifier for the <a>Method</a> resource.</p> 107 */ WithResourceId(const Aws::String & value)108 inline DeleteMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} 109 110 /** 111 * <p>[Required] The <a>Resource</a> identifier for the <a>Method</a> resource.</p> 112 */ WithResourceId(Aws::String && value)113 inline DeleteMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} 114 115 /** 116 * <p>[Required] The <a>Resource</a> identifier for the <a>Method</a> resource.</p> 117 */ WithResourceId(const char * value)118 inline DeleteMethodRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} 119 120 121 /** 122 * <p>[Required] The HTTP verb of the <a>Method</a> resource.</p> 123 */ GetHttpMethod()124 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; } 125 126 /** 127 * <p>[Required] The HTTP verb of the <a>Method</a> resource.</p> 128 */ HttpMethodHasBeenSet()129 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; } 130 131 /** 132 * <p>[Required] The HTTP verb of the <a>Method</a> resource.</p> 133 */ SetHttpMethod(const Aws::String & value)134 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; } 135 136 /** 137 * <p>[Required] The HTTP verb of the <a>Method</a> resource.</p> 138 */ SetHttpMethod(Aws::String && value)139 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); } 140 141 /** 142 * <p>[Required] The HTTP verb of the <a>Method</a> resource.</p> 143 */ SetHttpMethod(const char * value)144 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); } 145 146 /** 147 * <p>[Required] The HTTP verb of the <a>Method</a> resource.</p> 148 */ WithHttpMethod(const Aws::String & value)149 inline DeleteMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;} 150 151 /** 152 * <p>[Required] The HTTP verb of the <a>Method</a> resource.</p> 153 */ WithHttpMethod(Aws::String && value)154 inline DeleteMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;} 155 156 /** 157 * <p>[Required] The HTTP verb of the <a>Method</a> resource.</p> 158 */ WithHttpMethod(const char * value)159 inline DeleteMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;} 160 161 private: 162 163 Aws::String m_restApiId; 164 bool m_restApiIdHasBeenSet; 165 166 Aws::String m_resourceId; 167 bool m_resourceIdHasBeenSet; 168 169 Aws::String m_httpMethod; 170 bool m_httpMethodHasBeenSet; 171 }; 172 173 } // namespace Model 174 } // namespace APIGateway 175 } // namespace Aws 176