@NotThreadSafe public static final class ImmutableVdcBackupClusterInfo.Builder extends Object
ImmutableVdcBackupClusterInfo
.
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 ImmutableVdcBackupClusterInfo.Builder from(VdcBackupClusterInfo instance)
VdcBackupClusterInfo
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 ImmutableVdcBackupClusterInfo.Builder vdcUuid(VdcUuid vdcUuid)
vdcUuid
attribute.vdcUuid
- The value for vdcUuidthis
builder for use in a chained invocationpublic final ImmutableVdcBackupClusterInfo.Builder localCluster(LocalVdcBackupClusterInfo localCluster)
localCluster
attribute.localCluster
- The value for localClusterthis
builder for use in a chained invocationpublic final ImmutableVdcBackupClusterInfo.Builder addRemoteClusters(RemoteVdcBackupClusterInfo element)
remoteClusters
set.element
- A remoteClusters elementthis
builder for use in a chained invocationpublic final ImmutableVdcBackupClusterInfo.Builder addRemoteClusters(RemoteVdcBackupClusterInfo... elements)
remoteClusters
set.elements
- An array of remoteClusters elementsthis
builder for use in a chained invocationpublic final ImmutableVdcBackupClusterInfo.Builder remoteClusters(Iterable<? extends RemoteVdcBackupClusterInfo> elements)
remoteClusters
set.elements
- An iterable of remoteClusters elementsthis
builder for use in a chained invocationpublic final ImmutableVdcBackupClusterInfo.Builder addAllRemoteClusters(Iterable<? extends RemoteVdcBackupClusterInfo> elements)
remoteClusters
set.elements
- An iterable of remoteClusters elementsthis
builder for use in a chained invocationpublic ImmutableVdcBackupClusterInfo build()
ImmutableVdcBackupClusterInfo
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.