Package io.resys.hdes.client.api.ast
Class ImmutableAstTag
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstTag
- All Implemented Interfaces:
AstBody,AstTag,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAstTag
extends Object
implements AstTag
Immutable implementation of
AstTag.
Use the builder to create immutable instances:
ImmutableAstTag.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.AstTag
AstTag.AstTagValue -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableAstTag.Builderbuilder()Creates a builder forImmutableAstTag.static ImmutableAstTagCreates an immutable copy of aAstTagvalue.booleanThis instance is equal to all instances ofImmutableAstTagthat have equal attribute values.com.google.common.collect.ImmutableList<AstBody.AstCommandMessage>getName()com.google.common.collect.ImmutableList<AstTag.AstTagValue>inthashCode()Computes a hash code from attributes:description,headers,bodyType,messages,name,commitId,created,values.toString()Prints the immutable valueAstTagwith attribute values.final ImmutableAstTagwithBodyType(AstBody.AstBodyType value) Copy the current immutable object by setting a value for thebodyTypeattribute.final ImmutableAstTagwithCommitId(String value) Copy the current immutable object by setting a value for thecommitIdattribute.final ImmutableAstTagwithCreated(LocalDateTime value) Copy the current immutable object by setting a value for thecreatedattribute.final ImmutableAstTagwithDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.final ImmutableAstTagwithHeaders(AstBody.Headers value) Copy the current immutable object by setting a value for theheadersattribute.final ImmutableAstTagwithMessages(AstBody.AstCommandMessage... elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableAstTagwithMessages(Iterable<? extends AstBody.AstCommandMessage> elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableAstTagCopy the current immutable object by setting a value for thenameattribute.final ImmutableAstTagwithValues(AstTag.AstTagValue... elements) Copy the current immutable object with elements that replace the content ofvalues.final ImmutableAstTagwithValues(Iterable<? extends AstTag.AstTagValue> elements) Copy the current immutable object with elements that replace the content ofvalues.
-
Method Details
-
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
-
getName
-
getCommitId
- Specified by:
getCommitIdin interfaceAstTag- Returns:
- The value of the
commitIdattribute
-
getCreated
- Specified by:
getCreatedin interfaceAstTag- Returns:
- The value of the
createdattribute
-
getValues
-
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
-
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
-
withCommitId
Copy the current immutable object by setting a value for thecommitIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commitId (can benull)- Returns:
- A modified copy of the
thisobject
-
withCreated
Copy the current immutable object by setting a value for thecreatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for created- Returns:
- A modified copy of the
thisobject
-
withValues
Copy the current immutable object with elements that replace the content ofvalues.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValues
Copy the current immutable object with elements that replace the content ofvalues. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of values elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableAstTagthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:description,headers,bodyType,messages,name,commitId,created,values. -
toString
Prints the immutable valueAstTagwith attribute values. -
copyOf
Creates an immutable copy of aAstTagvalue. 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 AstTag instance
-
builder
Creates a builder forImmutableAstTag.ImmutableAstTag.builder() .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 .name(String) // requiredname.commitId(String | null) // nullablecommitId.created(java.time.LocalDateTime) // requiredcreated.addValues|addAllValues(io.resys.hdes.client.api.ast.AstTag.AstTagValue) //valueselements .build();- Returns:
- A new ImmutableAstTag builder
-