Class ImmutableAstDecisionCell

java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstDecisionCell
All Implemented Interfaces:
AstDecision.AstDecisionCell, Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAstDecisionCell extends Object implements AstDecision.AstDecisionCell
Immutable implementation of AstDecision.AstDecisionCell.

Use the builder to create immutable instances: ImmutableAstDecisionCell.builder().

See Also:
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface AstDecision.AstDecisionCell
      Returns:
      The value of the id attribute
    • getHeader

      public String getHeader()
      Specified by:
      getHeader in interface AstDecision.AstDecisionCell
      Returns:
      The value of the header attribute
    • getValue

      @Nullable public String getValue()
      Specified by:
      getValue in interface AstDecision.AstDecisionCell
      Returns:
      The value of the value attribute
    • withId

      public final ImmutableAstDecisionCell withId(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
      Returns:
      A modified copy of the this object
    • withHeader

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

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableAstDecisionCell 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, header, value.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableAstDecisionCell copyOf(AstDecision.AstDecisionCell instance)
      Creates an immutable copy of a AstDecision.AstDecisionCell value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable AstDecisionCell instance
    • builder

      public static ImmutableAstDecisionCell.Builder builder()
      Creates a builder for ImmutableAstDecisionCell.
       ImmutableAstDecisionCell.builder()
          .id(String) // required id
          .header(String) // required header
          .value(String | null) // nullable value
          .build();
       
      Returns:
      A new ImmutableAstDecisionCell builder