public static final class ManifestV3Sidecar.Builder extends Object
ManifestV3Sidecar.
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.
| Modifier and Type | Method and Description |
|---|---|
ManifestV3Sidecar.Builder |
addAllProcessTypes(Iterable<String> elements)
Adds elements to
processTypes list. |
ManifestV3Sidecar |
build()
Builds a new
ManifestV3Sidecar. |
ManifestV3Sidecar.Builder |
command(String command)
Initializes the value for the
command attribute. |
ManifestV3Sidecar.Builder |
from(ManifestV3Sidecar instance)
Fill a builder with attribute values from the provided
ManifestV3Sidecar instance. |
ManifestV3Sidecar.Builder |
memory(Integer memory)
Initializes the value for the
memory attribute. |
ManifestV3Sidecar.Builder |
name(String name)
Initializes the value for the
name attribute. |
ManifestV3Sidecar.Builder |
processType(String element)
Adds one element to
processTypes list. |
ManifestV3Sidecar.Builder |
processTypes(Iterable<String> elements)
Sets or replaces all elements for
processTypes list. |
ManifestV3Sidecar.Builder |
processTypes(String... elements)
Adds elements to
processTypes list. |
public final ManifestV3Sidecar.Builder from(ManifestV3Sidecar instance)
ManifestV3Sidecar instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ManifestV3Sidecar.Builder command(String command)
command attribute.command - The value for command (can be null)this builder for use in a chained invocationpublic final ManifestV3Sidecar.Builder memory(Integer memory)
memory attribute.memory - The value for memory (can be null)this builder for use in a chained invocationpublic final ManifestV3Sidecar.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final ManifestV3Sidecar.Builder processType(String element)
processTypes list.element - A processTypes elementthis builder for use in a chained invocationpublic final ManifestV3Sidecar.Builder processTypes(String... elements)
processTypes list.elements - An array of processTypes elementsthis builder for use in a chained invocationpublic final ManifestV3Sidecar.Builder processTypes(Iterable<String> elements)
processTypes list.elements - An iterable of processTypes elementsthis builder for use in a chained invocationpublic final ManifestV3Sidecar.Builder addAllProcessTypes(Iterable<String> elements)
processTypes list.elements - An iterable of processTypes elementsthis builder for use in a chained invocationpublic ManifestV3Sidecar build()
ManifestV3Sidecar.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.