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

If the previous response was truncated, you will receive this token. Use it * in your next request to receive the next set of results.

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

If the previous response was truncated, you will receive this token. Use it * in your next request to receive the next set of results.

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

If the previous response was truncated, you will receive this token. Use it * in your next request to receive the next set of results.

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

If the previous response was truncated, you will receive this token. Use it * in your next request to receive the next set of results.

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

If the previous response was truncated, you will receive this token. Use it * in your next request to receive the next set of results.

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

If the previous response was truncated, you will receive this token. Use it * in your next request to receive the next set of results.

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

If the previous response was truncated, you will receive this token. Use it * in your next request to receive the next set of results.

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

If the previous response was truncated, you will receive this token. Use it * in your next request to receive the next set of results.

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

The total number of items to return in the response. If the total number of * items available is more than the value specified, a NextToken is * provided in the response. To resume pagination, provide the * NextToken value in the as part of a subsequent call. The default * value is 10.

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

The total number of items to return in the response. If the total number of * items available is more than the value specified, a NextToken is * provided in the response. To resume pagination, provide the * NextToken value in the as part of a subsequent call. The default * value is 10.

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

The total number of items to return in the response. If the total number of * items available is more than the value specified, a NextToken is * provided in the response. To resume pagination, provide the * NextToken value in the as part of a subsequent call. The default * value is 10.

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

The total number of items to return in the response. If the total number of * items available is more than the value specified, a NextToken is * provided in the response. To resume pagination, provide the * NextToken value in the as part of a subsequent call. The default * value is 10.

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

The sort order for the results. The default is Ascending.

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

The sort order for the results. The default is Ascending.

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

The sort order for the results. The default is Ascending.

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

The sort order for the results. The default is Ascending.

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

The sort order for the results. The default is Ascending.

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

The sort order for the results. The default is Ascending.

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

The parameter by which to sort the results. The default is * CreationTime.

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

The parameter by which to sort the results. The default is * CreationTime.

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

The parameter by which to sort the results. The default is * CreationTime.

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

The parameter by which to sort the results. The default is * CreationTime.

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

The parameter by which to sort the results. The default is * CreationTime.

*/ inline ListSpacesRequest& WithSortBy(const SpaceSortKey& value) { SetSortBy(value); return *this;} /** *

The parameter by which to sort the results. The default is * CreationTime.

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

A parameter to search for the Domain ID.

*/ inline const Aws::String& GetDomainIdEquals() const{ return m_domainIdEquals; } /** *

A parameter to search for the Domain ID.

*/ inline bool DomainIdEqualsHasBeenSet() const { return m_domainIdEqualsHasBeenSet; } /** *

A parameter to search for the Domain ID.

*/ inline void SetDomainIdEquals(const Aws::String& value) { m_domainIdEqualsHasBeenSet = true; m_domainIdEquals = value; } /** *

A parameter to search for the Domain ID.

*/ inline void SetDomainIdEquals(Aws::String&& value) { m_domainIdEqualsHasBeenSet = true; m_domainIdEquals = std::move(value); } /** *

A parameter to search for the Domain ID.

*/ inline void SetDomainIdEquals(const char* value) { m_domainIdEqualsHasBeenSet = true; m_domainIdEquals.assign(value); } /** *

A parameter to search for the Domain ID.

*/ inline ListSpacesRequest& WithDomainIdEquals(const Aws::String& value) { SetDomainIdEquals(value); return *this;} /** *

A parameter to search for the Domain ID.

*/ inline ListSpacesRequest& WithDomainIdEquals(Aws::String&& value) { SetDomainIdEquals(std::move(value)); return *this;} /** *

A parameter to search for the Domain ID.

*/ inline ListSpacesRequest& WithDomainIdEquals(const char* value) { SetDomainIdEquals(value); return *this;} /** *

A parameter by which to filter the results.

*/ inline const Aws::String& GetSpaceNameContains() const{ return m_spaceNameContains; } /** *

A parameter by which to filter the results.

*/ inline bool SpaceNameContainsHasBeenSet() const { return m_spaceNameContainsHasBeenSet; } /** *

A parameter by which to filter the results.

*/ inline void SetSpaceNameContains(const Aws::String& value) { m_spaceNameContainsHasBeenSet = true; m_spaceNameContains = value; } /** *

A parameter by which to filter the results.

*/ inline void SetSpaceNameContains(Aws::String&& value) { m_spaceNameContainsHasBeenSet = true; m_spaceNameContains = std::move(value); } /** *

A parameter by which to filter the results.

*/ inline void SetSpaceNameContains(const char* value) { m_spaceNameContainsHasBeenSet = true; m_spaceNameContains.assign(value); } /** *

A parameter by which to filter the results.

*/ inline ListSpacesRequest& WithSpaceNameContains(const Aws::String& value) { SetSpaceNameContains(value); return *this;} /** *

A parameter by which to filter the results.

*/ inline ListSpacesRequest& WithSpaceNameContains(Aws::String&& value) { SetSpaceNameContains(std::move(value)); return *this;} /** *

A parameter by which to filter the results.

*/ inline ListSpacesRequest& WithSpaceNameContains(const char* value) { SetSpaceNameContains(value); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; SpaceSortKey m_sortBy; bool m_sortByHasBeenSet = false; Aws::String m_domainIdEquals; bool m_domainIdEqualsHasBeenSet = false; Aws::String m_spaceNameContains; bool m_spaceNameContainsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws