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>Requests API Gateway to delete a <a>Stage</a> resource.</p><p><h3>See 21 * Also:</h3> <a 22 * href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/DeleteStageRequest">AWS 23 * API Reference</a></p> 24 */ 25 class AWS_APIGATEWAY_API DeleteStageRequest : public APIGatewayRequest 26 { 27 public: 28 DeleteStageRequest(); 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 "DeleteStage"; } 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 DeleteStageRequest& 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 DeleteStageRequest& 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 DeleteStageRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;} 78 79 80 /** 81 * <p>[Required] The name of the <a>Stage</a> resource to delete.</p> 82 */ GetStageName()83 inline const Aws::String& GetStageName() const{ return m_stageName; } 84 85 /** 86 * <p>[Required] The name of the <a>Stage</a> resource to delete.</p> 87 */ StageNameHasBeenSet()88 inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; } 89 90 /** 91 * <p>[Required] The name of the <a>Stage</a> resource to delete.</p> 92 */ SetStageName(const Aws::String & value)93 inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; } 94 95 /** 96 * <p>[Required] The name of the <a>Stage</a> resource to delete.</p> 97 */ SetStageName(Aws::String && value)98 inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); } 99 100 /** 101 * <p>[Required] The name of the <a>Stage</a> resource to delete.</p> 102 */ SetStageName(const char * value)103 inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); } 104 105 /** 106 * <p>[Required] The name of the <a>Stage</a> resource to delete.</p> 107 */ WithStageName(const Aws::String & value)108 inline DeleteStageRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;} 109 110 /** 111 * <p>[Required] The name of the <a>Stage</a> resource to delete.</p> 112 */ WithStageName(Aws::String && value)113 inline DeleteStageRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;} 114 115 /** 116 * <p>[Required] The name of the <a>Stage</a> resource to delete.</p> 117 */ WithStageName(const char * value)118 inline DeleteStageRequest& WithStageName(const char* value) { SetStageName(value); return *this;} 119 120 private: 121 122 Aws::String m_restApiId; 123 bool m_restApiIdHasBeenSet; 124 125 Aws::String m_stageName; 126 bool m_stageNameHasBeenSet; 127 }; 128 129 } // namespace Model 130 } // namespace APIGateway 131 } // namespace Aws 132