/** * 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 CloudTrail { namespace Model { /** */ class ListImportsRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API ListImportsRequest(); // 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 "ListImports"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The maximum number of imports to display on a single page.

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

The maximum number of imports to display on a single page.

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

The maximum number of imports to display on a single page.

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

The maximum number of imports to display on a single page.

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

The ARN of the destination event data store.

*/ inline const Aws::String& GetDestination() const{ return m_destination; } /** *

The ARN of the destination event data store.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

The ARN of the destination event data store.

*/ inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

The ARN of the destination event data store.

*/ inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *

The ARN of the destination event data store.

*/ inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); } /** *

The ARN of the destination event data store.

*/ inline ListImportsRequest& WithDestination(const Aws::String& value) { SetDestination(value); return *this;} /** *

The ARN of the destination event data store.

*/ inline ListImportsRequest& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;} /** *

The ARN of the destination event data store.

*/ inline ListImportsRequest& WithDestination(const char* value) { SetDestination(value); return *this;} /** *

The status of the import.

*/ inline const ImportStatus& GetImportStatus() const{ return m_importStatus; } /** *

The status of the import.

*/ inline bool ImportStatusHasBeenSet() const { return m_importStatusHasBeenSet; } /** *

The status of the import.

*/ inline void SetImportStatus(const ImportStatus& value) { m_importStatusHasBeenSet = true; m_importStatus = value; } /** *

The status of the import.

*/ inline void SetImportStatus(ImportStatus&& value) { m_importStatusHasBeenSet = true; m_importStatus = std::move(value); } /** *

The status of the import.

*/ inline ListImportsRequest& WithImportStatus(const ImportStatus& value) { SetImportStatus(value); return *this;} /** *

The status of the import.

*/ inline ListImportsRequest& WithImportStatus(ImportStatus&& value) { SetImportStatus(std::move(value)); return *this;} /** *

A token you can use to get the next page of import results.

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

A token you can use to get the next page of import results.

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

A token you can use to get the next page of import results.

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

A token you can use to get the next page of import results.

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

A token you can use to get the next page of import results.

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

A token you can use to get the next page of import results.

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

A token you can use to get the next page of import results.

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

A token you can use to get the next page of import results.

*/ inline ListImportsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_destination; bool m_destinationHasBeenSet = false; ImportStatus m_importStatus; bool m_importStatusHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws