/** * 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 drs { namespace Model { /** */ class DescribeRecoverySnapshotsRequest : public DrsRequest { public: AWS_DRS_API DescribeRecoverySnapshotsRequest(); // 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 "DescribeRecoverySnapshots"; } AWS_DRS_API Aws::String SerializePayload() const override; /** *

A set of filters by which to return Recovery Snapshots.

*/ inline const DescribeRecoverySnapshotsRequestFilters& GetFilters() const{ return m_filters; } /** *

A set of filters by which to return Recovery Snapshots.

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

A set of filters by which to return Recovery Snapshots.

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

A set of filters by which to return Recovery Snapshots.

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

A set of filters by which to return Recovery Snapshots.

*/ inline DescribeRecoverySnapshotsRequest& WithFilters(const DescribeRecoverySnapshotsRequestFilters& value) { SetFilters(value); return *this;} /** *

A set of filters by which to return Recovery Snapshots.

*/ inline DescribeRecoverySnapshotsRequest& WithFilters(DescribeRecoverySnapshotsRequestFilters&& value) { SetFilters(std::move(value)); return *this;} /** *

Maximum number of Recovery Snapshots to retrieve.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

Maximum number of Recovery Snapshots to retrieve.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

Maximum number of Recovery Snapshots to retrieve.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

Maximum number of Recovery Snapshots to retrieve.

*/ inline DescribeRecoverySnapshotsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token of the next Recovery Snapshot to retrieve.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token of the next Recovery Snapshot to retrieve.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token of the next Recovery Snapshot to retrieve.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token of the next Recovery Snapshot to retrieve.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token of the next Recovery Snapshot to retrieve.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token of the next Recovery Snapshot to retrieve.

*/ inline DescribeRecoverySnapshotsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token of the next Recovery Snapshot to retrieve.

*/ inline DescribeRecoverySnapshotsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token of the next Recovery Snapshot to retrieve.

*/ inline DescribeRecoverySnapshotsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The sorted ordering by which to return Recovery Snapshots.

*/ inline const RecoverySnapshotsOrder& GetOrder() const{ return m_order; } /** *

The sorted ordering by which to return Recovery Snapshots.

*/ inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; } /** *

The sorted ordering by which to return Recovery Snapshots.

*/ inline void SetOrder(const RecoverySnapshotsOrder& value) { m_orderHasBeenSet = true; m_order = value; } /** *

The sorted ordering by which to return Recovery Snapshots.

*/ inline void SetOrder(RecoverySnapshotsOrder&& value) { m_orderHasBeenSet = true; m_order = std::move(value); } /** *

The sorted ordering by which to return Recovery Snapshots.

*/ inline DescribeRecoverySnapshotsRequest& WithOrder(const RecoverySnapshotsOrder& value) { SetOrder(value); return *this;} /** *

The sorted ordering by which to return Recovery Snapshots.

*/ inline DescribeRecoverySnapshotsRequest& WithOrder(RecoverySnapshotsOrder&& value) { SetOrder(std::move(value)); return *this;} /** *

Filter Recovery Snapshots by Source Server ID.

*/ inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; } /** *

Filter Recovery Snapshots by Source Server ID.

*/ inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; } /** *

Filter Recovery Snapshots by Source Server ID.

*/ inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; } /** *

Filter Recovery Snapshots by Source Server ID.

*/ inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); } /** *

Filter Recovery Snapshots by Source Server ID.

*/ inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); } /** *

Filter Recovery Snapshots by Source Server ID.

*/ inline DescribeRecoverySnapshotsRequest& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;} /** *

Filter Recovery Snapshots by Source Server ID.

*/ inline DescribeRecoverySnapshotsRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;} /** *

Filter Recovery Snapshots by Source Server ID.

*/ inline DescribeRecoverySnapshotsRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;} private: DescribeRecoverySnapshotsRequestFilters m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; RecoverySnapshotsOrder m_order; bool m_orderHasBeenSet = false; Aws::String m_sourceServerID; bool m_sourceServerIDHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws