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/codestar-connections/CodeStarconnections_EXPORTS.h> 8 #include <aws/codestar-connections/CodeStarconnectionsRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace CodeStarconnections 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_CODESTARCONNECTIONS_API DeleteConnectionRequest : public CodeStarconnectionsRequest 22 { 23 public: 24 DeleteConnectionRequest(); 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 "DeleteConnection"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The Amazon Resource Name (ARN) of the connection to be deleted.</p> 39 * <p>The ARN is never reused if the connection is deleted.</p> 40 */ GetConnectionArn()41 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } 42 43 /** 44 * <p>The Amazon Resource Name (ARN) of the connection to be deleted.</p> 45 * <p>The ARN is never reused if the connection is deleted.</p> 46 */ ConnectionArnHasBeenSet()47 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } 48 49 /** 50 * <p>The Amazon Resource Name (ARN) of the connection to be deleted.</p> 51 * <p>The ARN is never reused if the connection is deleted.</p> 52 */ SetConnectionArn(const Aws::String & value)53 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } 54 55 /** 56 * <p>The Amazon Resource Name (ARN) of the connection to be deleted.</p> 57 * <p>The ARN is never reused if the connection is deleted.</p> 58 */ SetConnectionArn(Aws::String && value)59 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } 60 61 /** 62 * <p>The Amazon Resource Name (ARN) of the connection to be deleted.</p> 63 * <p>The ARN is never reused if the connection is deleted.</p> 64 */ SetConnectionArn(const char * value)65 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } 66 67 /** 68 * <p>The Amazon Resource Name (ARN) of the connection to be deleted.</p> 69 * <p>The ARN is never reused if the connection is deleted.</p> 70 */ WithConnectionArn(const Aws::String & value)71 inline DeleteConnectionRequest& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} 72 73 /** 74 * <p>The Amazon Resource Name (ARN) of the connection to be deleted.</p> 75 * <p>The ARN is never reused if the connection is deleted.</p> 76 */ WithConnectionArn(Aws::String && value)77 inline DeleteConnectionRequest& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} 78 79 /** 80 * <p>The Amazon Resource Name (ARN) of the connection to be deleted.</p> 81 * <p>The ARN is never reused if the connection is deleted.</p> 82 */ WithConnectionArn(const char * value)83 inline DeleteConnectionRequest& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} 84 85 private: 86 87 Aws::String m_connectionArn; 88 bool m_connectionArnHasBeenSet; 89 }; 90 91 } // namespace Model 92 } // namespace CodeStarconnections 93 } // namespace Aws 94