Package io.moov.sdk.models.components
Class Occurrence.Builder
- java.lang.Object
-
- io.moov.sdk.models.components.Occurrence.Builder
-
- Enclosing class:
- Occurrence
public static final class Occurrence.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Occurrencebuild()Occurrence.Buildercanceled(boolean canceled)If set to true, will cancel the occurrence.Occurrence.Buildercanceled(java.util.Optional<java.lang.Boolean> canceled)If set to true, will cancel the occurrence.Occurrence.BuilderoccurrenceID(java.lang.String occurrenceID)If set this defines what occurrence to modify, if invalid will fail the request.Occurrence.BuilderoccurrenceID(java.util.Optional<java.lang.String> occurrenceID)If set this defines what occurrence to modify, if invalid will fail the request.Occurrence.BuilderrunOn(java.time.OffsetDateTime runOn)Timestamp to run the transfer after.Occurrence.BuilderrunOn(java.util.Optional<java.time.OffsetDateTime> runOn)Timestamp to run the transfer after.Occurrence.BuilderrunTransfer(RunTransfer runTransfer)Defines the attributes of a transfer.Occurrence.BuilderrunTransfer(java.util.Optional<? extends RunTransfer> runTransfer)Defines the attributes of a transfer.
-
-
-
Method Detail
-
canceled
public Occurrence.Builder canceled(boolean canceled)
If set to true, will cancel the occurrence. If set false will resume the occurrence. If unset leaves the value unchanged.
-
canceled
public Occurrence.Builder canceled(java.util.Optional<java.lang.Boolean> canceled)
If set to true, will cancel the occurrence. If set false will resume the occurrence. If unset leaves the value unchanged.
-
occurrenceID
public Occurrence.Builder occurrenceID(java.lang.String occurrenceID)
If set this defines what occurrence to modify, if invalid will fail the request. If null or "" it defines to add a new occurrence.
-
occurrenceID
public Occurrence.Builder occurrenceID(java.util.Optional<java.lang.String> occurrenceID)
If set this defines what occurrence to modify, if invalid will fail the request. If null or "" it defines to add a new occurrence.
-
runOn
public Occurrence.Builder runOn(java.time.OffsetDateTime runOn)
Timestamp to run the transfer after. Value must be into the future.
-
runOn
public Occurrence.Builder runOn(java.util.Optional<java.time.OffsetDateTime> runOn)
Timestamp to run the transfer after. Value must be into the future.
-
runTransfer
public Occurrence.Builder runTransfer(RunTransfer runTransfer)
Defines the attributes of a transfer.
-
runTransfer
public Occurrence.Builder runTransfer(java.util.Optional<? extends RunTransfer> runTransfer)
Defines the attributes of a transfer.
-
build
public Occurrence build()
-
-