/** * 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 namespace Aws { namespace SageMaker { namespace Model { /** */ class ListContextsRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API ListContextsRequest(); // 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 "ListContexts"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A filter that returns only contexts with the specified source URI.

*/ inline const Aws::String& GetSourceUri() const{ return m_sourceUri; } /** *

A filter that returns only contexts with the specified source URI.

*/ inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; } /** *

A filter that returns only contexts with the specified source URI.

*/ inline void SetSourceUri(const Aws::String& value) { m_sourceUriHasBeenSet = true; m_sourceUri = value; } /** *

A filter that returns only contexts with the specified source URI.

*/ inline void SetSourceUri(Aws::String&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::move(value); } /** *

A filter that returns only contexts with the specified source URI.

*/ inline void SetSourceUri(const char* value) { m_sourceUriHasBeenSet = true; m_sourceUri.assign(value); } /** *

A filter that returns only contexts with the specified source URI.

*/ inline ListContextsRequest& WithSourceUri(const Aws::String& value) { SetSourceUri(value); return *this;} /** *

A filter that returns only contexts with the specified source URI.

*/ inline ListContextsRequest& WithSourceUri(Aws::String&& value) { SetSourceUri(std::move(value)); return *this;} /** *

A filter that returns only contexts with the specified source URI.

*/ inline ListContextsRequest& WithSourceUri(const char* value) { SetSourceUri(value); return *this;} /** *

A filter that returns only contexts of the specified type.

*/ inline const Aws::String& GetContextType() const{ return m_contextType; } /** *

A filter that returns only contexts of the specified type.

*/ inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; } /** *

A filter that returns only contexts of the specified type.

*/ inline void SetContextType(const Aws::String& value) { m_contextTypeHasBeenSet = true; m_contextType = value; } /** *

A filter that returns only contexts of the specified type.

*/ inline void SetContextType(Aws::String&& value) { m_contextTypeHasBeenSet = true; m_contextType = std::move(value); } /** *

A filter that returns only contexts of the specified type.

*/ inline void SetContextType(const char* value) { m_contextTypeHasBeenSet = true; m_contextType.assign(value); } /** *

A filter that returns only contexts of the specified type.

*/ inline ListContextsRequest& WithContextType(const Aws::String& value) { SetContextType(value); return *this;} /** *

A filter that returns only contexts of the specified type.

*/ inline ListContextsRequest& WithContextType(Aws::String&& value) { SetContextType(std::move(value)); return *this;} /** *

A filter that returns only contexts of the specified type.

*/ inline ListContextsRequest& WithContextType(const char* value) { SetContextType(value); return *this;} /** *

A filter that returns only contexts created on or after the specified * time.

*/ inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; } /** *

A filter that returns only contexts created on or after the specified * time.

*/ inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; } /** *

A filter that returns only contexts created on or after the specified * time.

*/ inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; } /** *

A filter that returns only contexts created on or after the specified * time.

*/ inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); } /** *

A filter that returns only contexts created on or after the specified * time.

*/ inline ListContextsRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;} /** *

A filter that returns only contexts created on or after the specified * time.

*/ inline ListContextsRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;} /** *

A filter that returns only contexts created on or before the specified * time.

*/ inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; } /** *

A filter that returns only contexts created on or before the specified * time.

*/ inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; } /** *

A filter that returns only contexts created on or before the specified * time.

*/ inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; } /** *

A filter that returns only contexts created on or before the specified * time.

*/ inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); } /** *

A filter that returns only contexts created on or before the specified * time.

*/ inline ListContextsRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;} /** *

A filter that returns only contexts created on or before the specified * time.

*/ inline ListContextsRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;} /** *

The property used to sort results. The default value is * CreationTime.

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

The property used to sort results. The default value is * CreationTime.

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

The property used to sort results. The default value is * CreationTime.

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

The property used to sort results. The default value is * CreationTime.

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

The property used to sort results. The default value is * CreationTime.

*/ inline ListContextsRequest& WithSortBy(const SortContextsBy& value) { SetSortBy(value); return *this;} /** *

The property used to sort results. The default value is * CreationTime.

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

The sort order. The default value is Descending.

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

The sort order. The default value is Descending.

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

The sort order. The default value is Descending.

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

The sort order. The default value is Descending.

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

The sort order. The default value is Descending.

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

The sort order. The default value is Descending.

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

If the previous call to ListContexts didn't return the full set * of contexts, the call returns a token for getting the next set of contexts.

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

If the previous call to ListContexts didn't return the full set * of contexts, the call returns a token for getting the next set of contexts.

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

If the previous call to ListContexts didn't return the full set * of contexts, the call returns a token for getting the next set of contexts.

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

If the previous call to ListContexts didn't return the full set * of contexts, the call returns a token for getting the next set of contexts.

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

If the previous call to ListContexts didn't return the full set * of contexts, the call returns a token for getting the next set of contexts.

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

If the previous call to ListContexts didn't return the full set * of contexts, the call returns a token for getting the next set of contexts.

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

If the previous call to ListContexts didn't return the full set * of contexts, the call returns a token for getting the next set of contexts.

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

If the previous call to ListContexts didn't return the full set * of contexts, the call returns a token for getting the next set of contexts.

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

The maximum number of contexts to return in the response. The default value * is 10.

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

The maximum number of contexts to return in the response. The default value * is 10.

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

The maximum number of contexts to return in the response. The default value * is 10.

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

The maximum number of contexts to return in the response. The default value * is 10.

*/ inline ListContextsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_sourceUri; bool m_sourceUriHasBeenSet = false; Aws::String m_contextType; bool m_contextTypeHasBeenSet = false; Aws::Utils::DateTime m_createdAfter; bool m_createdAfterHasBeenSet = false; Aws::Utils::DateTime m_createdBefore; bool m_createdBeforeHasBeenSet = false; SortContextsBy m_sortBy; bool m_sortByHasBeenSet = false; SortOrder 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