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

List the candidates created for the job by providing the job's name.

*/ inline const Aws::String& GetAutoMLJobName() const{ return m_autoMLJobName; } /** *

List the candidates created for the job by providing the job's name.

*/ inline bool AutoMLJobNameHasBeenSet() const { return m_autoMLJobNameHasBeenSet; } /** *

List the candidates created for the job by providing the job's name.

*/ inline void SetAutoMLJobName(const Aws::String& value) { m_autoMLJobNameHasBeenSet = true; m_autoMLJobName = value; } /** *

List the candidates created for the job by providing the job's name.

*/ inline void SetAutoMLJobName(Aws::String&& value) { m_autoMLJobNameHasBeenSet = true; m_autoMLJobName = std::move(value); } /** *

List the candidates created for the job by providing the job's name.

*/ inline void SetAutoMLJobName(const char* value) { m_autoMLJobNameHasBeenSet = true; m_autoMLJobName.assign(value); } /** *

List the candidates created for the job by providing the job's name.

*/ inline ListCandidatesForAutoMLJobRequest& WithAutoMLJobName(const Aws::String& value) { SetAutoMLJobName(value); return *this;} /** *

List the candidates created for the job by providing the job's name.

*/ inline ListCandidatesForAutoMLJobRequest& WithAutoMLJobName(Aws::String&& value) { SetAutoMLJobName(std::move(value)); return *this;} /** *

List the candidates created for the job by providing the job's name.

*/ inline ListCandidatesForAutoMLJobRequest& WithAutoMLJobName(const char* value) { SetAutoMLJobName(value); return *this;} /** *

List the candidates for the job and filter by status.

*/ inline const CandidateStatus& GetStatusEquals() const{ return m_statusEquals; } /** *

List the candidates for the job and filter by status.

*/ inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; } /** *

List the candidates for the job and filter by status.

*/ inline void SetStatusEquals(const CandidateStatus& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = value; } /** *

List the candidates for the job and filter by status.

*/ inline void SetStatusEquals(CandidateStatus&& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = std::move(value); } /** *

List the candidates for the job and filter by status.

*/ inline ListCandidatesForAutoMLJobRequest& WithStatusEquals(const CandidateStatus& value) { SetStatusEquals(value); return *this;} /** *

List the candidates for the job and filter by status.

*/ inline ListCandidatesForAutoMLJobRequest& WithStatusEquals(CandidateStatus&& value) { SetStatusEquals(std::move(value)); return *this;} /** *

List the candidates for the job and filter by candidate name.

*/ inline const Aws::String& GetCandidateNameEquals() const{ return m_candidateNameEquals; } /** *

List the candidates for the job and filter by candidate name.

*/ inline bool CandidateNameEqualsHasBeenSet() const { return m_candidateNameEqualsHasBeenSet; } /** *

List the candidates for the job and filter by candidate name.

*/ inline void SetCandidateNameEquals(const Aws::String& value) { m_candidateNameEqualsHasBeenSet = true; m_candidateNameEquals = value; } /** *

List the candidates for the job and filter by candidate name.

*/ inline void SetCandidateNameEquals(Aws::String&& value) { m_candidateNameEqualsHasBeenSet = true; m_candidateNameEquals = std::move(value); } /** *

List the candidates for the job and filter by candidate name.

*/ inline void SetCandidateNameEquals(const char* value) { m_candidateNameEqualsHasBeenSet = true; m_candidateNameEquals.assign(value); } /** *

List the candidates for the job and filter by candidate name.

*/ inline ListCandidatesForAutoMLJobRequest& WithCandidateNameEquals(const Aws::String& value) { SetCandidateNameEquals(value); return *this;} /** *

List the candidates for the job and filter by candidate name.

*/ inline ListCandidatesForAutoMLJobRequest& WithCandidateNameEquals(Aws::String&& value) { SetCandidateNameEquals(std::move(value)); return *this;} /** *

List the candidates for the job and filter by candidate name.

*/ inline ListCandidatesForAutoMLJobRequest& WithCandidateNameEquals(const char* value) { SetCandidateNameEquals(value); return *this;} /** *

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

*/ inline const AutoMLSortOrder& 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 AutoMLSortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

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

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

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

*/ inline ListCandidatesForAutoMLJobRequest& WithSortOrder(const AutoMLSortOrder& value) { SetSortOrder(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline ListCandidatesForAutoMLJobRequest& WithSortBy(const CandidateSortBy& value) { SetSortBy(value); return *this;} /** *

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

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

List the job's candidates up to a specified limit.

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

List the job's candidates up to a specified limit.

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

List the job's candidates up to a specified limit.

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

List the job's candidates up to a specified limit.

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

If the previous response was truncated, you 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 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 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 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 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 receive this token. Use it in * your next request to receive the next set of results.

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

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

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

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

*/ inline ListCandidatesForAutoMLJobRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_autoMLJobName; bool m_autoMLJobNameHasBeenSet = false; CandidateStatus m_statusEquals; bool m_statusEqualsHasBeenSet = false; Aws::String m_candidateNameEquals; bool m_candidateNameEqualsHasBeenSet = false; AutoMLSortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; CandidateSortBy m_sortBy; bool m_sortByHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws