/** * 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 OpsWorks { namespace Model { /** */ class DescribeVolumesRequest : public OpsWorksRequest { public: AWS_OPSWORKS_API DescribeVolumesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeVolumes"; } AWS_OPSWORKS_API Aws::String SerializePayload() const override; AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The instance ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified instance.

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

The instance ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified instance.

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

The instance ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified instance.

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

The instance ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified instance.

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

The instance ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified instance.

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

The instance ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified instance.

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

The instance ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified instance.

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

The instance ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified instance.

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

A stack ID. The action describes the stack's registered Amazon EBS * volumes.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

A stack ID. The action describes the stack's registered Amazon EBS * volumes.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

A stack ID. The action describes the stack's registered Amazon EBS * volumes.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

A stack ID. The action describes the stack's registered Amazon EBS * volumes.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

A stack ID. The action describes the stack's registered Amazon EBS * volumes.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

A stack ID. The action describes the stack's registered Amazon EBS * volumes.

*/ inline DescribeVolumesRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

A stack ID. The action describes the stack's registered Amazon EBS * volumes.

*/ inline DescribeVolumesRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

A stack ID. The action describes the stack's registered Amazon EBS * volumes.

*/ inline DescribeVolumesRequest& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

The RAID array ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified RAID * array.

*/ inline const Aws::String& GetRaidArrayId() const{ return m_raidArrayId; } /** *

The RAID array ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified RAID * array.

*/ inline bool RaidArrayIdHasBeenSet() const { return m_raidArrayIdHasBeenSet; } /** *

The RAID array ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified RAID * array.

*/ inline void SetRaidArrayId(const Aws::String& value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId = value; } /** *

The RAID array ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified RAID * array.

*/ inline void SetRaidArrayId(Aws::String&& value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId = std::move(value); } /** *

The RAID array ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified RAID * array.

*/ inline void SetRaidArrayId(const char* value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId.assign(value); } /** *

The RAID array ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified RAID * array.

*/ inline DescribeVolumesRequest& WithRaidArrayId(const Aws::String& value) { SetRaidArrayId(value); return *this;} /** *

The RAID array ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified RAID * array.

*/ inline DescribeVolumesRequest& WithRaidArrayId(Aws::String&& value) { SetRaidArrayId(std::move(value)); return *this;} /** *

The RAID array ID. If you use this parameter, DescribeVolumes * returns descriptions of the volumes associated with the specified RAID * array.

*/ inline DescribeVolumesRequest& WithRaidArrayId(const char* value) { SetRaidArrayId(value); return *this;} /** *

Am array of volume IDs. If you use this parameter, * DescribeVolumes returns descriptions of the specified volumes. * Otherwise, it returns a description of every volume.

*/ inline const Aws::Vector& GetVolumeIds() const{ return m_volumeIds; } /** *

Am array of volume IDs. If you use this parameter, * DescribeVolumes returns descriptions of the specified volumes. * Otherwise, it returns a description of every volume.

*/ inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; } /** *

Am array of volume IDs. If you use this parameter, * DescribeVolumes returns descriptions of the specified volumes. * Otherwise, it returns a description of every volume.

*/ inline void SetVolumeIds(const Aws::Vector& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = value; } /** *

Am array of volume IDs. If you use this parameter, * DescribeVolumes returns descriptions of the specified volumes. * Otherwise, it returns a description of every volume.

*/ inline void SetVolumeIds(Aws::Vector&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = std::move(value); } /** *

Am array of volume IDs. If you use this parameter, * DescribeVolumes returns descriptions of the specified volumes. * Otherwise, it returns a description of every volume.

*/ inline DescribeVolumesRequest& WithVolumeIds(const Aws::Vector& value) { SetVolumeIds(value); return *this;} /** *

Am array of volume IDs. If you use this parameter, * DescribeVolumes returns descriptions of the specified volumes. * Otherwise, it returns a description of every volume.

*/ inline DescribeVolumesRequest& WithVolumeIds(Aws::Vector&& value) { SetVolumeIds(std::move(value)); return *this;} /** *

Am array of volume IDs. If you use this parameter, * DescribeVolumes returns descriptions of the specified volumes. * Otherwise, it returns a description of every volume.

*/ inline DescribeVolumesRequest& AddVolumeIds(const Aws::String& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; } /** *

Am array of volume IDs. If you use this parameter, * DescribeVolumes returns descriptions of the specified volumes. * Otherwise, it returns a description of every volume.

*/ inline DescribeVolumesRequest& AddVolumeIds(Aws::String&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(std::move(value)); return *this; } /** *

Am array of volume IDs. If you use this parameter, * DescribeVolumes returns descriptions of the specified volumes. * Otherwise, it returns a description of every volume.

*/ inline DescribeVolumesRequest& AddVolumeIds(const char* value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; } private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_raidArrayId; bool m_raidArrayIdHasBeenSet = false; Aws::Vector m_volumeIds; bool m_volumeIdsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws