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/ec2/EC2_EXPORTS.h> 8 #include <aws/ec2/model/ResponseMetadata.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Xml 19 { 20 class XmlDocument; 21 } // namespace Xml 22 } // namespace Utils 23 namespace EC2 24 { 25 namespace Model 26 { 27 class AWS_EC2_API DetachClassicLinkVpcResponse 28 { 29 public: 30 DetachClassicLinkVpcResponse(); 31 DetachClassicLinkVpcResponse(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 32 DetachClassicLinkVpcResponse& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 33 34 35 /** 36 * <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an 37 * error.</p> 38 */ GetReturn()39 inline bool GetReturn() const{ return m_return; } 40 41 /** 42 * <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an 43 * error.</p> 44 */ SetReturn(bool value)45 inline void SetReturn(bool value) { m_return = value; } 46 47 /** 48 * <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an 49 * error.</p> 50 */ WithReturn(bool value)51 inline DetachClassicLinkVpcResponse& WithReturn(bool value) { SetReturn(value); return *this;} 52 53 54 GetResponseMetadata()55 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } 56 57 SetResponseMetadata(const ResponseMetadata & value)58 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } 59 60 SetResponseMetadata(ResponseMetadata && value)61 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } 62 63 WithResponseMetadata(const ResponseMetadata & value)64 inline DetachClassicLinkVpcResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} 65 66 WithResponseMetadata(ResponseMetadata && value)67 inline DetachClassicLinkVpcResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} 68 69 private: 70 71 bool m_return; 72 73 ResponseMetadata m_responseMetadata; 74 }; 75 76 } // namespace Model 77 } // namespace EC2 78 } // namespace Aws 79