Class Occurrence


  • public class Occurrence
    extends java.lang.Object
    Occurrence

    Occurrences to either create or modify.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Occurrence.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)  
    • 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.
      • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object