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/apigatewayv2/ApiGatewayV2_EXPORTS.h> 8 #include <aws/apigatewayv2/ApiGatewayV2Request.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace ApiGatewayV2 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_APIGATEWAYV2_API DeleteApiMappingRequest : public ApiGatewayV2Request 22 { 23 public: 24 DeleteApiMappingRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "DeleteApiMapping"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The API mapping identifier.</p> 37 */ GetApiMappingId()38 inline const Aws::String& GetApiMappingId() const{ return m_apiMappingId; } 39 40 /** 41 * <p>The API mapping identifier.</p> 42 */ ApiMappingIdHasBeenSet()43 inline bool ApiMappingIdHasBeenSet() const { return m_apiMappingIdHasBeenSet; } 44 45 /** 46 * <p>The API mapping identifier.</p> 47 */ SetApiMappingId(const Aws::String & value)48 inline void SetApiMappingId(const Aws::String& value) { m_apiMappingIdHasBeenSet = true; m_apiMappingId = value; } 49 50 /** 51 * <p>The API mapping identifier.</p> 52 */ SetApiMappingId(Aws::String && value)53 inline void SetApiMappingId(Aws::String&& value) { m_apiMappingIdHasBeenSet = true; m_apiMappingId = std::move(value); } 54 55 /** 56 * <p>The API mapping identifier.</p> 57 */ SetApiMappingId(const char * value)58 inline void SetApiMappingId(const char* value) { m_apiMappingIdHasBeenSet = true; m_apiMappingId.assign(value); } 59 60 /** 61 * <p>The API mapping identifier.</p> 62 */ WithApiMappingId(const Aws::String & value)63 inline DeleteApiMappingRequest& WithApiMappingId(const Aws::String& value) { SetApiMappingId(value); return *this;} 64 65 /** 66 * <p>The API mapping identifier.</p> 67 */ WithApiMappingId(Aws::String && value)68 inline DeleteApiMappingRequest& WithApiMappingId(Aws::String&& value) { SetApiMappingId(std::move(value)); return *this;} 69 70 /** 71 * <p>The API mapping identifier.</p> 72 */ WithApiMappingId(const char * value)73 inline DeleteApiMappingRequest& WithApiMappingId(const char* value) { SetApiMappingId(value); return *this;} 74 75 76 /** 77 * <p>The domain name.</p> 78 */ GetDomainName()79 inline const Aws::String& GetDomainName() const{ return m_domainName; } 80 81 /** 82 * <p>The domain name.</p> 83 */ DomainNameHasBeenSet()84 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } 85 86 /** 87 * <p>The domain name.</p> 88 */ SetDomainName(const Aws::String & value)89 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } 90 91 /** 92 * <p>The domain name.</p> 93 */ SetDomainName(Aws::String && value)94 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } 95 96 /** 97 * <p>The domain name.</p> 98 */ SetDomainName(const char * value)99 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } 100 101 /** 102 * <p>The domain name.</p> 103 */ WithDomainName(const Aws::String & value)104 inline DeleteApiMappingRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} 105 106 /** 107 * <p>The domain name.</p> 108 */ WithDomainName(Aws::String && value)109 inline DeleteApiMappingRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} 110 111 /** 112 * <p>The domain name.</p> 113 */ WithDomainName(const char * value)114 inline DeleteApiMappingRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} 115 116 private: 117 118 Aws::String m_apiMappingId; 119 bool m_apiMappingIdHasBeenSet; 120 121 Aws::String m_domainName; 122 bool m_domainNameHasBeenSet; 123 }; 124 125 } // namespace Model 126 } // namespace ApiGatewayV2 127 } // namespace Aws 128