/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class ListModelCardExportJobsRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API ListModelCardExportJobsRequest(); // 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 "ListModelCardExportJobs"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

List export jobs for the model card with the specified name.

*/ inline const Aws::String& GetModelCardName() const{ return m_modelCardName; } /** *

List export jobs for the model card with the specified name.

*/ inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; } /** *

List export jobs for the model card with the specified name.

*/ inline void SetModelCardName(const Aws::String& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = value; } /** *

List export jobs for the model card with the specified name.

*/ inline void SetModelCardName(Aws::String&& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = std::move(value); } /** *

List export jobs for the model card with the specified name.

*/ inline void SetModelCardName(const char* value) { m_modelCardNameHasBeenSet = true; m_modelCardName.assign(value); } /** *

List export jobs for the model card with the specified name.

*/ inline ListModelCardExportJobsRequest& WithModelCardName(const Aws::String& value) { SetModelCardName(value); return *this;} /** *

List export jobs for the model card with the specified name.

*/ inline ListModelCardExportJobsRequest& WithModelCardName(Aws::String&& value) { SetModelCardName(std::move(value)); return *this;} /** *

List export jobs for the model card with the specified name.

*/ inline ListModelCardExportJobsRequest& WithModelCardName(const char* value) { SetModelCardName(value); return *this;} /** *

List export jobs for the model card with the specified version.

*/ inline int GetModelCardVersion() const{ return m_modelCardVersion; } /** *

List export jobs for the model card with the specified version.

*/ inline bool ModelCardVersionHasBeenSet() const { return m_modelCardVersionHasBeenSet; } /** *

List export jobs for the model card with the specified version.

*/ inline void SetModelCardVersion(int value) { m_modelCardVersionHasBeenSet = true; m_modelCardVersion = value; } /** *

List export jobs for the model card with the specified version.

*/ inline ListModelCardExportJobsRequest& WithModelCardVersion(int value) { SetModelCardVersion(value); return *this;} /** *

Only list model card export jobs that were created after the time * specified.

*/ inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; } /** *

Only list model card export jobs that were created after the time * specified.

*/ inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; } /** *

Only list model card export jobs that were created after the time * specified.

*/ inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; } /** *

Only list model card export jobs that were created after the time * specified.

*/ inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); } /** *

Only list model card export jobs that were created after the time * specified.

*/ inline ListModelCardExportJobsRequest& WithCreationTimeAfter(const Aws::Utils::DateTime& value) { SetCreationTimeAfter(value); return *this;} /** *

Only list model card export jobs that were created after the time * specified.

*/ inline ListModelCardExportJobsRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(value)); return *this;} /** *

Only list model card export jobs that were created before the time * specified.

*/ inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; } /** *

Only list model card export jobs that were created before the time * specified.

*/ inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; } /** *

Only list model card export jobs that were created before the time * specified.

*/ inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; } /** *

Only list model card export jobs that were created before the time * specified.

*/ inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); } /** *

Only list model card export jobs that were created before the time * specified.

*/ inline ListModelCardExportJobsRequest& WithCreationTimeBefore(const Aws::Utils::DateTime& value) { SetCreationTimeBefore(value); return *this;} /** *

Only list model card export jobs that were created before the time * specified.

*/ inline ListModelCardExportJobsRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;} /** *

Only list model card export jobs with names that contain the specified * string.

*/ inline const Aws::String& GetModelCardExportJobNameContains() const{ return m_modelCardExportJobNameContains; } /** *

Only list model card export jobs with names that contain the specified * string.

*/ inline bool ModelCardExportJobNameContainsHasBeenSet() const { return m_modelCardExportJobNameContainsHasBeenSet; } /** *

Only list model card export jobs with names that contain the specified * string.

*/ inline void SetModelCardExportJobNameContains(const Aws::String& value) { m_modelCardExportJobNameContainsHasBeenSet = true; m_modelCardExportJobNameContains = value; } /** *

Only list model card export jobs with names that contain the specified * string.

*/ inline void SetModelCardExportJobNameContains(Aws::String&& value) { m_modelCardExportJobNameContainsHasBeenSet = true; m_modelCardExportJobNameContains = std::move(value); } /** *

Only list model card export jobs with names that contain the specified * string.

*/ inline void SetModelCardExportJobNameContains(const char* value) { m_modelCardExportJobNameContainsHasBeenSet = true; m_modelCardExportJobNameContains.assign(value); } /** *

Only list model card export jobs with names that contain the specified * string.

*/ inline ListModelCardExportJobsRequest& WithModelCardExportJobNameContains(const Aws::String& value) { SetModelCardExportJobNameContains(value); return *this;} /** *

Only list model card export jobs with names that contain the specified * string.

*/ inline ListModelCardExportJobsRequest& WithModelCardExportJobNameContains(Aws::String&& value) { SetModelCardExportJobNameContains(std::move(value)); return *this;} /** *

Only list model card export jobs with names that contain the specified * string.

*/ inline ListModelCardExportJobsRequest& WithModelCardExportJobNameContains(const char* value) { SetModelCardExportJobNameContains(value); return *this;} /** *

Only list model card export jobs with the specified status.

*/ inline const ModelCardExportJobStatus& GetStatusEquals() const{ return m_statusEquals; } /** *

Only list model card export jobs with the specified status.

*/ inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; } /** *

Only list model card export jobs with the specified status.

*/ inline void SetStatusEquals(const ModelCardExportJobStatus& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = value; } /** *

Only list model card export jobs with the specified status.

*/ inline void SetStatusEquals(ModelCardExportJobStatus&& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = std::move(value); } /** *

Only list model card export jobs with the specified status.

*/ inline ListModelCardExportJobsRequest& WithStatusEquals(const ModelCardExportJobStatus& value) { SetStatusEquals(value); return *this;} /** *

Only list model card export jobs with the specified status.

*/ inline ListModelCardExportJobsRequest& WithStatusEquals(ModelCardExportJobStatus&& value) { SetStatusEquals(std::move(value)); return *this;} /** *

Sort model card export jobs by either name or creation time. Sorts by * creation time by default.

*/ inline const ModelCardExportJobSortBy& GetSortBy() const{ return m_sortBy; } /** *

Sort model card export jobs by either name or creation time. Sorts by * creation time by default.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

Sort model card export jobs by either name or creation time. Sorts by * creation time by default.

*/ inline void SetSortBy(const ModelCardExportJobSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

Sort model card export jobs by either name or creation time. Sorts by * creation time by default.

*/ inline void SetSortBy(ModelCardExportJobSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

Sort model card export jobs by either name or creation time. Sorts by * creation time by default.

*/ inline ListModelCardExportJobsRequest& WithSortBy(const ModelCardExportJobSortBy& value) { SetSortBy(value); return *this;} /** *

Sort model card export jobs by either name or creation time. Sorts by * creation time by default.

*/ inline ListModelCardExportJobsRequest& WithSortBy(ModelCardExportJobSortBy&& value) { SetSortBy(std::move(value)); return *this;} /** *

Sort model card export jobs by ascending or descending order.

*/ inline const ModelCardExportJobSortOrder& GetSortOrder() const{ return m_sortOrder; } /** *

Sort model card export jobs by ascending or descending order.

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

Sort model card export jobs by ascending or descending order.

*/ inline void SetSortOrder(const ModelCardExportJobSortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

Sort model card export jobs by ascending or descending order.

*/ inline void SetSortOrder(ModelCardExportJobSortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

Sort model card export jobs by ascending or descending order.

*/ inline ListModelCardExportJobsRequest& WithSortOrder(const ModelCardExportJobSortOrder& value) { SetSortOrder(value); return *this;} /** *

Sort model card export jobs by ascending or descending order.

*/ inline ListModelCardExportJobsRequest& WithSortOrder(ModelCardExportJobSortOrder&& value) { SetSortOrder(std::move(value)); return *this;} /** *

If the response to a previous ListModelCardExportJobs request * was truncated, the response includes a NextToken. To retrieve the * next set of model card export jobs, use the token in the next request.

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

If the response to a previous ListModelCardExportJobs request * was truncated, the response includes a NextToken. To retrieve the * next set of model card export jobs, use the token in the next request.

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

If the response to a previous ListModelCardExportJobs request * was truncated, the response includes a NextToken. To retrieve the * next set of model card export jobs, use the token in the next request.

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

If the response to a previous ListModelCardExportJobs request * was truncated, the response includes a NextToken. To retrieve the * next set of model card export jobs, use the token in the next request.

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

If the response to a previous ListModelCardExportJobs request * was truncated, the response includes a NextToken. To retrieve the * next set of model card export jobs, use the token in the next request.

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

If the response to a previous ListModelCardExportJobs request * was truncated, the response includes a NextToken. To retrieve the * next set of model card export jobs, use the token in the next request.

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

If the response to a previous ListModelCardExportJobs request * was truncated, the response includes a NextToken. To retrieve the * next set of model card export jobs, use the token in the next request.

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

If the response to a previous ListModelCardExportJobs request * was truncated, the response includes a NextToken. To retrieve the * next set of model card export jobs, use the token in the next request.

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

The maximum number of model card export jobs to list.

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

The maximum number of model card export jobs to list.

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

The maximum number of model card export jobs to list.

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

The maximum number of model card export jobs to list.

*/ inline ListModelCardExportJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_modelCardName; bool m_modelCardNameHasBeenSet = false; int m_modelCardVersion; bool m_modelCardVersionHasBeenSet = false; Aws::Utils::DateTime m_creationTimeAfter; bool m_creationTimeAfterHasBeenSet = false; Aws::Utils::DateTime m_creationTimeBefore; bool m_creationTimeBeforeHasBeenSet = false; Aws::String m_modelCardExportJobNameContains; bool m_modelCardExportJobNameContainsHasBeenSet = false; ModelCardExportJobStatus m_statusEquals; bool m_statusEqualsHasBeenSet = false; ModelCardExportJobSortBy m_sortBy; bool m_sortByHasBeenSet = false; ModelCardExportJobSortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws