/** * 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 { 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 InstanceSpecification { public: AWS_EC2_API InstanceSpecification(); AWS_EC2_API InstanceSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceSpecification& 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; /** *

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;} /** *

The IDs of the data (non-root) volumes to exclude from the multi-volume * snapshot set. If you specify the ID of the root volume, the request fails. To * exclude the root volume, use ExcludeBootVolume.

You can specify up * to 40 volume IDs per request.

*/ inline const Aws::Vector& GetExcludeDataVolumeIds() const{ return m_excludeDataVolumeIds; } /** *

The IDs of the data (non-root) volumes to exclude from the multi-volume * snapshot set. If you specify the ID of the root volume, the request fails. To * exclude the root volume, use ExcludeBootVolume.

You can specify up * to 40 volume IDs per request.

*/ inline bool ExcludeDataVolumeIdsHasBeenSet() const { return m_excludeDataVolumeIdsHasBeenSet; } /** *

The IDs of the data (non-root) volumes to exclude from the multi-volume * snapshot set. If you specify the ID of the root volume, the request fails. To * exclude the root volume, use ExcludeBootVolume.

You can specify up * to 40 volume IDs per request.

*/ inline void SetExcludeDataVolumeIds(const Aws::Vector& value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds = value; } /** *

The IDs of the data (non-root) volumes to exclude from the multi-volume * snapshot set. If you specify the ID of the root volume, the request fails. To * exclude the root volume, use ExcludeBootVolume.

You can specify up * to 40 volume IDs per request.

*/ inline void SetExcludeDataVolumeIds(Aws::Vector&& value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds = std::move(value); } /** *

The IDs of the data (non-root) volumes to exclude from the multi-volume * snapshot set. If you specify the ID of the root volume, the request fails. To * exclude the root volume, use ExcludeBootVolume.

You can specify up * to 40 volume IDs per request.

*/ inline InstanceSpecification& WithExcludeDataVolumeIds(const Aws::Vector& value) { SetExcludeDataVolumeIds(value); return *this;} /** *

The IDs of the data (non-root) volumes to exclude from the multi-volume * snapshot set. If you specify the ID of the root volume, the request fails. To * exclude the root volume, use ExcludeBootVolume.

You can specify up * to 40 volume IDs per request.

*/ inline InstanceSpecification& WithExcludeDataVolumeIds(Aws::Vector&& value) { SetExcludeDataVolumeIds(std::move(value)); return *this;} /** *

The IDs of the data (non-root) volumes to exclude from the multi-volume * snapshot set. If you specify the ID of the root volume, the request fails. To * exclude the root volume, use ExcludeBootVolume.

You can specify up * to 40 volume IDs per request.

*/ inline InstanceSpecification& AddExcludeDataVolumeIds(const Aws::String& value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds.push_back(value); return *this; } /** *

The IDs of the data (non-root) volumes to exclude from the multi-volume * snapshot set. If you specify the ID of the root volume, the request fails. To * exclude the root volume, use ExcludeBootVolume.

You can specify up * to 40 volume IDs per request.

*/ inline InstanceSpecification& AddExcludeDataVolumeIds(Aws::String&& value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds.push_back(std::move(value)); return *this; } /** *

The IDs of the data (non-root) volumes to exclude from the multi-volume * snapshot set. If you specify the ID of the root volume, the request fails. To * exclude the root volume, use ExcludeBootVolume.

You can specify up * to 40 volume IDs per request.

*/ inline InstanceSpecification& AddExcludeDataVolumeIds(const char* value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds.push_back(value); return *this; } private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; bool m_excludeBootVolume; bool m_excludeBootVolumeHasBeenSet = false; Aws::Vector m_excludeDataVolumeIds; bool m_excludeDataVolumeIdsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws