Class TimeOfYear.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TimeOfYear.Builder>
co.elastic.clients.elasticsearch.watcher.TimeOfYear.Builder
- All Implemented Interfaces:
WithJson<TimeOfYear.Builder>
,ObjectBuilder<TimeOfYear>
- Enclosing class:
- TimeOfYear
public static class TimeOfYear.Builder extends WithJsonObjectBuilderBase<TimeOfYear.Builder> implements ObjectBuilder<TimeOfYear>
Builder for
TimeOfYear
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TimeOfYear.Builder
at(java.lang.String value, java.lang.String... values)
Required - API name:at
TimeOfYear.Builder
at(java.util.List<java.lang.String> list)
Required - API name:at
TimeOfYear
build()
Builds aTimeOfYear
.TimeOfYear.Builder
int_(Month value, Month... values)
Required - API name:int
TimeOfYear.Builder
int_(java.util.List<Month> list)
Required - API name:int
TimeOfYear.Builder
on(java.lang.Integer value, java.lang.Integer... values)
Required - API name:on
TimeOfYear.Builder
on(java.util.List<java.lang.Integer> list)
Required - API name:on
protected TimeOfYear.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
at
Required - API name:at
Adds all elements of
list
toat
. -
at
Required - API name:at
Adds one or more values to
at
. -
int_
Required - API name:int
Adds all elements of
list
toint_
. -
int_
Required - API name:int
Adds one or more values to
int_
. -
on
Required - API name:on
Adds all elements of
list
toon
. -
on
Required - API name:on
Adds one or more values to
on
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TimeOfYear.Builder>
-
build
Builds aTimeOfYear
.- Specified by:
build
in interfaceObjectBuilder<TimeOfYear>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-