Class ImmutableAstTagSummary

java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstTagSummary
All Implemented Interfaces:
AstTagSummary, Serializable

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

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

See Also:
  • Method Details

    • getTagName

      public String getTagName()
      Specified by:
      getTagName in interface AstTagSummary
      Returns:
      The value of the tagName attribute
    • getFlows

      public com.google.common.collect.ImmutableList<AstTagSummary.SummaryItem> getFlows()
      Specified by:
      getFlows in interface AstTagSummary
      Returns:
      The value of the flows attribute
    • getDecisions

      public com.google.common.collect.ImmutableList<AstTagSummary.SummaryItem> getDecisions()
      Specified by:
      getDecisions in interface AstTagSummary
      Returns:
      The value of the decisions attribute
    • getServices

      public com.google.common.collect.ImmutableList<AstTagSummary.SummaryItem> getServices()
      Specified by:
      getServices in interface AstTagSummary
      Returns:
      The value of the services attribute
    • withTagName

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

      public final ImmutableAstTagSummary withFlows(AstTagSummary.SummaryItem... elements)
      Copy the current immutable object with elements that replace the content of flows.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withFlows

      public final ImmutableAstTagSummary withFlows(Iterable<? extends AstTagSummary.SummaryItem> elements)
      Copy the current immutable object with elements that replace the content of flows. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of flows elements to set
      Returns:
      A modified copy of this object
    • withDecisions

      public final ImmutableAstTagSummary withDecisions(AstTagSummary.SummaryItem... elements)
      Copy the current immutable object with elements that replace the content of decisions.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withDecisions

      public final ImmutableAstTagSummary withDecisions(Iterable<? extends AstTagSummary.SummaryItem> elements)
      Copy the current immutable object with elements that replace the content of decisions. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of decisions elements to set
      Returns:
      A modified copy of this object
    • withServices

      public final ImmutableAstTagSummary withServices(AstTagSummary.SummaryItem... elements)
      Copy the current immutable object with elements that replace the content of services.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withServices

      public final ImmutableAstTagSummary withServices(Iterable<? extends AstTagSummary.SummaryItem> elements)
      Copy the current immutable object with elements that replace the content of services. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of services elements to set
      Returns:
      A modified copy of this object
    • equals

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

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

      public static ImmutableAstTagSummary copyOf(AstTagSummary instance)
      Creates an immutable copy of a AstTagSummary 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 AstTagSummary instance
    • builder

      public static ImmutableAstTagSummary.Builder builder()
      Creates a builder for ImmutableAstTagSummary.
       ImmutableAstTagSummary.builder()
          .tagName(String) // required tagName
          .addFlows|addAllFlows(io.resys.hdes.client.api.ast.AstTagSummary.SummaryItem) // flows elements
          .addDecisions|addAllDecisions(io.resys.hdes.client.api.ast.AstTagSummary.SummaryItem) // decisions elements
          .addServices|addAllServices(io.resys.hdes.client.api.ast.AstTagSummary.SummaryItem) // services elements
          .build();
       
      Returns:
      A new ImmutableAstTagSummary builder