/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace EBS { namespace Model { /** */ class ListSnapshotBlocksRequest : public EBSRequest { public: AWS_EBS_API ListSnapshotBlocksRequest(); // 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 "ListSnapshotBlocks"; } AWS_EBS_API Aws::String SerializePayload() const override; AWS_EBS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the snapshot from which to get block indexes and block tokens.

*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *

The ID of the snapshot from which to get block indexes and block tokens.

*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *

The ID of the snapshot from which to get block indexes and block tokens.

*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *

The ID of the snapshot from which to get block indexes and block tokens.

*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *

The ID of the snapshot from which to get block indexes and block tokens.

*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *

The ID of the snapshot from which to get block indexes and block tokens.

*/ inline ListSnapshotBlocksRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *

The ID of the snapshot from which to get block indexes and block tokens.

*/ inline ListSnapshotBlocksRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *

The ID of the snapshot from which to get block indexes and block tokens.

*/ inline ListSnapshotBlocksRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *

The token to request the next page of results.

If you specify * NextToken, then StartingBlockIndex is ignored.

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

The token to request the next page of results.

If you specify * NextToken, then StartingBlockIndex is ignored.

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

The token to request the next page of results.

If you specify * NextToken, then StartingBlockIndex is ignored.

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

The token to request the next page of results.

If you specify * NextToken, then StartingBlockIndex is ignored.

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

The token to request the next page of results.

If you specify * NextToken, then StartingBlockIndex is ignored.

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

The token to request the next page of results.

If you specify * NextToken, then StartingBlockIndex is ignored.

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

The token to request the next page of results.

If you specify * NextToken, then StartingBlockIndex is ignored.

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

The token to request the next page of results.

If you specify * NextToken, then StartingBlockIndex is ignored.

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

The maximum number of blocks to be returned by the request.

Even if * additional blocks can be retrieved from the snapshot, the request can return * less blocks than MaxResults or an empty array of blocks.

To * retrieve the next set of blocks from the snapshot, make another request with the * returned NextToken value. The value of NextToken is * null when there are no more blocks to return.

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

The maximum number of blocks to be returned by the request.

Even if * additional blocks can be retrieved from the snapshot, the request can return * less blocks than MaxResults or an empty array of blocks.

To * retrieve the next set of blocks from the snapshot, make another request with the * returned NextToken value. The value of NextToken is * null when there are no more blocks to return.

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

The maximum number of blocks to be returned by the request.

Even if * additional blocks can be retrieved from the snapshot, the request can return * less blocks than MaxResults or an empty array of blocks.

To * retrieve the next set of blocks from the snapshot, make another request with the * returned NextToken value. The value of NextToken is * null when there are no more blocks to return.

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

The maximum number of blocks to be returned by the request.

Even if * additional blocks can be retrieved from the snapshot, the request can return * less blocks than MaxResults or an empty array of blocks.

To * retrieve the next set of blocks from the snapshot, make another request with the * returned NextToken value. The value of NextToken is * null when there are no more blocks to return.

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

The block index from which the list should start. The list in the response * will start from this block index or the next valid block index in the * snapshot.

If you specify NextToken, then StartingBlockIndex * is ignored.

*/ inline int GetStartingBlockIndex() const{ return m_startingBlockIndex; } /** *

The block index from which the list should start. The list in the response * will start from this block index or the next valid block index in the * snapshot.

If you specify NextToken, then StartingBlockIndex * is ignored.

*/ inline bool StartingBlockIndexHasBeenSet() const { return m_startingBlockIndexHasBeenSet; } /** *

The block index from which the list should start. The list in the response * will start from this block index or the next valid block index in the * snapshot.

If you specify NextToken, then StartingBlockIndex * is ignored.

*/ inline void SetStartingBlockIndex(int value) { m_startingBlockIndexHasBeenSet = true; m_startingBlockIndex = value; } /** *

The block index from which the list should start. The list in the response * will start from this block index or the next valid block index in the * snapshot.

If you specify NextToken, then StartingBlockIndex * is ignored.

*/ inline ListSnapshotBlocksRequest& WithStartingBlockIndex(int value) { SetStartingBlockIndex(value); return *this;} private: Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; int m_startingBlockIndex; bool m_startingBlockIndexHasBeenSet = false; }; } // namespace Model } // namespace EBS } // namespace Aws