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/mwaa/MWAA_EXPORTS.h> 8 #include <aws/mwaa/MWAARequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace MWAA 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_MWAA_API DeleteEnvironmentRequest : public MWAARequest 22 { 23 public: 24 DeleteEnvironmentRequest(); 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 "DeleteEnvironment"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The name of the Amazon MWAA environment. For example, 37 * <code>MyMWAAEnvironment</code>.</p> 38 */ GetName()39 inline const Aws::String& GetName() const{ return m_name; } 40 41 /** 42 * <p>The name of the Amazon MWAA environment. For example, 43 * <code>MyMWAAEnvironment</code>.</p> 44 */ NameHasBeenSet()45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 46 47 /** 48 * <p>The name of the Amazon MWAA environment. For example, 49 * <code>MyMWAAEnvironment</code>.</p> 50 */ SetName(const Aws::String & value)51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } 52 53 /** 54 * <p>The name of the Amazon MWAA environment. For example, 55 * <code>MyMWAAEnvironment</code>.</p> 56 */ SetName(Aws::String && value)57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 58 59 /** 60 * <p>The name of the Amazon MWAA environment. For example, 61 * <code>MyMWAAEnvironment</code>.</p> 62 */ SetName(const char * value)63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } 64 65 /** 66 * <p>The name of the Amazon MWAA environment. For example, 67 * <code>MyMWAAEnvironment</code>.</p> 68 */ WithName(const Aws::String & value)69 inline DeleteEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;} 70 71 /** 72 * <p>The name of the Amazon MWAA environment. For example, 73 * <code>MyMWAAEnvironment</code>.</p> 74 */ WithName(Aws::String && value)75 inline DeleteEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 76 77 /** 78 * <p>The name of the Amazon MWAA environment. For example, 79 * <code>MyMWAAEnvironment</code>.</p> 80 */ WithName(const char * value)81 inline DeleteEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;} 82 83 private: 84 85 Aws::String m_name; 86 bool m_nameHasBeenSet; 87 }; 88 89 } // namespace Model 90 } // namespace MWAA 91 } // namespace Aws 92