@NotThreadSafe public static final class ImmutableVMSnapshot.Builder extends Object
ImmutableVMSnapshot
.
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 |
---|---|
ImmutableVMSnapshot.Builder |
addAllVersions(Iterable<? extends SnapshotVersion> elements)
Adds elements to
versions list. |
ImmutableVMSnapshot.Builder |
addVersions(SnapshotVersion... elements)
Adds elements to
versions list. |
ImmutableVMSnapshot.Builder |
addVersions(SnapshotVersion element)
Adds one element to
versions list. |
ImmutableVMSnapshot.Builder |
backupGroupName(String backupGroupName)
Initializes the value for the
backupGroupName attribute. |
ImmutableVMSnapshot.Builder |
backupGroupUid(BackupGroupUid backupGroupUid)
Initializes the value for the
backupGroupUid attribute. |
ImmutableVMSnapshot |
build()
Builds a new
ImmutableVMSnapshot . |
ImmutableVMSnapshot.Builder |
companyId(CompanyId companyId)
Initializes the value for the
companyId attribute. |
ImmutableVMSnapshot.Builder |
from(VMSnapshot instance)
Fill a builder with attribute values from the provided
VMSnapshot instance. |
ImmutableVMSnapshot.Builder |
locationId(LocationId locationId)
Initializes the value for the
locationId attribute. |
ImmutableVMSnapshot.Builder |
orgUuid(OrgUuid orgUuid)
Initializes the value for the
orgUuid attribute. |
ImmutableVMSnapshot.Builder |
osType(String osType)
Initializes the value for the
osType attribute. |
ImmutableVMSnapshot.Builder |
vappUuid(VappUuid vappUuid)
Initializes the value for the
vappUuid attribute. |
ImmutableVMSnapshot.Builder |
vdcUuid(VdcUuid vdcUuid)
Initializes the value for the
vdcUuid attribute. |
ImmutableVMSnapshot.Builder |
versions(Iterable<? extends SnapshotVersion> elements)
Sets or replaces all elements for
versions list. |
ImmutableVMSnapshot.Builder |
vmName(String vmName)
Initializes the value for the
vmName attribute. |
ImmutableVMSnapshot.Builder |
vmUuid(VmUuid vmUuid)
Initializes the value for the
vmUuid attribute. |
public final ImmutableVMSnapshot.Builder from(VMSnapshot instance)
VMSnapshot
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 ImmutableVMSnapshot.Builder companyId(CompanyId companyId)
companyId
attribute.companyId
- The value for companyIdthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder locationId(LocationId locationId)
locationId
attribute.locationId
- The value for locationIdthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder orgUuid(OrgUuid orgUuid)
orgUuid
attribute.orgUuid
- The value for orgUuidthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder vdcUuid(VdcUuid vdcUuid)
vdcUuid
attribute.vdcUuid
- The value for vdcUuidthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder vappUuid(VappUuid vappUuid)
vappUuid
attribute.vappUuid
- The value for vappUuidthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder vmUuid(VmUuid vmUuid)
vmUuid
attribute.vmUuid
- The value for vmUuidthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder vmName(String vmName)
vmName
attribute.vmName
- The value for vmNamethis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder backupGroupUid(BackupGroupUid backupGroupUid)
backupGroupUid
attribute.backupGroupUid
- The value for backupGroupUidthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder backupGroupName(String backupGroupName)
backupGroupName
attribute.backupGroupName
- The value for backupGroupNamethis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder osType(String osType)
osType
attribute.osType
- The value for osTypethis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder addVersions(SnapshotVersion element)
versions
list.element
- A versions elementthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder addVersions(SnapshotVersion... elements)
versions
list.elements
- An array of versions elementsthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder versions(Iterable<? extends SnapshotVersion> elements)
versions
list.elements
- An iterable of versions elementsthis
builder for use in a chained invocationpublic final ImmutableVMSnapshot.Builder addAllVersions(Iterable<? extends SnapshotVersion> elements)
versions
list.elements
- An iterable of versions elementsthis
builder for use in a chained invocationpublic ImmutableVMSnapshot build()
ImmutableVMSnapshot
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.