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

The ID of the instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of the instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; } /** *

The ID of the instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); } /** *

The ID of the instance.

*/ inline void SetInstanceId(const char* value) { m_instanceId.assign(value); } /** *

The ID of the instance.

*/ inline ModifyInstanceMaintenanceOptionsResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of the instance.

*/ inline ModifyInstanceMaintenanceOptionsResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of the instance.

*/ inline ModifyInstanceMaintenanceOptionsResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

Provides information on the current automatic recovery behavior of your * instance.

*/ inline const InstanceAutoRecoveryState& GetAutoRecovery() const{ return m_autoRecovery; } /** *

Provides information on the current automatic recovery behavior of your * instance.

*/ inline void SetAutoRecovery(const InstanceAutoRecoveryState& value) { m_autoRecovery = value; } /** *

Provides information on the current automatic recovery behavior of your * instance.

*/ inline void SetAutoRecovery(InstanceAutoRecoveryState&& value) { m_autoRecovery = std::move(value); } /** *

Provides information on the current automatic recovery behavior of your * instance.

*/ inline ModifyInstanceMaintenanceOptionsResponse& WithAutoRecovery(const InstanceAutoRecoveryState& value) { SetAutoRecovery(value); return *this;} /** *

Provides information on the current automatic recovery behavior of your * instance.

*/ inline ModifyInstanceMaintenanceOptionsResponse& WithAutoRecovery(InstanceAutoRecoveryState&& value) { SetAutoRecovery(std::move(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 ModifyInstanceMaintenanceOptionsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ModifyInstanceMaintenanceOptionsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_instanceId; InstanceAutoRecoveryState m_autoRecovery; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws