Package io.resys.hdes.client.api.ast
Class ImmutableAstService
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstService
- All Implemented Interfaces:
AstBody,AstService,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAstService
extends Object
implements AstService
Immutable implementation of
AstService.
Use the builder to create immutable instances:
ImmutableAstService.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAstService.Nested 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.AstService
AstService.AstServiceRef, AstService.AstServiceType, AstService.ServiceExecutorType, AstService.ServiceExecutorType0<O extends Serializable>, AstService.ServiceExecutorType1<I,O extends Serializable>, AstService.ServiceExecutorType2<I, I2, O extends Serializable> -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableAstService.Builderbuilder()Creates a builder forImmutableAstService.static ImmutableAstServicecopyOf(AstService instance) Creates an immutable copy of aAstServicevalue.booleanThis instance is equal to all instances ofImmutableAstServicethat have equal attribute values.Class<? extends AstService.ServiceExecutorType>com.google.common.collect.ImmutableList<AstBody.AstCommandMessage>getName()com.google.common.collect.ImmutableList<AstService.AstServiceRef>getRefs()getValue()inthashCode()Computes a hash code from attributes:name,description,headers,bodyType,messages,beanType,value,typeDef0,typeDef1,returnDef1,refs,executorType.toString()Prints the immutable valueAstServicewith attribute values.final ImmutableAstServicewithBeanType(Class<? extends AstService.ServiceExecutorType> value) Copy the current immutable object by setting a value for thebeanTypeattribute.final ImmutableAstServicewithBodyType(AstBody.AstBodyType value) Copy the current immutable object by setting a value for thebodyTypeattribute.final ImmutableAstServicewithDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.final ImmutableAstServiceCopy the current immutable object by setting a value for theexecutorTypeattribute.final ImmutableAstServicewithHeaders(AstBody.Headers value) Copy the current immutable object by setting a value for theheadersattribute.final ImmutableAstServicewithMessages(AstBody.AstCommandMessage... elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableAstServicewithMessages(Iterable<? extends AstBody.AstCommandMessage> elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableAstServiceCopy the current immutable object by setting a value for thenameattribute.final ImmutableAstServicewithRefs(AstService.AstServiceRef... elements) Copy the current immutable object with elements that replace the content ofrefs.final ImmutableAstServicewithRefs(Iterable<? extends AstService.AstServiceRef> elements) Copy the current immutable object with elements that replace the content ofrefs.final ImmutableAstServicewithReturnDef1(TypeDef value) Copy the current immutable object by setting a value for thereturnDef1attribute.final ImmutableAstServicewithTypeDef0(TypeDef value) Copy the current immutable object by setting a value for thetypeDef0attribute.final ImmutableAstServicewithTypeDef1(TypeDef value) Copy the current immutable object by setting a value for thetypeDef1attribute.final ImmutableAstServiceCopy the current immutable object by setting a value for thevalueattribute.
-
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
-
getBeanType
- Specified by:
getBeanTypein interfaceAstService- Returns:
- The value of the
beanTypeattribute
-
getValue
- Specified by:
getValuein interfaceAstService- Returns:
- The value of the
valueattribute
-
getTypeDef0
- Specified by:
getTypeDef0in interfaceAstService- Returns:
- The value of the
typeDef0attribute
-
getTypeDef1
- Specified by:
getTypeDef1in interfaceAstService- Returns:
- The value of the
typeDef1attribute
-
getReturnDef1
- Specified by:
getReturnDef1in interfaceAstService- Returns:
- The value of the
returnDef1attribute
-
getRefs
- Specified by:
getRefsin interfaceAstService- Returns:
- The value of the
refsattribute
-
getExecutorType
- Specified by:
getExecutorTypein interfaceAstService- Returns:
- The value of the
executorTypeattribute
-
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
public final ImmutableAstService withMessages(Iterable<? extends AstBody.AstCommandMessage> elements) 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
-
withBeanType
public final ImmutableAstService withBeanType(Class<? extends AstService.ServiceExecutorType> value) Copy the current immutable object by setting a value for thebeanTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for beanType- Returns:
- A modified copy of the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy of the
thisobject
-
withTypeDef0
Copy the current immutable object by setting a value for thetypeDef0attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for typeDef0 (can benull)- Returns:
- A modified copy of the
thisobject
-
withTypeDef1
Copy the current immutable object by setting a value for thetypeDef1attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for typeDef1 (can benull)- Returns:
- A modified copy of the
thisobject
-
withReturnDef1
Copy the current immutable object by setting a value for thereturnDef1attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for returnDef1 (can benull)- Returns:
- A modified copy of the
thisobject
-
withRefs
Copy the current immutable object with elements that replace the content ofrefs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRefs
Copy the current immutable object with elements that replace the content ofrefs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of refs elements to set- Returns:
- A modified copy of
thisobject
-
withExecutorType
Copy the current immutable object by setting a value for theexecutorTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for executorType- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAstServicethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,description,headers,bodyType,messages,beanType,value,typeDef0,typeDef1,returnDef1,refs,executorType. -
toString
Prints the immutable valueAstServicewith attribute values. -
copyOf
Creates an immutable copy of aAstServicevalue. 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 AstService instance
-
builder
Creates a builder forImmutableAstService.ImmutableAstService.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 .beanType(Class<? extends io.resys.hdes.client.api.ast.AstService.ServiceExecutorType>) // requiredbeanType.value(String) // requiredvalue.typeDef0(io.resys.hdes.client.api.ast.TypeDef | null) // nullabletypeDef0.typeDef1(io.resys.hdes.client.api.ast.TypeDef | null) // nullabletypeDef1.returnDef1(io.resys.hdes.client.api.ast.TypeDef | null) // nullablereturnDef1.addRefs|addAllRefs(io.resys.hdes.client.api.ast.AstService.AstServiceRef) //refselements .executorType(io.resys.hdes.client.api.ast.AstService.AstServiceType) // requiredexecutorType.build();- Returns:
- A new ImmutableAstService builder
-