Package io.moov.sdk.models.components
Class Occurrence
- java.lang.Object
-
- io.moov.sdk.models.components.Occurrence
-
public class Occurrence extends java.lang.ObjectOccurrenceOccurrences to either create or modify.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOccurrence.Builder
-
Constructor Summary
Constructors Constructor Description Occurrence()Occurrence(java.util.Optional<java.lang.Boolean> canceled, java.util.Optional<java.lang.String> occurrenceID, java.util.Optional<java.time.OffsetDateTime> runOn, java.util.Optional<? extends RunTransfer> runTransfer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Occurrence.Builderbuilder()java.util.Optional<java.lang.Boolean>canceled()If set to true, will cancel the occurrence.booleanequals(java.lang.Object o)inthashCode()java.util.Optional<java.lang.String>occurrenceID()If set this defines what occurrence to modify, if invalid will fail the request.java.util.Optional<java.time.OffsetDateTime>runOn()Timestamp to run the transfer after.java.util.Optional<RunTransfer>runTransfer()Defines the attributes of a transfer.java.lang.StringtoString()OccurrencewithCanceled(boolean canceled)If set to true, will cancel the occurrence.OccurrencewithCanceled(java.util.Optional<java.lang.Boolean> canceled)If set to true, will cancel the occurrence.OccurrencewithOccurrenceID(java.lang.String occurrenceID)If set this defines what occurrence to modify, if invalid will fail the request.OccurrencewithOccurrenceID(java.util.Optional<java.lang.String> occurrenceID)If set this defines what occurrence to modify, if invalid will fail the request.OccurrencewithRunOn(java.time.OffsetDateTime runOn)Timestamp to run the transfer after.OccurrencewithRunOn(java.util.Optional<java.time.OffsetDateTime> runOn)Timestamp to run the transfer after.OccurrencewithRunTransfer(RunTransfer runTransfer)Defines the attributes of a transfer.OccurrencewithRunTransfer(java.util.Optional<? extends RunTransfer> runTransfer)Defines the attributes of a transfer.
-
-
-
Constructor Detail
-
Occurrence
public Occurrence(java.util.Optional<java.lang.Boolean> canceled, java.util.Optional<java.lang.String> occurrenceID, java.util.Optional<java.time.OffsetDateTime> runOn, java.util.Optional<? extends RunTransfer> runTransfer)
-
Occurrence
public Occurrence()
-
-
Method Detail
-
canceled
public 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 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 java.util.Optional<java.time.OffsetDateTime> runOn()
Timestamp to run the transfer after. Value must be into the future.
-
runTransfer
public java.util.Optional<RunTransfer> runTransfer()
Defines the attributes of a transfer.
-
builder
public static final Occurrence.Builder builder()
-
withCanceled
public Occurrence withCanceled(boolean canceled)
If set to true, will cancel the occurrence. If set false will resume the occurrence. If unset leaves the value unchanged.
-
withCanceled
public Occurrence withCanceled(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.
-
withOccurrenceID
public Occurrence withOccurrenceID(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.
-
withOccurrenceID
public Occurrence withOccurrenceID(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.
-
withRunOn
public Occurrence withRunOn(java.time.OffsetDateTime runOn)
Timestamp to run the transfer after. Value must be into the future.
-
withRunOn
public Occurrence withRunOn(java.util.Optional<java.time.OffsetDateTime> runOn)
Timestamp to run the transfer after. Value must be into the future.
-
withRunTransfer
public Occurrence withRunTransfer(RunTransfer runTransfer)
Defines the attributes of a transfer.
-
withRunTransfer
public Occurrence withRunTransfer(java.util.Optional<? extends RunTransfer> runTransfer)
Defines the attributes of a transfer.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-