/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Indicates whether the instance is enabled for Amazon Web Services Nitro * Enclaves.

See Also:

AWS * API Reference

*/ class EnclaveOptions { public: AWS_EC2_API EnclaveOptions(); AWS_EC2_API EnclaveOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API EnclaveOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

If this parameter is set to true, the instance is enabled for * Amazon Web Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web * Services Nitro Enclaves.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

If this parameter is set to true, the instance is enabled for * Amazon Web Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web * Services Nitro Enclaves.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

If this parameter is set to true, the instance is enabled for * Amazon Web Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web * Services Nitro Enclaves.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

If this parameter is set to true, the instance is enabled for * Amazon Web Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web * Services Nitro Enclaves.

*/ inline EnclaveOptions& WithEnabled(bool value) { SetEnabled(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws