Package org.elasticsearch.client.ml
Class GetTrainedModelsStatsRequest
java.lang.Object
org.elasticsearch.client.ml.GetTrainedModelsStatsRequest
- All Implemented Interfaces:
Validatable
public class GetTrainedModelsStatsRequest extends java.lang.Object implements Validatable
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALLOW_NO_MATCH -
Constructor Summary
Constructors Constructor Description GetTrainedModelsStatsRequest(java.lang.String... ids) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.BooleangetAllowNoMatch()static GetTrainedModelsStatsRequestgetAllTrainedModelStatsRequest()Helper method to create a request that will get ALL TrainedModelStatsjava.util.List<java.lang.String>getIds()PageParamsgetPageParams()inthashCode()GetTrainedModelsStatsRequestsetAllowNoMatch(boolean allowNoMatch)Whether to ignore if a wildcard expression matches no trained models.GetTrainedModelsStatsRequestsetPageParams(PageParams pageParams)java.util.Optional<ValidationException>validate()Perform validation.
-
Field Details
-
ALLOW_NO_MATCH
public static final java.lang.String ALLOW_NO_MATCH- See Also:
- Constant Field Values
-
-
Constructor Details
-
GetTrainedModelsStatsRequest
public GetTrainedModelsStatsRequest(java.lang.String... ids)
-
-
Method Details
-
getAllTrainedModelStatsRequest
Helper method to create a request that will get ALL TrainedModelStats- Returns:
- new
GetTrainedModelsStatsRequestobject for the id "_all"
-
getIds
public java.util.List<java.lang.String> getIds() -
getAllowNoMatch
public java.lang.Boolean getAllowNoMatch() -
setAllowNoMatch
Whether to ignore if a wildcard expression matches no trained models.- Parameters:
allowNoMatch- If this isfalse, then an error is returned when a wildcard (or_all) does not match any trained models
-
getPageParams
-
setPageParams
-
validate
Description copied from interface:ValidatablePerform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. AValidationExceptionthat is not null is assumed to contain validation errors and will be thrown.- Specified by:
validatein interfaceValidatable- Returns:
- An
OptionalValidationExceptionthat contains a list of validation errors.
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-