/** * 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 RedshiftServerless { namespace Model { /** */ class ListSnapshotsRequest : public RedshiftServerlessRequest { public: AWS_REDSHIFTSERVERLESS_API ListSnapshotsRequest(); // 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 "ListSnapshots"; } AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override; AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The timestamp showing when the snapshot creation finished.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The timestamp showing when the snapshot creation finished.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The timestamp showing when the snapshot creation finished.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The timestamp showing when the snapshot creation finished.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The timestamp showing when the snapshot creation finished.

*/ inline ListSnapshotsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The timestamp showing when the snapshot creation finished.

*/ inline ListSnapshotsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

An optional parameter that specifies the maximum number of results to return. * You can use nextToken to display the next page of results.

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

An optional parameter that specifies the maximum number of results to return. * You can use nextToken to display the next page of results.

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

An optional parameter that specifies the maximum number of results to return. * You can use nextToken to display the next page of results.

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

An optional parameter that specifies the maximum number of results to return. * You can use nextToken to display the next page of results.

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

The Amazon Resource Name (ARN) of the namespace from which to list all * snapshots.

*/ inline const Aws::String& GetNamespaceArn() const{ return m_namespaceArn; } /** *

The Amazon Resource Name (ARN) of the namespace from which to list all * snapshots.

*/ inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the namespace from which to list all * snapshots.

*/ inline void SetNamespaceArn(const Aws::String& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = value; } /** *

The Amazon Resource Name (ARN) of the namespace from which to list all * snapshots.

*/ inline void SetNamespaceArn(Aws::String&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the namespace from which to list all * snapshots.

*/ inline void SetNamespaceArn(const char* value) { m_namespaceArnHasBeenSet = true; m_namespaceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the namespace from which to list all * snapshots.

*/ inline ListSnapshotsRequest& WithNamespaceArn(const Aws::String& value) { SetNamespaceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the namespace from which to list all * snapshots.

*/ inline ListSnapshotsRequest& WithNamespaceArn(Aws::String&& value) { SetNamespaceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the namespace from which to list all * snapshots.

*/ inline ListSnapshotsRequest& WithNamespaceArn(const char* value) { SetNamespaceArn(value); return *this;} /** *

The namespace from which to list all snapshots.

*/ inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; } /** *

The namespace from which to list all snapshots.

*/ inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; } /** *

The namespace from which to list all snapshots.

*/ inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; } /** *

The namespace from which to list all snapshots.

*/ inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); } /** *

The namespace from which to list all snapshots.

*/ inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); } /** *

The namespace from which to list all snapshots.

*/ inline ListSnapshotsRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;} /** *

The namespace from which to list all snapshots.

*/ inline ListSnapshotsRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;} /** *

The namespace from which to list all snapshots.

*/ inline ListSnapshotsRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;} /** *

If nextToken is returned, there are more results available. The * value of nextToken is a unique pagination token for each page. Make * the call again using the returned token to retrieve the next page.

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

If nextToken is returned, there are more results available. The * value of nextToken is a unique pagination token for each page. Make * the call again using the returned token to retrieve the next page.

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

If nextToken is returned, there are more results available. The * value of nextToken is a unique pagination token for each page. Make * the call again using the returned token to retrieve the next page.

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

If nextToken is returned, there are more results available. The * value of nextToken is a unique pagination token for each page. Make * the call again using the returned token to retrieve the next page.

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

If nextToken is returned, there are more results available. The * value of nextToken is a unique pagination token for each page. Make * the call again using the returned token to retrieve the next page.

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

If nextToken is returned, there are more results available. The * value of nextToken is a unique pagination token for each page. Make * the call again using the returned token to retrieve the next page.

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

If nextToken is returned, there are more results available. The * value of nextToken is a unique pagination token for each page. Make * the call again using the returned token to retrieve the next page.

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

If nextToken is returned, there are more results available. The * value of nextToken is a unique pagination token for each page. Make * the call again using the returned token to retrieve the next page.

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

The owner Amazon Web Services account of the snapshot.

*/ inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; } /** *

The owner Amazon Web Services account of the snapshot.

*/ inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; } /** *

The owner Amazon Web Services account of the snapshot.

*/ inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; } /** *

The owner Amazon Web Services account of the snapshot.

*/ inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); } /** *

The owner Amazon Web Services account of the snapshot.

*/ inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); } /** *

The owner Amazon Web Services account of the snapshot.

*/ inline ListSnapshotsRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;} /** *

The owner Amazon Web Services account of the snapshot.

*/ inline ListSnapshotsRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;} /** *

The owner Amazon Web Services account of the snapshot.

*/ inline ListSnapshotsRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;} /** *

The time when the creation of the snapshot was initiated.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time when the creation of the snapshot was initiated.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The time when the creation of the snapshot was initiated.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The time when the creation of the snapshot was initiated.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The time when the creation of the snapshot was initiated.

*/ inline ListSnapshotsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time when the creation of the snapshot was initiated.

*/ inline ListSnapshotsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} private: Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_namespaceArn; bool m_namespaceArnHasBeenSet = false; Aws::String m_namespaceName; bool m_namespaceNameHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_ownerAccount; bool m_ownerAccountHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws