Class ImmutableProgramAssociation.Builder
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableProgramAssociation.Builder
- Enclosing class:
- ImmutableProgramAssociation
Builds instances of type
ImmutableProgramAssociation.
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 TypeMethodDescriptionbuild()Builds a newImmutableProgramAssociation.from(ProgramEnvir.ProgramAssociation instance) Fill a builder with attribute values from the providedProgramAssociationinstance.Initializes the optional valueidto id.Initializes the optional valueidto id.Initializes the value for theownerattribute.Initializes the value for therefattribute.refStatus(ProgramEnvir.ProgramStatus refStatus) Initializes the value for therefStatusattribute.refType(AstBody.AstBodyType refType) Initializes the value for therefTypeattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableProgramAssociation.Builder from(ProgramEnvir.ProgramAssociation instance) Fill a builder with attribute values from the providedProgramAssociationinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the optional valueidto id.- Parameters:
id- The value for id- Returns:
thisbuilder for chained invocation
-
id
Initializes the optional valueidto id.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
ref
Initializes the value for therefattribute.- Parameters:
ref- The value for ref- Returns:
thisbuilder for use in a chained invocation
-
refType
@CanIgnoreReturnValue public final ImmutableProgramAssociation.Builder refType(AstBody.AstBodyType refType) Initializes the value for therefTypeattribute.- Parameters:
refType- The value for refType- Returns:
thisbuilder for use in a chained invocation
-
refStatus
@CanIgnoreReturnValue public final ImmutableProgramAssociation.Builder refStatus(ProgramEnvir.ProgramStatus refStatus) Initializes the value for therefStatusattribute.- Parameters:
refStatus- The value for refStatus- Returns:
thisbuilder for use in a chained invocation
-
owner
Initializes the value for theownerattribute.- Parameters:
owner- The value for owner- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableProgramAssociation.- Returns:
- An immutable instance of ProgramAssociation
- Throws:
IllegalStateException- if any required attributes are missing
-