/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace FSx { namespace Model { /** */ class DescribeVolumesRequest : public FSxRequest { public: AWS_FSX_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_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The IDs of the volumes whose descriptions you want to retrieve.

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

The IDs of the volumes whose descriptions you want to retrieve.

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

The IDs of the volumes whose descriptions you want to retrieve.

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

The IDs of the volumes whose descriptions you want to retrieve.

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

The IDs of the volumes whose descriptions you want to retrieve.

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

The IDs of the volumes whose descriptions you want to retrieve.

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

The IDs of the volumes whose descriptions you want to retrieve.

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

The IDs of the volumes whose descriptions you want to retrieve.

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

The IDs of the volumes whose descriptions you want to retrieve.

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

Enter a filter Name and Values pair to view a * select set of volumes.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

Enter a filter Name and Values pair to view a * select set of volumes.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

Enter a filter Name and Values pair to view a * select set of volumes.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

Enter a filter Name and Values pair to view a * select set of volumes.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

Enter a filter Name and Values pair to view a * select set of volumes.

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

Enter a filter Name and Values pair to view a * select set of volumes.

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

Enter a filter Name and Values pair to view a * select set of volumes.

*/ inline DescribeVolumesRequest& AddFilters(const VolumeFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

Enter a filter Name and Values pair to view a * select set of volumes.

*/ inline DescribeVolumesRequest& AddFilters(VolumeFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } inline int GetMaxResults() const{ return m_maxResults; } inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } inline DescribeVolumesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} inline const Aws::String& GetNextToken() const{ return m_nextToken; } inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } inline DescribeVolumesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} inline DescribeVolumesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} inline DescribeVolumesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_volumeIds; bool m_volumeIdsHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws