/** * 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 DescribeSnapshotsRequest : public FSxRequest { public: AWS_FSX_API DescribeSnapshotsRequest(); // 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 "DescribeSnapshots"; } AWS_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The IDs of the snapshots that you want to retrieve. This parameter value * overrides any filters. If any IDs aren't found, a SnapshotNotFound * error occurs.

*/ inline const Aws::Vector& GetSnapshotIds() const{ return m_snapshotIds; } /** *

The IDs of the snapshots that you want to retrieve. This parameter value * overrides any filters. If any IDs aren't found, a SnapshotNotFound * error occurs.

*/ inline bool SnapshotIdsHasBeenSet() const { return m_snapshotIdsHasBeenSet; } /** *

The IDs of the snapshots that you want to retrieve. This parameter value * overrides any filters. If any IDs aren't found, a SnapshotNotFound * error occurs.

*/ inline void SetSnapshotIds(const Aws::Vector& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = value; } /** *

The IDs of the snapshots that you want to retrieve. This parameter value * overrides any filters. If any IDs aren't found, a SnapshotNotFound * error occurs.

*/ inline void SetSnapshotIds(Aws::Vector&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = std::move(value); } /** *

The IDs of the snapshots that you want to retrieve. This parameter value * overrides any filters. If any IDs aren't found, a SnapshotNotFound * error occurs.

*/ inline DescribeSnapshotsRequest& WithSnapshotIds(const Aws::Vector& value) { SetSnapshotIds(value); return *this;} /** *

The IDs of the snapshots that you want to retrieve. This parameter value * overrides any filters. If any IDs aren't found, a SnapshotNotFound * error occurs.

*/ inline DescribeSnapshotsRequest& WithSnapshotIds(Aws::Vector&& value) { SetSnapshotIds(std::move(value)); return *this;} /** *

The IDs of the snapshots that you want to retrieve. This parameter value * overrides any filters. If any IDs aren't found, a SnapshotNotFound * error occurs.

*/ inline DescribeSnapshotsRequest& AddSnapshotIds(const Aws::String& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(value); return *this; } /** *

The IDs of the snapshots that you want to retrieve. This parameter value * overrides any filters. If any IDs aren't found, a SnapshotNotFound * error occurs.

*/ inline DescribeSnapshotsRequest& AddSnapshotIds(Aws::String&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(std::move(value)); return *this; } /** *

The IDs of the snapshots that you want to retrieve. This parameter value * overrides any filters. If any IDs aren't found, a SnapshotNotFound * error occurs.

*/ inline DescribeSnapshotsRequest& AddSnapshotIds(const char* value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(value); return *this; } /** *

The filters structure. The supported names are file-system-id or * volume-id.

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

The filters structure. The supported names are file-system-id or * volume-id.

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

The filters structure. The supported names are file-system-id or * volume-id.

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

The filters structure. The supported names are file-system-id or * volume-id.

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

The filters structure. The supported names are file-system-id or * volume-id.

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

The filters structure. The supported names are file-system-id or * volume-id.

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

The filters structure. The supported names are file-system-id or * volume-id.

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

The filters structure. The supported names are file-system-id or * volume-id.

*/ inline DescribeSnapshotsRequest& AddFilters(SnapshotFilter&& 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 DescribeSnapshotsRequest& 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 DescribeSnapshotsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} inline DescribeSnapshotsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} inline DescribeSnapshotsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_snapshotIds; bool m_snapshotIdsHasBeenSet = 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