/** * 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 ListHubContentVersionsRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API ListHubContentVersionsRequest(); // 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 "ListHubContentVersions"; } 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 content versions of.

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

The name of the hub to list the content versions of.

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

The name of the hub to list the content versions of.

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

The name of the hub to list the content versions of.

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

The name of the hub to list the content versions of.

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

The name of the hub to list the content versions of.

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

The name of the hub to list the content versions of.

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

The name of the hub to list the content versions of.

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

The type of hub content to list versions of.

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

The type of hub content to list versions of.

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

The type of hub content to list versions of.

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

The type of hub content to list versions of.

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

The type of hub content to list versions of.

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

The type of hub content to list versions of.

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

The name of the hub content.

*/ inline const Aws::String& GetHubContentName() const{ return m_hubContentName; } /** *

The name of the hub content.

*/ inline bool HubContentNameHasBeenSet() const { return m_hubContentNameHasBeenSet; } /** *

The name of the hub content.

*/ inline void SetHubContentName(const Aws::String& value) { m_hubContentNameHasBeenSet = true; m_hubContentName = value; } /** *

The name of the hub content.

*/ inline void SetHubContentName(Aws::String&& value) { m_hubContentNameHasBeenSet = true; m_hubContentName = std::move(value); } /** *

The name of the hub content.

*/ inline void SetHubContentName(const char* value) { m_hubContentNameHasBeenSet = true; m_hubContentName.assign(value); } /** *

The name of the hub content.

*/ inline ListHubContentVersionsRequest& WithHubContentName(const Aws::String& value) { SetHubContentName(value); return *this;} /** *

The name of the hub content.

*/ inline ListHubContentVersionsRequest& WithHubContentName(Aws::String&& value) { SetHubContentName(std::move(value)); return *this;} /** *

The name of the hub content.

*/ inline ListHubContentVersionsRequest& WithHubContentName(const char* value) { SetHubContentName(value); return *this;} /** *

The lower bound of the hub content versions to list.

*/ inline const Aws::String& GetMinVersion() const{ return m_minVersion; } /** *

The lower bound of the hub content versions to list.

*/ inline bool MinVersionHasBeenSet() const { return m_minVersionHasBeenSet; } /** *

The lower bound of the hub content versions to list.

*/ inline void SetMinVersion(const Aws::String& value) { m_minVersionHasBeenSet = true; m_minVersion = value; } /** *

The lower bound of the hub content versions to list.

*/ inline void SetMinVersion(Aws::String&& value) { m_minVersionHasBeenSet = true; m_minVersion = std::move(value); } /** *

The lower bound of the hub content versions to list.

*/ inline void SetMinVersion(const char* value) { m_minVersionHasBeenSet = true; m_minVersion.assign(value); } /** *

The lower bound of the hub content versions to list.

*/ inline ListHubContentVersionsRequest& WithMinVersion(const Aws::String& value) { SetMinVersion(value); return *this;} /** *

The lower bound of the hub content versions to list.

*/ inline ListHubContentVersionsRequest& WithMinVersion(Aws::String&& value) { SetMinVersion(std::move(value)); return *this;} /** *

The lower bound of the hub content versions to list.

*/ inline ListHubContentVersionsRequest& WithMinVersion(const char* value) { SetMinVersion(value); return *this;} /** *

The upper bound of the hub content schema version.

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

The upper bound of the hub content schema version.

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

The upper bound of the hub content schema version.

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

The upper bound of the hub content schema version.

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

The upper bound of the hub content schema version.

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

The upper bound of the hub content schema version.

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

The upper bound of the hub content schema version.

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

The upper bound of the hub content schema version.

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

Only list hub content versions that were created before the time * specified.

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

Only list hub content versions that were created before the time * specified.

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

Only list hub content versions that were created before the time * specified.

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

Only list hub content versions that were created before the time * specified.

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

Only list hub content versions that were created before the time * specified.

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

Only list hub content versions that were created before the time * specified.

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

Only list hub content versions that were created after the time * specified.

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

Only list hub content versions that were created after the time * specified.

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

Only list hub content versions that were created after the time * specified.

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

Only list hub content versions that were created after the time * specified.

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

Only list hub content versions that were created after the time * specified.

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

Only list hub content versions that were created after the time * specified.

*/ inline ListHubContentVersionsRequest& 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 ListHubContentVersionsRequest& WithSortBy(const HubContentSortBy& value) { SetSortBy(value); return *this;} /** *

Sort hub content versions by either name or creation time.

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

Sort hub content versions by ascending or descending order.

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

Sort hub content versions by ascending or descending order.

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

Sort hub content versions by ascending or descending order.

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

Sort hub content versions by ascending or descending order.

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

Sort hub content versions by ascending or descending order.

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

Sort hub content versions by ascending or descending order.

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

The maximum number of hub content versions to list.

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

The maximum number of hub content versions to list.

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

The maximum number of hub content versions to list.

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

The maximum number of hub content versions to list.

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

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

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

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

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

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

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

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

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

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

*/ inline ListHubContentVersionsRequest& 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_hubContentName; bool m_hubContentNameHasBeenSet = false; Aws::String m_minVersion; bool m_minVersionHasBeenSet = 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