@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableScopedProtectionSource extends Object implements ScopedProtectionSource
ScopedProtectionSource.
Use the builder to create immutable instances:
ImmutableScopedProtectionSource.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableScopedProtectionSource.Builder
Builds instances of type
ImmutableScopedProtectionSource. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableScopedProtectionSource.Builder |
builder()
Creates a builder for
ImmutableScopedProtectionSource. |
Optional<CompanyId> |
companyId() |
static ImmutableScopedProtectionSource |
copyOf(ScopedProtectionSource instance)
Creates an immutable copy of a
ScopedProtectionSource value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableScopedProtectionSource that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
locationId, companyId, orgId, vdcId, uid, protectionSource. |
Optional<LocationId> |
locationId() |
Optional<OrgUuid> |
orgId() |
com.iland.cohesity.sdk.api.model.ProtectionSource |
protectionSource() |
String |
toString()
Prints the immutable value
ScopedProtectionSource with attribute values. |
ProtectionSourceUid |
uid() |
Optional<VdcUuid> |
vdcId() |
ImmutableScopedProtectionSource |
withCompanyId(CompanyId value)
Copy the current immutable object by setting a present value for the optional
companyId attribute. |
ImmutableScopedProtectionSource |
withCompanyId(Optional<? extends CompanyId> optional)
Copy the current immutable object by setting an optional value for the
companyId attribute. |
ImmutableScopedProtectionSource |
withLocationId(LocationId value)
Copy the current immutable object by setting a present value for the optional
locationId attribute. |
ImmutableScopedProtectionSource |
withLocationId(Optional<? extends LocationId> optional)
Copy the current immutable object by setting an optional value for the
locationId attribute. |
ImmutableScopedProtectionSource |
withOrgId(Optional<? extends OrgUuid> optional)
Copy the current immutable object by setting an optional value for the
orgId attribute. |
ImmutableScopedProtectionSource |
withOrgId(OrgUuid value)
Copy the current immutable object by setting a present value for the optional
orgId attribute. |
ImmutableScopedProtectionSource |
withProtectionSource(com.iland.cohesity.sdk.api.model.ProtectionSource value)
Copy the current immutable object by setting a value for the
protectionSource attribute. |
ImmutableScopedProtectionSource |
withUid(ProtectionSourceUid value)
Copy the current immutable object by setting a value for the
uid attribute. |
ImmutableScopedProtectionSource |
withVdcId(Optional<? extends VdcUuid> optional)
Copy the current immutable object by setting an optional value for the
vdcId attribute. |
ImmutableScopedProtectionSource |
withVdcId(VdcUuid value)
Copy the current immutable object by setting a present value for the optional
vdcId attribute. |
public Optional<LocationId> locationId()
locationId in interface IlandScopelocationId attributepublic Optional<CompanyId> companyId()
companyId in interface IlandScopecompanyId attributepublic Optional<OrgUuid> orgId()
orgId in interface IlandScopeorgId attributepublic Optional<VdcUuid> vdcId()
vdcId in interface IlandScopevdcId attributepublic ProtectionSourceUid uid()
uid in interface ScopedProtectionSourceuid attributepublic com.iland.cohesity.sdk.api.model.ProtectionSource protectionSource()
protectionSource in interface ScopedProtectionSourceprotectionSource attributepublic final ImmutableScopedProtectionSource withLocationId(LocationId value)
locationId attribute.value - The value for locationIdthis objectpublic final ImmutableScopedProtectionSource withLocationId(Optional<? extends LocationId> optional)
locationId attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for locationIdthis objectpublic final ImmutableScopedProtectionSource withCompanyId(CompanyId value)
companyId attribute.value - The value for companyIdthis objectpublic final ImmutableScopedProtectionSource withCompanyId(Optional<? extends CompanyId> optional)
companyId attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for companyIdthis objectpublic final ImmutableScopedProtectionSource withOrgId(OrgUuid value)
orgId attribute.value - The value for orgIdthis objectpublic final ImmutableScopedProtectionSource withOrgId(Optional<? extends OrgUuid> optional)
orgId attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for orgIdthis objectpublic final ImmutableScopedProtectionSource withVdcId(VdcUuid value)
vdcId attribute.value - The value for vdcIdthis objectpublic final ImmutableScopedProtectionSource withVdcId(Optional<? extends VdcUuid> optional)
vdcId attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for vdcIdthis objectpublic final ImmutableScopedProtectionSource withUid(ProtectionSourceUid value)
uid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for uidthis objectpublic final ImmutableScopedProtectionSource withProtectionSource(com.iland.cohesity.sdk.api.model.ProtectionSource value)
protectionSource attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for protectionSourcethis objectpublic boolean equals(@Nullable Object another)
ImmutableScopedProtectionSource that have equal attribute values.public int hashCode()
locationId, companyId, orgId, vdcId, uid, protectionSource.public String toString()
ScopedProtectionSource with attribute values.public static ImmutableScopedProtectionSource copyOf(ScopedProtectionSource instance)
ScopedProtectionSource value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableScopedProtectionSource.Builder builder()
ImmutableScopedProtectionSource.
ImmutableScopedProtectionSource.builder()
.locationId(com.iland.cohesity.iaas.backups.common.model.LocationId) // optional locationId
.companyId(com.iland.cohesity.iaas.backups.common.model.CompanyId) // optional companyId
.orgId(com.iland.cohesity.iaas.backups.common.model.OrgUuid) // optional orgId
.vdcId(com.iland.cohesity.iaas.backups.common.model.VdcUuid) // optional vdcId
.uid(com.iland.cohesity.iaas.backups.common.model.ProtectionSourceUid) // required uid
.protectionSource(com.iland.cohesity.sdk.api.model.ProtectionSource) // required protectionSource
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.