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

The instance details to specify which volumes should be * snapshotted.

See Also:

AWS * API Reference

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

The instance to specify which volumes should be snapshotted.

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

The instance to specify which volumes should be snapshotted.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The instance to specify which volumes should be snapshotted.

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

The instance to specify which volumes should be snapshotted.

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

The instance to specify which volumes should be snapshotted.

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

The instance to specify which volumes should be snapshotted.

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

The instance to specify which volumes should be snapshotted.

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

The instance to specify which volumes should be snapshotted.

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

Excludes the root volume from being snapshotted.

*/ inline bool GetExcludeBootVolume() const{ return m_excludeBootVolume; } /** *

Excludes the root volume from being snapshotted.

*/ inline bool ExcludeBootVolumeHasBeenSet() const { return m_excludeBootVolumeHasBeenSet; } /** *

Excludes the root volume from being snapshotted.

*/ inline void SetExcludeBootVolume(bool value) { m_excludeBootVolumeHasBeenSet = true; m_excludeBootVolume = value; } /** *

Excludes the root volume from being snapshotted.

*/ inline InstanceSpecification& WithExcludeBootVolume(bool value) { SetExcludeBootVolume(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet; bool m_excludeBootVolume; bool m_excludeBootVolumeHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws