@NotThreadSafe public static final class ImmutableBackupPolicyEvent.Builder extends Object
ImmutableBackupPolicyEvent
.
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 |
---|---|
ImmutableBackupPolicyEvent.Builder |
backupPolicyName(String backupPolicyName)
Initializes the value for the
backupPolicyName attribute. |
ImmutableBackupPolicyEvent |
build()
Builds a new
ImmutableBackupPolicyEvent . |
ImmutableBackupPolicyEvent.Builder |
companyId(CompanyId companyId)
Initializes the value for the
companyId attribute. |
ImmutableBackupPolicyEvent.Builder |
eventAction(EventActionType eventAction)
Initializes the value for the
eventAction attribute. |
ImmutableBackupPolicyEvent.Builder |
from(BackupPolicyEvent instance)
Fill a builder with attribute values from the provided
com.iland.cohesity.iaas.backups.events.model.BackupPolicyEvent instance. |
ImmutableBackupPolicyEvent.Builder |
from(Event instance)
Fill a builder with attribute values from the provided
com.iland.cohesity.iaas.backups.events.model.Event instance. |
ImmutableBackupPolicyEvent.Builder |
locationId(LocationId locationId)
Initializes the value for the
locationId attribute. |
ImmutableBackupPolicyEvent.Builder |
orgUuid(OrgUuid orgUuid)
Initializes the value for the
orgUuid attribute. |
ImmutableBackupPolicyEvent.Builder |
policyUid(PolicyUid policyUid)
Initializes the value for the
policyUid attribute. |
ImmutableBackupPolicyEvent.Builder |
scopeType(BackupPolicyScopeType scopeType)
Initializes the value for the
scopeType attribute. |
ImmutableBackupPolicyEvent.Builder |
timestamp(Instant timestamp)
Initializes the value for the
timestamp attribute. |
ImmutableBackupPolicyEvent.Builder |
uid(EventUid uid)
Initializes the value for the
uid attribute. |
ImmutableBackupPolicyEvent.Builder |
vdcUuid(Optional<? extends VdcUuid> vdcUuid)
Initializes the optional value
vdcUuid to vdcUuid. |
ImmutableBackupPolicyEvent.Builder |
vdcUuid(VdcUuid vdcUuid)
Initializes the optional value
vdcUuid to vdcUuid. |
public final ImmutableBackupPolicyEvent.Builder from(BackupPolicyEvent instance)
com.iland.cohesity.iaas.backups.events.model.BackupPolicyEvent
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder from(Event instance)
com.iland.cohesity.iaas.backups.events.model.Event
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder eventAction(EventActionType eventAction)
eventAction
attribute.eventAction
- The value for eventActionthis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder timestamp(Instant timestamp)
timestamp
attribute.timestamp
- The value for timestampthis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder uid(EventUid uid)
uid
attribute.uid
- The value for uidthis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder locationId(LocationId locationId)
locationId
attribute.locationId
- The value for locationIdthis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder companyId(CompanyId companyId)
companyId
attribute.companyId
- The value for companyIdthis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder orgUuid(OrgUuid orgUuid)
orgUuid
attribute.orgUuid
- The value for orgUuidthis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder backupPolicyName(String backupPolicyName)
backupPolicyName
attribute.backupPolicyName
- The value for backupPolicyNamethis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder policyUid(PolicyUid policyUid)
policyUid
attribute.policyUid
- The value for policyUidthis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder scopeType(BackupPolicyScopeType scopeType)
scopeType
attribute.scopeType
- The value for scopeTypethis
builder for use in a chained invocationpublic final ImmutableBackupPolicyEvent.Builder vdcUuid(VdcUuid vdcUuid)
vdcUuid
to vdcUuid.vdcUuid
- The value for vdcUuidthis
builder for chained invocationpublic final ImmutableBackupPolicyEvent.Builder vdcUuid(Optional<? extends VdcUuid> vdcUuid)
vdcUuid
to vdcUuid.vdcUuid
- The value for vdcUuidthis
builder for use in a chained invocationpublic ImmutableBackupPolicyEvent build()
ImmutableBackupPolicyEvent
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.