Class ImmutableDecisionRowAccepts

java.lang.Object
io.resys.hdes.client.api.programs.ImmutableDecisionRowAccepts
All Implemented Interfaces:
DecisionProgram.DecisionRowAccepts, Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDecisionRowAccepts extends Object implements DecisionProgram.DecisionRowAccepts
Immutable implementation of DecisionProgram.DecisionRowAccepts.

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

See Also:
  • Method Details

    • getKey

      public TypeDef getKey()
      Specified by:
      getKey in interface DecisionProgram.DecisionRowAccepts
      Returns:
      The value of the key attribute
    • getExpression

      public ExpressionProgram getExpression()
      Specified by:
      getExpression in interface DecisionProgram.DecisionRowAccepts
      Returns:
      The value of the expression attribute
    • withKey

      public final ImmutableDecisionRowAccepts withKey(TypeDef value)
      Copy the current immutable object by setting a value for the key attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for key
      Returns:
      A modified copy of the this object
    • withExpression

      public final ImmutableDecisionRowAccepts withExpression(ExpressionProgram value)
      Copy the current immutable object by setting a value for the expression attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for expression
      Returns:
      A modified copy of the this object
    • equals

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

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

      Creates an immutable copy of a DecisionProgram.DecisionRowAccepts 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 DecisionRowAccepts instance
    • builder

      public static ImmutableDecisionRowAccepts.Builder builder()
      Creates a builder for ImmutableDecisionRowAccepts.
       ImmutableDecisionRowAccepts.builder()
          .key(io.resys.hdes.client.api.ast.TypeDef) // required key
          .expression(io.resys.hdes.client.api.programs.ExpressionProgram) // required expression
          .build();
       
      Returns:
      A new ImmutableDecisionRowAccepts builder