/** * 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 Http { class URI; } //namespace Http namespace Backup { namespace Model { /** */ class ListRestoreJobsRequest : public BackupRequest { public: AWS_BACKUP_API ListRestoreJobsRequest(); // 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 "ListRestoreJobs"; } AWS_BACKUP_API Aws::String SerializePayload() const override; AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The maximum number of items to be returned.

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

The maximum number of items to be returned.

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

The maximum number of items to be returned.

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

The maximum number of items to be returned.

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

The account ID to list the jobs from. Returns only restore jobs associated * with the specified account ID.

*/ inline const Aws::String& GetByAccountId() const{ return m_byAccountId; } /** *

The account ID to list the jobs from. Returns only restore jobs associated * with the specified account ID.

*/ inline bool ByAccountIdHasBeenSet() const { return m_byAccountIdHasBeenSet; } /** *

The account ID to list the jobs from. Returns only restore jobs associated * with the specified account ID.

*/ inline void SetByAccountId(const Aws::String& value) { m_byAccountIdHasBeenSet = true; m_byAccountId = value; } /** *

The account ID to list the jobs from. Returns only restore jobs associated * with the specified account ID.

*/ inline void SetByAccountId(Aws::String&& value) { m_byAccountIdHasBeenSet = true; m_byAccountId = std::move(value); } /** *

The account ID to list the jobs from. Returns only restore jobs associated * with the specified account ID.

*/ inline void SetByAccountId(const char* value) { m_byAccountIdHasBeenSet = true; m_byAccountId.assign(value); } /** *

The account ID to list the jobs from. Returns only restore jobs associated * with the specified account ID.

*/ inline ListRestoreJobsRequest& WithByAccountId(const Aws::String& value) { SetByAccountId(value); return *this;} /** *

The account ID to list the jobs from. Returns only restore jobs associated * with the specified account ID.

*/ inline ListRestoreJobsRequest& WithByAccountId(Aws::String&& value) { SetByAccountId(std::move(value)); return *this;} /** *

The account ID to list the jobs from. Returns only restore jobs associated * with the specified account ID.

*/ inline ListRestoreJobsRequest& WithByAccountId(const char* value) { SetByAccountId(value); return *this;} /** *

Returns only restore jobs that were created before the specified date.

*/ inline const Aws::Utils::DateTime& GetByCreatedBefore() const{ return m_byCreatedBefore; } /** *

Returns only restore jobs that were created before the specified date.

*/ inline bool ByCreatedBeforeHasBeenSet() const { return m_byCreatedBeforeHasBeenSet; } /** *

Returns only restore jobs that were created before the specified date.

*/ inline void SetByCreatedBefore(const Aws::Utils::DateTime& value) { m_byCreatedBeforeHasBeenSet = true; m_byCreatedBefore = value; } /** *

Returns only restore jobs that were created before the specified date.

*/ inline void SetByCreatedBefore(Aws::Utils::DateTime&& value) { m_byCreatedBeforeHasBeenSet = true; m_byCreatedBefore = std::move(value); } /** *

Returns only restore jobs that were created before the specified date.

*/ inline ListRestoreJobsRequest& WithByCreatedBefore(const Aws::Utils::DateTime& value) { SetByCreatedBefore(value); return *this;} /** *

Returns only restore jobs that were created before the specified date.

*/ inline ListRestoreJobsRequest& WithByCreatedBefore(Aws::Utils::DateTime&& value) { SetByCreatedBefore(std::move(value)); return *this;} /** *

Returns only restore jobs that were created after the specified date.

*/ inline const Aws::Utils::DateTime& GetByCreatedAfter() const{ return m_byCreatedAfter; } /** *

Returns only restore jobs that were created after the specified date.

*/ inline bool ByCreatedAfterHasBeenSet() const { return m_byCreatedAfterHasBeenSet; } /** *

Returns only restore jobs that were created after the specified date.

*/ inline void SetByCreatedAfter(const Aws::Utils::DateTime& value) { m_byCreatedAfterHasBeenSet = true; m_byCreatedAfter = value; } /** *

Returns only restore jobs that were created after the specified date.

*/ inline void SetByCreatedAfter(Aws::Utils::DateTime&& value) { m_byCreatedAfterHasBeenSet = true; m_byCreatedAfter = std::move(value); } /** *

Returns only restore jobs that were created after the specified date.

*/ inline ListRestoreJobsRequest& WithByCreatedAfter(const Aws::Utils::DateTime& value) { SetByCreatedAfter(value); return *this;} /** *

Returns only restore jobs that were created after the specified date.

*/ inline ListRestoreJobsRequest& WithByCreatedAfter(Aws::Utils::DateTime&& value) { SetByCreatedAfter(std::move(value)); return *this;} /** *

Returns only restore jobs associated with the specified job status.

*/ inline const RestoreJobStatus& GetByStatus() const{ return m_byStatus; } /** *

Returns only restore jobs associated with the specified job status.

*/ inline bool ByStatusHasBeenSet() const { return m_byStatusHasBeenSet; } /** *

Returns only restore jobs associated with the specified job status.

*/ inline void SetByStatus(const RestoreJobStatus& value) { m_byStatusHasBeenSet = true; m_byStatus = value; } /** *

Returns only restore jobs associated with the specified job status.

*/ inline void SetByStatus(RestoreJobStatus&& value) { m_byStatusHasBeenSet = true; m_byStatus = std::move(value); } /** *

Returns only restore jobs associated with the specified job status.

*/ inline ListRestoreJobsRequest& WithByStatus(const RestoreJobStatus& value) { SetByStatus(value); return *this;} /** *

Returns only restore jobs associated with the specified job status.

*/ inline ListRestoreJobsRequest& WithByStatus(RestoreJobStatus&& value) { SetByStatus(std::move(value)); return *this;} /** *

Returns only copy jobs completed before a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline const Aws::Utils::DateTime& GetByCompleteBefore() const{ return m_byCompleteBefore; } /** *

Returns only copy jobs completed before a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline bool ByCompleteBeforeHasBeenSet() const { return m_byCompleteBeforeHasBeenSet; } /** *

Returns only copy jobs completed before a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline void SetByCompleteBefore(const Aws::Utils::DateTime& value) { m_byCompleteBeforeHasBeenSet = true; m_byCompleteBefore = value; } /** *

Returns only copy jobs completed before a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline void SetByCompleteBefore(Aws::Utils::DateTime&& value) { m_byCompleteBeforeHasBeenSet = true; m_byCompleteBefore = std::move(value); } /** *

Returns only copy jobs completed before a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline ListRestoreJobsRequest& WithByCompleteBefore(const Aws::Utils::DateTime& value) { SetByCompleteBefore(value); return *this;} /** *

Returns only copy jobs completed before a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline ListRestoreJobsRequest& WithByCompleteBefore(Aws::Utils::DateTime&& value) { SetByCompleteBefore(std::move(value)); return *this;} /** *

Returns only copy jobs completed after a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline const Aws::Utils::DateTime& GetByCompleteAfter() const{ return m_byCompleteAfter; } /** *

Returns only copy jobs completed after a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline bool ByCompleteAfterHasBeenSet() const { return m_byCompleteAfterHasBeenSet; } /** *

Returns only copy jobs completed after a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline void SetByCompleteAfter(const Aws::Utils::DateTime& value) { m_byCompleteAfterHasBeenSet = true; m_byCompleteAfter = value; } /** *

Returns only copy jobs completed after a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline void SetByCompleteAfter(Aws::Utils::DateTime&& value) { m_byCompleteAfterHasBeenSet = true; m_byCompleteAfter = std::move(value); } /** *

Returns only copy jobs completed after a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline ListRestoreJobsRequest& WithByCompleteAfter(const Aws::Utils::DateTime& value) { SetByCompleteAfter(value); return *this;} /** *

Returns only copy jobs completed after a date expressed in Unix format and * Coordinated Universal Time (UTC).

*/ inline ListRestoreJobsRequest& WithByCompleteAfter(Aws::Utils::DateTime&& value) { SetByCompleteAfter(std::move(value)); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_byAccountId; bool m_byAccountIdHasBeenSet = false; Aws::Utils::DateTime m_byCreatedBefore; bool m_byCreatedBeforeHasBeenSet = false; Aws::Utils::DateTime m_byCreatedAfter; bool m_byCreatedAfterHasBeenSet = false; RestoreJobStatus m_byStatus; bool m_byStatusHasBeenSet = false; Aws::Utils::DateTime m_byCompleteBefore; bool m_byCompleteBeforeHasBeenSet = false; Aws::Utils::DateTime m_byCompleteAfter; bool m_byCompleteAfterHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws