Class ImmutableFormRevisionDocument

    • Method Detail

      • getId

        @Nullable
        public String getId()
        Specified by:
        getId in interface DialobDocument
        Returns:
        The value of the id attribute
      • getVersion

        @Nullable
        public String getVersion()
        Specified by:
        getVersion in interface DialobDocument
        Returns:
        The value of the version attribute
      • withId

        public final ImmutableFormRevisionDocument withId​(@Nullable
                                                          String value)
        Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for id (can be null)
        Returns:
        A modified copy of the this object
      • withVersion

        public final ImmutableFormRevisionDocument withVersion​(@Nullable
                                                               String value)
        Copy the current immutable object by setting a value for the version attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for version (can be null)
        Returns:
        A modified copy of the this object
      • withDescription

        public final ImmutableFormRevisionDocument withDescription​(@Nullable
                                                                   String value)
        Copy the current immutable object by setting a value for the description attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for description (can be null)
        Returns:
        A modified copy of the this object
      • withName

        public final ImmutableFormRevisionDocument withName​(String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for name
        Returns:
        A modified copy of the this object
      • withCreated

        public final ImmutableFormRevisionDocument withCreated​(LocalDateTime value)
        Copy the current immutable object by setting a value for the created attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for created
        Returns:
        A modified copy of the this object
      • withHead

        public final ImmutableFormRevisionDocument withHead​(String value)
        Copy the current immutable object by setting a value for the head attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for head
        Returns:
        A modified copy of the this object
      • withUpdated

        public final ImmutableFormRevisionDocument withUpdated​(LocalDateTime value)
        Copy the current immutable object by setting a value for the updated attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for updated
        Returns:
        A modified copy of the this object
      • withEntries

        public final ImmutableFormRevisionDocument withEntries​(Iterable<? extends DialobDocument.FormRevisionEntryDocument> elements)
        Copy the current immutable object with elements that replace the content of entries. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of entries elements to set
        Returns:
        A modified copy of this object
      • withType

        public final ImmutableFormRevisionDocument withType​(DialobDocument.DocumentType value)
        Copy the current immutable object by setting a value for the type attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for type
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableFormRevisionDocument that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: id, version, description, name, created, head, updated, entries, type.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value FormRevisionDocument with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • builder

        public static ImmutableFormRevisionDocument.Builder builder()
        Creates a builder for ImmutableFormRevisionDocument.
         ImmutableFormRevisionDocument.builder()
            .id(String | null) // nullable id
            .version(String | null) // nullable version
            .description(String | null) // nullable description
            .name(String) // required name
            .created(java.time.LocalDateTime) // required created
            .head(String) // required head
            .updated(java.time.LocalDateTime) // required updated
            .addEntries|addAllEntries(io.dialob.client.api.DialobDocument.FormRevisionEntryDocument) // entries elements
            .type(io.dialob.client.api.DialobDocument.DocumentType) // optional type
            .build();
         
        Returns:
        A new ImmutableFormRevisionDocument builder