Package io.resys.hdes.client.api.ast
Class ImmutableAstTagSummary.Builder
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstTagSummary.Builder
- Enclosing class:
- ImmutableAstTagSummary
Builds instances of type
ImmutableAstTagSummary.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllDecisions(Iterable<? extends AstTagSummary.SummaryItem> elements) Adds elements todecisionslist.addAllFlows(Iterable<? extends AstTagSummary.SummaryItem> elements) Adds elements toflowslist.addAllServices(Iterable<? extends AstTagSummary.SummaryItem> elements) Adds elements toserviceslist.addDecisions(AstTagSummary.SummaryItem element) Adds one element todecisionslist.addDecisions(AstTagSummary.SummaryItem... elements) Adds elements todecisionslist.addFlows(AstTagSummary.SummaryItem element) Adds one element toflowslist.addFlows(AstTagSummary.SummaryItem... elements) Adds elements toflowslist.addServices(AstTagSummary.SummaryItem element) Adds one element toserviceslist.addServices(AstTagSummary.SummaryItem... elements) Adds elements toserviceslist.build()Builds a newImmutableAstTagSummary.decisions(Iterable<? extends AstTagSummary.SummaryItem> elements) Sets or replaces all elements fordecisionslist.flows(Iterable<? extends AstTagSummary.SummaryItem> elements) Sets or replaces all elements forflowslist.from(AstTagSummary instance) Fill a builder with attribute values from the providedAstTagSummaryinstance.services(Iterable<? extends AstTagSummary.SummaryItem> elements) Sets or replaces all elements forserviceslist.Initializes the value for thetagNameattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedAstTagSummaryinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
tagName
Initializes the value for thetagNameattribute.- Parameters:
tagName- The value for tagName- Returns:
thisbuilder for use in a chained invocation
-
addFlows
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder addFlows(AstTagSummary.SummaryItem element) Adds one element toflowslist.- Parameters:
element- A flows element- Returns:
thisbuilder for use in a chained invocation
-
addFlows
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder addFlows(AstTagSummary.SummaryItem... elements) Adds elements toflowslist.- Parameters:
elements- An array of flows elements- Returns:
thisbuilder for use in a chained invocation
-
flows
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder flows(Iterable<? extends AstTagSummary.SummaryItem> elements) Sets or replaces all elements forflowslist.- Parameters:
elements- An iterable of flows elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFlows
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder addAllFlows(Iterable<? extends AstTagSummary.SummaryItem> elements) Adds elements toflowslist.- Parameters:
elements- An iterable of flows elements- Returns:
thisbuilder for use in a chained invocation
-
addDecisions
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder addDecisions(AstTagSummary.SummaryItem element) Adds one element todecisionslist.- Parameters:
element- A decisions element- Returns:
thisbuilder for use in a chained invocation
-
addDecisions
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder addDecisions(AstTagSummary.SummaryItem... elements) Adds elements todecisionslist.- Parameters:
elements- An array of decisions elements- Returns:
thisbuilder for use in a chained invocation
-
decisions
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder decisions(Iterable<? extends AstTagSummary.SummaryItem> elements) Sets or replaces all elements fordecisionslist.- Parameters:
elements- An iterable of decisions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllDecisions
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder addAllDecisions(Iterable<? extends AstTagSummary.SummaryItem> elements) Adds elements todecisionslist.- Parameters:
elements- An iterable of decisions elements- Returns:
thisbuilder for use in a chained invocation
-
addServices
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder addServices(AstTagSummary.SummaryItem element) Adds one element toserviceslist.- Parameters:
element- A services element- Returns:
thisbuilder for use in a chained invocation
-
addServices
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder addServices(AstTagSummary.SummaryItem... elements) Adds elements toserviceslist.- Parameters:
elements- An array of services elements- Returns:
thisbuilder for use in a chained invocation
-
services
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder services(Iterable<? extends AstTagSummary.SummaryItem> elements) Sets or replaces all elements forserviceslist.- Parameters:
elements- An iterable of services elements- Returns:
thisbuilder for use in a chained invocation
-
addAllServices
@CanIgnoreReturnValue public final ImmutableAstTagSummary.Builder addAllServices(Iterable<? extends AstTagSummary.SummaryItem> elements) Adds elements toserviceslist.- Parameters:
elements- An iterable of services elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAstTagSummary.- Returns:
- An immutable instance of AstTagSummary
- Throws:
IllegalStateException- if any required attributes are missing
-