Class MEARuntimeSearch.Builder
java.lang.Object
com.io7m.montarre.adoptium.MEARuntimeSearch.Builder
- Enclosing class:
MEARuntimeSearch
Builds instances of type
MEARuntimeSearch.
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 newMEARuntimeSearch.final MEARuntimeSearch.Builderfrom(MEARuntimeSearchType instance) Fill a builder with attribute values from the providedMEARuntimeSearchTypeinstance.final MEARuntimeSearch.BuildersetArchitecture(MArchitectureName architecture) Initializes the value for thearchitectureattribute.final MEARuntimeSearch.BuildersetFeatureVersion(int featureVersion) Initializes the value for thefeatureVersionattribute.final MEARuntimeSearch.BuildersetImageKind(METImageKind imageKind) Initializes the value for theimageKindattribute.final MEARuntimeSearch.BuildersetOperatingSystem(MOperatingSystemName operatingSystem) Initializes the value for theoperatingSystemattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedMEARuntimeSearchTypeinstance. 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
-
setFeatureVersion
Initializes the value for thefeatureVersionattribute.- Parameters:
featureVersion- The value for featureVersion- Returns:
thisbuilder for use in a chained invocation
-
setArchitecture
Initializes the value for thearchitectureattribute.- Parameters:
architecture- The value for architecture- Returns:
thisbuilder for use in a chained invocation
-
setOperatingSystem
Initializes the value for theoperatingSystemattribute.- Parameters:
operatingSystem- The value for operatingSystem- Returns:
thisbuilder for use in a chained invocation
-
setImageKind
-
build
Builds a newMEARuntimeSearch.- Returns:
- An immutable instance of MEARuntimeSearch
- Throws:
IllegalStateException- if any required attributes are missing
-