Class ImmutableEntity.Builder<T extends StencilClient.EntityBody>

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableEntity.Builder<T> from​(StencilClient.Entity<T> instance)
        Fill a builder with attribute values from the provided Entity instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • id

        @CanIgnoreReturnValue
        public final ImmutableEntity.Builder<T> id​(String id)
        Initializes the value for the id attribute.
        Parameters:
        id - The value for id
        Returns:
        this builder for use in a chained invocation
      • body

        @CanIgnoreReturnValue
        public final ImmutableEntity.Builder<T> body​(T body)
        Initializes the value for the body attribute.
        Parameters:
        body - The value for body
        Returns:
        this builder for use in a chained invocation