public static class SegmentKey.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SegmentKey |
build()
Builds a new
SegmentKey . |
SegmentKey.Builder |
from(SegmentKey instance)
Fill a builder with attribute values from the provided
SegmentKey instance. |
SegmentKey.Builder |
iv(java.util.Optional<java.lang.String> iv)
Initializes the optional value
iv to iv. |
SegmentKey.Builder |
iv(java.lang.String iv)
Initializes the optional value
iv to iv. |
SegmentKey.Builder |
keyFormat(java.util.Optional<java.lang.String> keyFormat)
Initializes the optional value
keyFormat to keyFormat. |
SegmentKey.Builder |
keyFormat(java.lang.String keyFormat)
Initializes the optional value
keyFormat to keyFormat. |
SegmentKey.Builder |
keyFormatVersions(java.util.Optional<java.lang.String> keyFormatVersions)
Initializes the optional value
keyFormatVersions to keyFormatVersions. |
SegmentKey.Builder |
keyFormatVersions(java.lang.String keyFormatVersions)
Initializes the optional value
keyFormatVersions to keyFormatVersions. |
SegmentKey.Builder |
method(KeyMethod method)
Initializes the value for the
method attribute. |
SegmentKey.Builder |
uri(java.util.Optional<java.lang.String> uri)
Initializes the optional value
uri to uri. |
SegmentKey.Builder |
uri(java.lang.String uri)
Initializes the optional value
uri to uri. |
public final SegmentKey.Builder from(SegmentKey instance)
SegmentKey
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final SegmentKey.Builder method(KeyMethod method)
method
attribute.method
- The value for methodthis
builder for use in a chained invocationpublic final SegmentKey.Builder uri(java.lang.String uri)
uri
to uri.uri
- The value for urithis
builder for chained invocationpublic final SegmentKey.Builder uri(java.util.Optional<java.lang.String> uri)
uri
to uri.uri
- The value for urithis
builder for use in a chained invocationpublic final SegmentKey.Builder iv(java.lang.String iv)
iv
to iv.iv
- The value for ivthis
builder for chained invocationpublic final SegmentKey.Builder iv(java.util.Optional<java.lang.String> iv)
iv
to iv.iv
- The value for ivthis
builder for use in a chained invocationpublic final SegmentKey.Builder keyFormat(java.lang.String keyFormat)
keyFormat
to keyFormat.keyFormat
- The value for keyFormatthis
builder for chained invocationpublic final SegmentKey.Builder keyFormat(java.util.Optional<java.lang.String> keyFormat)
keyFormat
to keyFormat.keyFormat
- The value for keyFormatthis
builder for use in a chained invocationpublic final SegmentKey.Builder keyFormatVersions(java.lang.String keyFormatVersions)
keyFormatVersions
to keyFormatVersions.keyFormatVersions
- The value for keyFormatVersionsthis
builder for chained invocationpublic final SegmentKey.Builder keyFormatVersions(java.util.Optional<java.lang.String> keyFormatVersions)
keyFormatVersions
to keyFormatVersions.keyFormatVersions
- The value for keyFormatVersionsthis
builder for use in a chained invocationpublic SegmentKey build()
SegmentKey
.java.lang.IllegalStateException
- if any required attributes are missing