Class GetPolicyResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.enrich.GetPolicyResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetPolicyResponse>
- Enclosing class:
- GetPolicyResponse
public static class GetPolicyResponse.Builder extends java.lang.Object implements ObjectBuilder<GetPolicyResponse>
Builder for
GetPolicyResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetPolicyResponse.Builder
addPolicies(Summary value)
Add a value topolicies(List)
, creating the list if needed.GetPolicyResponse.Builder
addPolicies(java.util.function.Function<Summary.Builder,ObjectBuilder<Summary>> fn)
Add a value topolicies(List)
, creating the list if needed.GetPolicyResponse
build()
Builds aGetPolicyResponse
.GetPolicyResponse.Builder
policies(Summary... value)
Required - API name:policies
GetPolicyResponse.Builder
policies(java.util.function.Function<Summary.Builder,ObjectBuilder<Summary>> fn)
Setpolicies(List)
to a singleton list.GetPolicyResponse.Builder
policies(java.util.List<Summary> value)
Required - API name:policies
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policies
Required - API name:policies
-
policies
Required - API name:policies
-
addPolicies
Add a value topolicies(List)
, creating the list if needed. -
policies
public GetPolicyResponse.Builder policies(java.util.function.Function<Summary.Builder,ObjectBuilder<Summary>> fn)Setpolicies(List)
to a singleton list. -
addPolicies
public GetPolicyResponse.Builder addPolicies(java.util.function.Function<Summary.Builder,ObjectBuilder<Summary>> fn)Add a value topolicies(List)
, creating the list if needed. -
build
Builds aGetPolicyResponse
.- Specified by:
build
in interfaceObjectBuilder<GetPolicyResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-