Class ImmutableProgramAssociation
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableProgramAssociation
- All Implemented Interfaces:
ProgramEnvir.ProgramAssociation
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableProgramAssociation
extends Object
implements ProgramEnvir.ProgramAssociation
Immutable implementation of
ProgramEnvir.ProgramAssociation.
Use the builder to create immutable instances:
ImmutableProgramAssociation.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProgramAssociation. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProgramAssociation.static ImmutableProgramAssociationcopyOf(ProgramEnvir.ProgramAssociation instance) Creates an immutable copy of aProgramEnvir.ProgramAssociationvalue.booleanThis instance is equal to all instances ofImmutableProgramAssociationthat have equal attribute values.getId()getOwner()getRef()inthashCode()Computes a hash code from attributes:id,ref,refType,refStatus,owner.toString()Prints the immutable valueProgramAssociationwith attribute values.Copy the current immutable object by setting a present value for the optionalidattribute.Copy the current immutable object by setting an optional value for theidattribute.Copy the current immutable object by setting a value for theownerattribute.Copy the current immutable object by setting a value for therefattribute.Copy the current immutable object by setting a value for therefStatusattribute.withRefType(AstBody.AstBodyType value) Copy the current immutable object by setting a value for therefTypeattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceProgramEnvir.ProgramAssociation- Returns:
- The value of the
idattribute
-
getRef
- Specified by:
getRefin interfaceProgramEnvir.ProgramAssociation- Returns:
- The value of the
refattribute
-
getRefType
- Specified by:
getRefTypein interfaceProgramEnvir.ProgramAssociation- Returns:
- The value of the
refTypeattribute
-
getRefStatus
- Specified by:
getRefStatusin interfaceProgramEnvir.ProgramAssociation- Returns:
- The value of the
refStatusattribute
-
getOwner
- Specified by:
getOwnerin interfaceProgramEnvir.ProgramAssociation- Returns:
- The value of the
ownerattribute
-
withId
Copy the current immutable object by setting a present value for the optionalidattribute.- Parameters:
value- The value for id- Returns:
- A modified copy of
thisobject
-
withId
Copy the current immutable object by setting an optional value for theidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for id- Returns:
- A modified copy of
thisobject
-
withRef
Copy the current immutable object by setting a value for therefattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ref- Returns:
- A modified copy of the
thisobject
-
withRefType
Copy the current immutable object by setting a value for therefTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for refType- Returns:
- A modified copy of the
thisobject
-
withRefStatus
Copy the current immutable object by setting a value for therefStatusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for refStatus- Returns:
- A modified copy of the
thisobject
-
withOwner
Copy the current immutable object by setting a value for theownerattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for owner- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableProgramAssociationthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,ref,refType,refStatus,owner. -
toString
Prints the immutable valueProgramAssociationwith attribute values. -
copyOf
Creates an immutable copy of aProgramEnvir.ProgramAssociationvalue. 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 ProgramAssociation instance
-
builder
Creates a builder forImmutableProgramAssociation.ImmutableProgramAssociation.builder() .id(String) // optionalid.ref(String) // requiredref.refType(io.resys.hdes.client.api.ast.AstBody.AstBodyType) // requiredrefType.refStatus(io.resys.hdes.client.api.programs.ProgramEnvir.ProgramStatus) // requiredrefStatus.owner(Boolean) // requiredowner.build();- Returns:
- A new ImmutableProgramAssociation builder
-