@NotThreadSafe public static final class OpenLocation.Builder extends Object implements OpenLocation.CodeBuildStage, OpenLocation.BuildFinal
OpenLocation
.
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 |
---|---|
OpenLocation |
build()
Builds a new
OpenLocation . |
OpenLocation.Builder |
code(String code)
Initializes the value for the
code attribute. |
@CanIgnoreReturnValue public final OpenLocation.Builder code(String code)
code
attribute.code
in interface OpenLocation.CodeBuildStage
code
- The value for codethis
builder for use in a chained invocationpublic OpenLocation build()
OpenLocation
.build
in interface OpenLocation.BuildFinal
IllegalStateException
- if any required attributes are missingCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.