Class GetInfluencersRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetInfluencersRequest.Builder>
co.elastic.clients.elasticsearch.ml.GetInfluencersRequest.Builder
- All Implemented Interfaces:
WithJson<GetInfluencersRequest.Builder>,ObjectBuilder<GetInfluencersRequest>
- Enclosing class:
- GetInfluencersRequest
public static class GetInfluencersRequest.Builder extends WithJsonObjectBuilderBase<GetInfluencersRequest.Builder> implements ObjectBuilder<GetInfluencersRequest>
Builder for
GetInfluencersRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetInfluencersRequestbuild()Builds aGetInfluencersRequest.GetInfluencersRequest.Builderdesc(java.lang.Boolean value)If true, the results are sorted in descending order.GetInfluencersRequest.Builderend(java.lang.String value)Returns influencers with timestamps earlier than this time.GetInfluencersRequest.BuilderexcludeInterim(java.lang.Boolean value)If true, the output excludes interim results.GetInfluencersRequest.Builderfrom(java.lang.Integer value)Skips the specified number of influencers.GetInfluencersRequest.BuilderinfluencerScore(java.lang.Double value)Returns influencers with anomaly scores greater than or equal to this value.GetInfluencersRequest.BuilderjobId(java.lang.String value)Required - Identifier for the anomaly detection job.GetInfluencersRequest.Builderpage(Page value)API name:pageGetInfluencersRequest.Builderpage(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)API name:pageprotected GetInfluencersRequest.Builderself()GetInfluencersRequest.Buildersize(java.lang.Integer value)Specifies the maximum number of influencers to obtain.GetInfluencersRequest.Buildersort(java.lang.String value)Specifies the sort field for the requested influencers.GetInfluencersRequest.Builderstart(java.lang.String value)Returns influencers with timestamps after this time.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desc
If true, the results are sorted in descending order.API name:
desc -
end
Returns influencers with timestamps earlier than this time. The default value means it is unset and results are not limited to specific timestamps.API name:
end -
excludeInterim
If true, the output excludes interim results. By default, interim results are included.API name:
exclude_interim -
from
Skips the specified number of influencers.API name:
from -
influencerScore
Returns influencers with anomaly scores greater than or equal to this value.API name:
influencer_score -
jobId
Required - Identifier for the anomaly detection job.API name:
job_id -
page
API name:page -
page
public final GetInfluencersRequest.Builder page(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)API name:page -
size
Specifies the maximum number of influencers to obtain.API name:
size -
sort
Specifies the sort field for the requested influencers. By default, the influencers are sorted by theinfluencer_scorevalue.API name:
sort -
start
Returns influencers with timestamps after this time. The default value means it is unset and results are not limited to specific timestamps.API name:
start -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetInfluencersRequest.Builder>
-
build
Builds aGetInfluencersRequest.- Specified by:
buildin interfaceObjectBuilder<GetInfluencersRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-