/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class DisableSerialConsoleAccessResponse { public: AWS_EC2_API DisableSerialConsoleAccessResponse(); AWS_EC2_API DisableSerialConsoleAccessResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API DisableSerialConsoleAccessResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

If true, access to the EC2 serial console of all instances is * enabled for your account. If false, access to the EC2 serial * console of all instances is disabled for your account.

*/ inline bool GetSerialConsoleAccessEnabled() const{ return m_serialConsoleAccessEnabled; } /** *

If true, access to the EC2 serial console of all instances is * enabled for your account. If false, access to the EC2 serial * console of all instances is disabled for your account.

*/ inline void SetSerialConsoleAccessEnabled(bool value) { m_serialConsoleAccessEnabled = value; } /** *

If true, access to the EC2 serial console of all instances is * enabled for your account. If false, access to the EC2 serial * console of all instances is disabled for your account.

*/ inline DisableSerialConsoleAccessResponse& WithSerialConsoleAccessEnabled(bool value) { SetSerialConsoleAccessEnabled(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline DisableSerialConsoleAccessResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DisableSerialConsoleAccessResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: bool m_serialConsoleAccessEnabled; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws