@NotThreadSafe public static final class ImmutableScopedProtectionSource.Builder extends Object
ImmutableScopedProtectionSource.
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 |
|---|---|
ImmutableScopedProtectionSource |
build()
Builds a new
ImmutableScopedProtectionSource. |
ImmutableScopedProtectionSource.Builder |
companyId(CompanyId companyId)
Initializes the optional value
companyId to companyId. |
ImmutableScopedProtectionSource.Builder |
companyId(Optional<? extends CompanyId> companyId)
Initializes the optional value
companyId to companyId. |
ImmutableScopedProtectionSource.Builder |
from(IlandScope instance)
Fill a builder with attribute values from the provided
com.iland.cohesity.iaas.backups.protectionsources.IlandScope instance. |
ImmutableScopedProtectionSource.Builder |
from(ScopedProtectionSource instance)
Fill a builder with attribute values from the provided
com.iland.cohesity.iaas.backups.protectionsources.ScopedProtectionSource instance. |
ImmutableScopedProtectionSource.Builder |
locationId(LocationId locationId)
Initializes the optional value
locationId to locationId. |
ImmutableScopedProtectionSource.Builder |
locationId(Optional<? extends LocationId> locationId)
Initializes the optional value
locationId to locationId. |
ImmutableScopedProtectionSource.Builder |
orgId(Optional<? extends OrgUuid> orgId)
Initializes the optional value
orgId to orgId. |
ImmutableScopedProtectionSource.Builder |
orgId(OrgUuid orgId)
Initializes the optional value
orgId to orgId. |
ImmutableScopedProtectionSource.Builder |
protectionSource(com.iland.cohesity.sdk.api.model.ProtectionSource protectionSource)
Initializes the value for the
protectionSource attribute. |
ImmutableScopedProtectionSource.Builder |
uid(ProtectionSourceUid uid)
Initializes the value for the
uid attribute. |
ImmutableScopedProtectionSource.Builder |
vdcId(Optional<? extends VdcUuid> vdcId)
Initializes the optional value
vdcId to vdcId. |
ImmutableScopedProtectionSource.Builder |
vdcId(VdcUuid vdcId)
Initializes the optional value
vdcId to vdcId. |
public final ImmutableScopedProtectionSource.Builder from(IlandScope instance)
com.iland.cohesity.iaas.backups.protectionsources.IlandScope instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableScopedProtectionSource.Builder from(ScopedProtectionSource instance)
com.iland.cohesity.iaas.backups.protectionsources.ScopedProtectionSource instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableScopedProtectionSource.Builder locationId(LocationId locationId)
locationId to locationId.locationId - The value for locationIdthis builder for chained invocationpublic final ImmutableScopedProtectionSource.Builder locationId(Optional<? extends LocationId> locationId)
locationId to locationId.locationId - The value for locationIdthis builder for use in a chained invocationpublic final ImmutableScopedProtectionSource.Builder companyId(CompanyId companyId)
companyId to companyId.companyId - The value for companyIdthis builder for chained invocationpublic final ImmutableScopedProtectionSource.Builder companyId(Optional<? extends CompanyId> companyId)
companyId to companyId.companyId - The value for companyIdthis builder for use in a chained invocationpublic final ImmutableScopedProtectionSource.Builder orgId(OrgUuid orgId)
orgId to orgId.orgId - The value for orgIdthis builder for chained invocationpublic final ImmutableScopedProtectionSource.Builder orgId(Optional<? extends OrgUuid> orgId)
orgId to orgId.orgId - The value for orgIdthis builder for use in a chained invocationpublic final ImmutableScopedProtectionSource.Builder vdcId(VdcUuid vdcId)
vdcId to vdcId.vdcId - The value for vdcIdthis builder for chained invocationpublic final ImmutableScopedProtectionSource.Builder vdcId(Optional<? extends VdcUuid> vdcId)
vdcId to vdcId.vdcId - The value for vdcIdthis builder for use in a chained invocationpublic final ImmutableScopedProtectionSource.Builder uid(ProtectionSourceUid uid)
uid attribute.uid - The value for uidthis builder for use in a chained invocationpublic final ImmutableScopedProtectionSource.Builder protectionSource(com.iland.cohesity.sdk.api.model.ProtectionSource protectionSource)
protectionSource attribute.protectionSource - The value for protectionSourcethis builder for use in a chained invocationpublic ImmutableScopedProtectionSource build()
ImmutableScopedProtectionSource.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.