Package io.resys.hdes.client.api.ast
Class ImmutableAstFlow
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstFlow
- All Implemented Interfaces:
AstBody,AstFlow,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAstFlow
extends Object
implements AstFlow
Immutable implementation of
AstFlow.
Use the builder to create immutable instances:
ImmutableAstFlow.builder().
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.resys.hdes.client.api.ast.AstBody
AstBody.AstBodyType, AstBody.AstCommandMessage, AstBody.AstCommandRange, AstBody.AstSource, AstBody.CommandMessageType, AstBody.HeadersNested classes/interfaces inherited from interface io.resys.hdes.client.api.ast.AstFlow
AstFlow.AstFlowInputNode, AstFlow.AstFlowInputType, AstFlow.AstFlowNode, AstFlow.AstFlowRefNode, AstFlow.AstFlowRoot, AstFlow.AstFlowSwitchNode, AstFlow.AstFlowTaskNode, AstFlow.FlowAstAutocomplete -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableAstFlow.Builderbuilder()Creates a builder forImmutableAstFlow.static ImmutableAstFlowCreates an immutable copy of aAstFlowvalue.booleanThis instance is equal to all instances ofImmutableAstFlowthat have equal attribute values.com.google.common.collect.ImmutableList<AstFlow.FlowAstAutocomplete>com.google.common.collect.ImmutableList<AstBody.AstCommandMessage>getName()getSrc()inthashCode()Computes a hash code from attributes:name,description,headers,bodyType,messages,src,autocomplete.toString()Prints the immutable valueAstFlowwith attribute values.final ImmutableAstFlowwithAutocomplete(AstFlow.FlowAstAutocomplete... elements) Copy the current immutable object with elements that replace the content ofautocomplete.final ImmutableAstFlowwithAutocomplete(Iterable<? extends AstFlow.FlowAstAutocomplete> elements) Copy the current immutable object with elements that replace the content ofautocomplete.final ImmutableAstFlowwithBodyType(AstBody.AstBodyType value) Copy the current immutable object by setting a value for thebodyTypeattribute.final ImmutableAstFlowwithDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.final ImmutableAstFlowwithHeaders(AstBody.Headers value) Copy the current immutable object by setting a value for theheadersattribute.final ImmutableAstFlowwithMessages(AstBody.AstCommandMessage... elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableAstFlowwithMessages(Iterable<? extends AstBody.AstCommandMessage> elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableAstFlowCopy the current immutable object by setting a value for thenameattribute.final ImmutableAstFlowwithSrc(AstFlow.AstFlowRoot value) Copy the current immutable object by setting a value for thesrcattribute.
-
Method Details
-
getName
-
getDescription
- Specified by:
getDescriptionin interfaceAstBody- Returns:
- The value of the
descriptionattribute
-
getHeaders
- Specified by:
getHeadersin interfaceAstBody- Returns:
- The value of the
headersattribute
-
getBodyType
- Specified by:
getBodyTypein interfaceAstBody- Returns:
- The value of the
bodyTypeattribute
-
getMessages
- Specified by:
getMessagesin interfaceAstBody- Returns:
- The value of the
messagesattribute
-
getSrc
-
getAutocomplete
- Specified by:
getAutocompletein interfaceAstFlow- Returns:
- The value of the
autocompleteattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withHeaders
Copy the current immutable object by setting a value for theheadersattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for headers- Returns:
- A modified copy of the
thisobject
-
withBodyType
Copy the current immutable object by setting a value for thebodyTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bodyType- Returns:
- A modified copy of the
thisobject
-
withMessages
Copy the current immutable object with elements that replace the content ofmessages.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withMessages
Copy the current immutable object with elements that replace the content ofmessages. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of messages elements to set- Returns:
- A modified copy of
thisobject
-
withSrc
Copy the current immutable object by setting a value for thesrcattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for src- Returns:
- A modified copy of the
thisobject
-
withAutocomplete
Copy the current immutable object with elements that replace the content ofautocomplete.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAutocomplete
public final ImmutableAstFlow withAutocomplete(Iterable<? extends AstFlow.FlowAstAutocomplete> elements) Copy the current immutable object with elements that replace the content ofautocomplete. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of autocomplete elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableAstFlowthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,description,headers,bodyType,messages,src,autocomplete. -
toString
Prints the immutable valueAstFlowwith attribute values. -
copyOf
Creates an immutable copy of aAstFlowvalue. 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 AstFlow instance
-
builder
Creates a builder forImmutableAstFlow.ImmutableAstFlow.builder() .name(String) // requiredname.description(String | null) // nullabledescription.headers(io.resys.hdes.client.api.ast.AstBody.Headers) // requiredheaders.bodyType(io.resys.hdes.client.api.ast.AstBody.AstBodyType) // requiredbodyType.addMessages|addAllMessages(io.resys.hdes.client.api.ast.AstBody.AstCommandMessage) //messageselements .src(io.resys.hdes.client.api.ast.AstFlow.AstFlowRoot) // requiredsrc.addAutocomplete|addAllAutocomplete(io.resys.hdes.client.api.ast.AstFlow.FlowAstAutocomplete) //autocompleteelements .build();- Returns:
- A new ImmutableAstFlow builder
-