/** * 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 ListModelCardsRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API ListModelCardsRequest(); // 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 "ListModelCards"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Only list model cards that were created after the time specified.

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

Only list model cards that were created after the time specified.

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

Only list model cards that were created after the time specified.

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

Only list model cards 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 cards that were created after the time specified.

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

Only list model cards that were created after the time specified.

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

Only list model cards that were created before the time specified.

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

Only list model cards that were created before the time specified.

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

Only list model cards that were created before the time specified.

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

Only list model cards 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 cards that were created before the time specified.

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

Only list model cards that were created before the time specified.

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

The maximum number of model cards to list.

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

The maximum number of model cards to list.

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

The maximum number of model cards to list.

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

The maximum number of model cards to list.

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

Only list model cards with names that contain the specified string.

*/ inline const Aws::String& GetNameContains() const{ return m_nameContains; } /** *

Only list model cards with names that contain the specified string.

*/ inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; } /** *

Only list model cards with names that contain the specified string.

*/ inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; } /** *

Only list model cards with names that contain the specified string.

*/ inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); } /** *

Only list model cards with names that contain the specified string.

*/ inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); } /** *

Only list model cards with names that contain the specified string.

*/ inline ListModelCardsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;} /** *

Only list model cards with names that contain the specified string.

*/ inline ListModelCardsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;} /** *

Only list model cards with names that contain the specified string.

*/ inline ListModelCardsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;} /** *

Only list model cards with the specified approval status.

*/ inline const ModelCardStatus& GetModelCardStatus() const{ return m_modelCardStatus; } /** *

Only list model cards with the specified approval status.

*/ inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; } /** *

Only list model cards with the specified approval status.

*/ inline void SetModelCardStatus(const ModelCardStatus& value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = value; } /** *

Only list model cards with the specified approval status.

*/ inline void SetModelCardStatus(ModelCardStatus&& value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = std::move(value); } /** *

Only list model cards with the specified approval status.

*/ inline ListModelCardsRequest& WithModelCardStatus(const ModelCardStatus& value) { SetModelCardStatus(value); return *this;} /** *

Only list model cards with the specified approval status.

*/ inline ListModelCardsRequest& WithModelCardStatus(ModelCardStatus&& value) { SetModelCardStatus(std::move(value)); return *this;} /** *

If the response to a previous ListModelCards request was * truncated, the response includes a NextToken. To retrieve the next * set of model cards, use the token in the next request.

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

If the response to a previous ListModelCards request was * truncated, the response includes a NextToken. To retrieve the next * set of model cards, use the token in the next request.

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

If the response to a previous ListModelCards request was * truncated, the response includes a NextToken. To retrieve the next * set of model cards, 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 ListModelCards request was * truncated, the response includes a NextToken. To retrieve the next * set of model cards, 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 ListModelCards request was * truncated, the response includes a NextToken. To retrieve the next * set of model cards, 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 ListModelCards request was * truncated, the response includes a NextToken. To retrieve the next * set of model cards, use the token in the next request.

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

If the response to a previous ListModelCards request was * truncated, the response includes a NextToken. To retrieve the next * set of model cards, use the token in the next request.

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

If the response to a previous ListModelCards request was * truncated, the response includes a NextToken. To retrieve the next * set of model cards, use the token in the next request.

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

Sort model cards by either name or creation time. Sorts by creation time by * default.

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

Sort model cards by either name or creation time. Sorts by creation time by * default.

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

Sort model cards by either name or creation time. Sorts by creation time by * default.

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

Sort model cards by either name or creation time. Sorts by creation time by * default.

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

Sort model cards by either name or creation time. Sorts by creation time by * default.

*/ inline ListModelCardsRequest& WithSortBy(const ModelCardSortBy& value) { SetSortBy(value); return *this;} /** *

Sort model cards by either name or creation time. Sorts by creation time by * default.

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

Sort model cards by ascending or descending order.

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

Sort model cards by ascending or descending order.

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

Sort model cards by ascending or descending order.

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

Sort model cards by ascending or descending order.

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

Sort model cards by ascending or descending order.

*/ inline ListModelCardsRequest& WithSortOrder(const ModelCardSortOrder& value) { SetSortOrder(value); return *this;} /** *

Sort model cards by ascending or descending order.

*/ inline ListModelCardsRequest& WithSortOrder(ModelCardSortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::Utils::DateTime m_creationTimeAfter; bool m_creationTimeAfterHasBeenSet = false; Aws::Utils::DateTime m_creationTimeBefore; bool m_creationTimeBeforeHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nameContains; bool m_nameContainsHasBeenSet = false; ModelCardStatus m_modelCardStatus; bool m_modelCardStatusHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; ModelCardSortBy m_sortBy; bool m_sortByHasBeenSet = false; ModelCardSortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws