Package io.resys.hdes.client.api
Class ImmutableComposerState.Builder
java.lang.Object
io.resys.hdes.client.api.ImmutableComposerState.Builder
- Enclosing class:
- ImmutableComposerState
Builds instances of type
ImmutableComposerState.
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 TypeMethodDescriptionbranches(Map<String, ? extends HdesComposer.ComposerEntity<AstBranch>> entries) Sets or replaces all mappings from the specified map as entries for thebranchesmap.build()Builds a newImmutableComposerState.decisions(Map<String, ? extends HdesComposer.ComposerEntity<AstDecision>> entries) Sets or replaces all mappings from the specified map as entries for thedecisionsmap.flows(Map<String, ? extends HdesComposer.ComposerEntity<AstFlow>> entries) Sets or replaces all mappings from the specified map as entries for theflowsmap.from(HdesComposer.ComposerState instance) Fill a builder with attribute values from the providedComposerStateinstance.putAllBranches(Map<String, ? extends HdesComposer.ComposerEntity<AstBranch>> entries) Put all mappings from the specified map as entries tobranchesmap.putAllDecisions(Map<String, ? extends HdesComposer.ComposerEntity<AstDecision>> entries) Put all mappings from the specified map as entries todecisionsmap.putAllFlows(Map<String, ? extends HdesComposer.ComposerEntity<AstFlow>> entries) Put all mappings from the specified map as entries toflowsmap.putAllServices(Map<String, ? extends HdesComposer.ComposerEntity<AstService>> entries) Put all mappings from the specified map as entries toservicesmap.putAllTags(Map<String, ? extends HdesComposer.ComposerEntity<AstTag>> entries) Put all mappings from the specified map as entries totagsmap.putBranches(String key, HdesComposer.ComposerEntity<AstBranch> value) Put one entry to thebranchesmap.putBranches(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstBranch>> entry) Put one entry to thebranchesmap.putDecisions(String key, HdesComposer.ComposerEntity<AstDecision> value) Put one entry to thedecisionsmap.putDecisions(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstDecision>> entry) Put one entry to thedecisionsmap.putFlows(String key, HdesComposer.ComposerEntity<AstFlow> value) Put one entry to theflowsmap.putFlows(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstFlow>> entry) Put one entry to theflowsmap.putServices(String key, HdesComposer.ComposerEntity<AstService> value) Put one entry to theservicesmap.putServices(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstService>> entry) Put one entry to theservicesmap.putTags(String key, HdesComposer.ComposerEntity<AstTag> value) Put one entry to thetagsmap.putTags(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstTag>> entry) Put one entry to thetagsmap.services(Map<String, ? extends HdesComposer.ComposerEntity<AstService>> entries) Sets or replaces all mappings from the specified map as entries for theservicesmap.tags(Map<String, ? extends HdesComposer.ComposerEntity<AstTag>> entries) Sets or replaces all mappings from the specified map as entries for thetagsmap.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableComposerState.Builder from(HdesComposer.ComposerState instance) Fill a builder with attribute values from the providedComposerStateinstance. 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
-
putTags
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putTags(String key, HdesComposer.ComposerEntity<AstTag> value) Put one entry to thetagsmap.- Parameters:
key- The key in the tags mapvalue- The associated value in the tags map- Returns:
thisbuilder for use in a chained invocation
-
putTags
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putTags(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstTag>> entry) Put one entry to thetagsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
tags
@CanIgnoreReturnValue public final ImmutableComposerState.Builder tags(Map<String, ? extends HdesComposer.ComposerEntity<AstTag>> entries) Sets or replaces all mappings from the specified map as entries for thetagsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the tags map- Returns:
thisbuilder for use in a chained invocation
-
putAllTags
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putAllTags(Map<String, ? extends HdesComposer.ComposerEntity<AstTag>> entries) Put all mappings from the specified map as entries totagsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the tags map- Returns:
thisbuilder for use in a chained invocation
-
putFlows
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putFlows(String key, HdesComposer.ComposerEntity<AstFlow> value) Put one entry to theflowsmap.- Parameters:
key- The key in the flows mapvalue- The associated value in the flows map- Returns:
thisbuilder for use in a chained invocation
-
putFlows
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putFlows(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstFlow>> entry) Put one entry to theflowsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
flows
@CanIgnoreReturnValue public final ImmutableComposerState.Builder flows(Map<String, ? extends HdesComposer.ComposerEntity<AstFlow>> entries) Sets or replaces all mappings from the specified map as entries for theflowsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the flows map- Returns:
thisbuilder for use in a chained invocation
-
putAllFlows
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putAllFlows(Map<String, ? extends HdesComposer.ComposerEntity<AstFlow>> entries) Put all mappings from the specified map as entries toflowsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the flows map- Returns:
thisbuilder for use in a chained invocation
-
putServices
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putServices(String key, HdesComposer.ComposerEntity<AstService> value) Put one entry to theservicesmap.- Parameters:
key- The key in the services mapvalue- The associated value in the services map- Returns:
thisbuilder for use in a chained invocation
-
putServices
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putServices(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstService>> entry) Put one entry to theservicesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
services
@CanIgnoreReturnValue public final ImmutableComposerState.Builder services(Map<String, ? extends HdesComposer.ComposerEntity<AstService>> entries) Sets or replaces all mappings from the specified map as entries for theservicesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the services map- Returns:
thisbuilder for use in a chained invocation
-
putAllServices
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putAllServices(Map<String, ? extends HdesComposer.ComposerEntity<AstService>> entries) Put all mappings from the specified map as entries toservicesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the services map- Returns:
thisbuilder for use in a chained invocation
-
putDecisions
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putDecisions(String key, HdesComposer.ComposerEntity<AstDecision> value) Put one entry to thedecisionsmap.- Parameters:
key- The key in the decisions mapvalue- The associated value in the decisions map- Returns:
thisbuilder for use in a chained invocation
-
putDecisions
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putDecisions(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstDecision>> entry) Put one entry to thedecisionsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
decisions
@CanIgnoreReturnValue public final ImmutableComposerState.Builder decisions(Map<String, ? extends HdesComposer.ComposerEntity<AstDecision>> entries) Sets or replaces all mappings from the specified map as entries for thedecisionsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the decisions map- Returns:
thisbuilder for use in a chained invocation
-
putAllDecisions
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putAllDecisions(Map<String, ? extends HdesComposer.ComposerEntity<AstDecision>> entries) Put all mappings from the specified map as entries todecisionsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the decisions map- Returns:
thisbuilder for use in a chained invocation
-
putBranches
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putBranches(String key, HdesComposer.ComposerEntity<AstBranch> value) Put one entry to thebranchesmap.- Parameters:
key- The key in the branches mapvalue- The associated value in the branches map- Returns:
thisbuilder for use in a chained invocation
-
putBranches
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putBranches(Map.Entry<String, ? extends HdesComposer.ComposerEntity<AstBranch>> entry) Put one entry to thebranchesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
branches
@CanIgnoreReturnValue public final ImmutableComposerState.Builder branches(Map<String, ? extends HdesComposer.ComposerEntity<AstBranch>> entries) Sets or replaces all mappings from the specified map as entries for thebranchesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the branches map- Returns:
thisbuilder for use in a chained invocation
-
putAllBranches
@CanIgnoreReturnValue public final ImmutableComposerState.Builder putAllBranches(Map<String, ? extends HdesComposer.ComposerEntity<AstBranch>> entries) Put all mappings from the specified map as entries tobranchesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the branches map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableComposerState.- Returns:
- An immutable instance of ComposerState
- Throws:
IllegalStateException- if any required attributes are missing
-