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

The name of the hub to list the contents of.

*/ inline const Aws::String& GetHubName() const{ return m_hubName; } /** *

The name of the hub to list the contents of.

*/ inline bool HubNameHasBeenSet() const { return m_hubNameHasBeenSet; } /** *

The name of the hub to list the contents of.

*/ inline void SetHubName(const Aws::String& value) { m_hubNameHasBeenSet = true; m_hubName = value; } /** *

The name of the hub to list the contents of.

*/ inline void SetHubName(Aws::String&& value) { m_hubNameHasBeenSet = true; m_hubName = std::move(value); } /** *

The name of the hub to list the contents of.

*/ inline void SetHubName(const char* value) { m_hubNameHasBeenSet = true; m_hubName.assign(value); } /** *

The name of the hub to list the contents of.

*/ inline ListHubContentsRequest& WithHubName(const Aws::String& value) { SetHubName(value); return *this;} /** *

The name of the hub to list the contents of.

*/ inline ListHubContentsRequest& WithHubName(Aws::String&& value) { SetHubName(std::move(value)); return *this;} /** *

The name of the hub to list the contents of.

*/ inline ListHubContentsRequest& WithHubName(const char* value) { SetHubName(value); return *this;} /** *

The type of hub content to list.

*/ inline const HubContentType& GetHubContentType() const{ return m_hubContentType; } /** *

The type of hub content to list.

*/ inline bool HubContentTypeHasBeenSet() const { return m_hubContentTypeHasBeenSet; } /** *

The type of hub content to list.

*/ inline void SetHubContentType(const HubContentType& value) { m_hubContentTypeHasBeenSet = true; m_hubContentType = value; } /** *

The type of hub content to list.

*/ inline void SetHubContentType(HubContentType&& value) { m_hubContentTypeHasBeenSet = true; m_hubContentType = std::move(value); } /** *

The type of hub content to list.

*/ inline ListHubContentsRequest& WithHubContentType(const HubContentType& value) { SetHubContentType(value); return *this;} /** *

The type of hub content to list.

*/ inline ListHubContentsRequest& WithHubContentType(HubContentType&& value) { SetHubContentType(std::move(value)); return *this;} /** *

Only list hub content if the name contains the specified string.

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

Only list hub content if the name contains the specified string.

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

Only list hub content if the name contains the specified string.

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

Only list hub content if the name contains the specified string.

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

Only list hub content if the name contains the specified string.

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

Only list hub content if the name contains the specified string.

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

Only list hub content if the name contains the specified string.

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

Only list hub content if the name contains the specified string.

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

The upper bound of the hub content schema verion.

*/ inline const Aws::String& GetMaxSchemaVersion() const{ return m_maxSchemaVersion; } /** *

The upper bound of the hub content schema verion.

*/ inline bool MaxSchemaVersionHasBeenSet() const { return m_maxSchemaVersionHasBeenSet; } /** *

The upper bound of the hub content schema verion.

*/ inline void SetMaxSchemaVersion(const Aws::String& value) { m_maxSchemaVersionHasBeenSet = true; m_maxSchemaVersion = value; } /** *

The upper bound of the hub content schema verion.

*/ inline void SetMaxSchemaVersion(Aws::String&& value) { m_maxSchemaVersionHasBeenSet = true; m_maxSchemaVersion = std::move(value); } /** *

The upper bound of the hub content schema verion.

*/ inline void SetMaxSchemaVersion(const char* value) { m_maxSchemaVersionHasBeenSet = true; m_maxSchemaVersion.assign(value); } /** *

The upper bound of the hub content schema verion.

*/ inline ListHubContentsRequest& WithMaxSchemaVersion(const Aws::String& value) { SetMaxSchemaVersion(value); return *this;} /** *

The upper bound of the hub content schema verion.

*/ inline ListHubContentsRequest& WithMaxSchemaVersion(Aws::String&& value) { SetMaxSchemaVersion(std::move(value)); return *this;} /** *

The upper bound of the hub content schema verion.

*/ inline ListHubContentsRequest& WithMaxSchemaVersion(const char* value) { SetMaxSchemaVersion(value); return *this;} /** *

Only list hub content that was created before the time specified.

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

Only list hub content that was created before the time specified.

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

Only list hub content that was created before the time specified.

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

Only list hub content that was created before the time specified.

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

Only list hub content that was created before the time specified.

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

Only list hub content that was created before the time specified.

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

Only list hub content that was created after the time specified.

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

Only list hub content that was created after the time specified.

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

Only list hub content that was created after the time specified.

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

Only list hub content that was created after the time specified.

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

Only list hub content that was created after the time specified.

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

Only list hub content that was created after the time specified.

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

Sort hub content versions by either name or creation time.

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

Sort hub content versions by either name or creation time.

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

Sort hub content versions by either name or creation time.

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

Sort hub content versions by either name or creation time.

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

Sort hub content versions by either name or creation time.

*/ inline ListHubContentsRequest& WithSortBy(const HubContentSortBy& value) { SetSortBy(value); return *this;} /** *

Sort hub content versions by either name or creation time.

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

Sort hubs by ascending or descending order.

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

Sort hubs by ascending or descending order.

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

Sort hubs by ascending or descending order.

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

Sort hubs by ascending or descending order.

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

Sort hubs by ascending or descending order.

*/ inline ListHubContentsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

Sort hubs by ascending or descending order.

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

The maximum amount of hub content to list.

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

The maximum amount of hub content to list.

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

The maximum amount of hub content to list.

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

The maximum amount of hub content to list.

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

If the response to a previous ListHubContents request was * truncated, the response includes a NextToken. To retrieve the next * set of hub content, use the token in the next request.

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

If the response to a previous ListHubContents request was * truncated, the response includes a NextToken. To retrieve the next * set of hub content, use the token in the next request.

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

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

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

If the response to a previous ListHubContents request was * truncated, the response includes a NextToken. To retrieve the next * set of hub content, use the token in the next request.

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

If the response to a previous ListHubContents request was * truncated, the response includes a NextToken. To retrieve the next * set of hub content, use the token in the next request.

*/ inline ListHubContentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_hubName; bool m_hubNameHasBeenSet = false; HubContentType m_hubContentType; bool m_hubContentTypeHasBeenSet = false; Aws::String m_nameContains; bool m_nameContainsHasBeenSet = false; Aws::String m_maxSchemaVersion; bool m_maxSchemaVersionHasBeenSet = false; Aws::Utils::DateTime m_creationTimeBefore; bool m_creationTimeBeforeHasBeenSet = false; Aws::Utils::DateTime m_creationTimeAfter; bool m_creationTimeAfterHasBeenSet = false; HubContentSortBy m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws