@NotThreadSafe public static final class ImmutableBackupGroupIndexingPolicy.Builder extends Object
ImmutableBackupGroupIndexingPolicy
.
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.
public final ImmutableBackupGroupIndexingPolicy.Builder from(BackupGroupIndexingPolicy instance)
BackupGroupIndexingPolicy
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 ImmutableBackupGroupIndexingPolicy.Builder addAllowPrefixes(String element)
allowPrefixes
list.element
- A allowPrefixes elementthis
builder for use in a chained invocationpublic final ImmutableBackupGroupIndexingPolicy.Builder addAllowPrefixes(String... elements)
allowPrefixes
list.elements
- An array of allowPrefixes elementsthis
builder for use in a chained invocationpublic final ImmutableBackupGroupIndexingPolicy.Builder allowPrefixes(Iterable<String> elements)
allowPrefixes
list.elements
- An iterable of allowPrefixes elementsthis
builder for use in a chained invocationpublic final ImmutableBackupGroupIndexingPolicy.Builder addAllAllowPrefixes(Iterable<String> elements)
allowPrefixes
list.elements
- An iterable of allowPrefixes elementsthis
builder for use in a chained invocationpublic final ImmutableBackupGroupIndexingPolicy.Builder addDenyPrefixes(String element)
denyPrefixes
list.element
- A denyPrefixes elementthis
builder for use in a chained invocationpublic final ImmutableBackupGroupIndexingPolicy.Builder addDenyPrefixes(String... elements)
denyPrefixes
list.elements
- An array of denyPrefixes elementsthis
builder for use in a chained invocationpublic final ImmutableBackupGroupIndexingPolicy.Builder denyPrefixes(Iterable<String> elements)
denyPrefixes
list.elements
- An iterable of denyPrefixes elementsthis
builder for use in a chained invocationpublic final ImmutableBackupGroupIndexingPolicy.Builder addAllDenyPrefixes(Iterable<String> elements)
denyPrefixes
list.elements
- An iterable of denyPrefixes elementsthis
builder for use in a chained invocationpublic final ImmutableBackupGroupIndexingPolicy.Builder disableIndexing(boolean disableIndexing)
disableIndexing
attribute.disableIndexing
- The value for disableIndexingthis
builder for use in a chained invocationpublic ImmutableBackupGroupIndexingPolicy build()
ImmutableBackupGroupIndexingPolicy
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.