@NotThreadSafe public static final class ImmutableBackupGroupRun.Builder extends Object
ImmutableBackupGroupRun
.
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 ImmutableBackupGroupRun.Builder from(BackupGroupRun instance)
BackupGroupRun
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 ImmutableBackupGroupRun.Builder uid(BackupRunUid uid)
uid
attribute.uid
- The value for uidthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder backupRun(BackupRun backupRun)
backupRun
attribute.backupRun
- The value for backupRunthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder addCopyRuns(CopyRun element)
copyRuns
list.element
- A copyRuns elementthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder addCopyRuns(CopyRun... elements)
copyRuns
list.elements
- An array of copyRuns elementsthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder copyRuns(Iterable<? extends CopyRun> elements)
copyRuns
list.elements
- An iterable of copyRuns elementsthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder addAllCopyRuns(Iterable<? extends CopyRun> elements)
copyRuns
list.elements
- An iterable of copyRuns elementsthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder backupGroupUid(BackupGroupUid backupGroupUid)
backupGroupUid
attribute.backupGroupUid
- The value for backupGroupUidthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder backupGroupName(String backupGroupName)
backupGroupName
attribute.backupGroupName
- The value for backupGroupNamethis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder orgUuid(OrgUuid orgUuid)
orgUuid
attribute.orgUuid
- The value for orgUuidthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder vdcUuid(VdcUuid vdcUuid)
vdcUuid
attribute.vdcUuid
- The value for vdcUuidthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder companyId(CompanyId companyId)
companyId
attribute.companyId
- The value for companyIdthis
builder for use in a chained invocationpublic final ImmutableBackupGroupRun.Builder locationId(LocationId locationId)
locationId
attribute.locationId
- The value for locationIdthis
builder for use in a chained invocationpublic ImmutableBackupGroupRun build()
ImmutableBackupGroupRun
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.