@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableVCloudPolicyScopeDescriptor extends Object implements VCloudPolicyScopeDescriptor
VCloudPolicyScopeDescriptor
.
Use the builder to create immutable instances:
ImmutableVCloudPolicyScopeDescriptor.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableVCloudPolicyScopeDescriptor.Builder
Builds instances of type
ImmutableVCloudPolicyScopeDescriptor . |
Modifier and Type | Method and Description |
---|---|
static ImmutableVCloudPolicyScopeDescriptor.Builder |
builder()
Creates a builder for
ImmutableVCloudPolicyScopeDescriptor . |
CompanyId |
companyId()
The ID of the associated company.
|
static ImmutableVCloudPolicyScopeDescriptor |
copyOf(VCloudPolicyScopeDescriptor instance)
Creates an immutable copy of a
VCloudPolicyScopeDescriptor value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableVCloudPolicyScopeDescriptor that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
policyUid , companyId , locationId , orgUuid , policyName , vdcUuid , scopeType . |
LocationId |
locationId()
The ID of the associated location.
|
OrgUuid |
orgUuid()
The UUID of the associated org.
|
String |
policyName()
The bare (non-scoped, human-friendly) policy name.
|
PolicyUid |
policyUid()
The UID of the policy.
|
BackupPolicyScopeType |
scopeType()
The scope type of the policy.
|
String |
toString()
Prints the immutable value
VCloudPolicyScopeDescriptor with attribute values. |
Optional<VdcUuid> |
vdcUuid()
The (optional) UUID of the associated vDC.
|
ImmutableVCloudPolicyScopeDescriptor |
withCompanyId(CompanyId value)
Copy the current immutable object by setting a value for the
companyId attribute. |
ImmutableVCloudPolicyScopeDescriptor |
withLocationId(LocationId value)
Copy the current immutable object by setting a value for the
locationId attribute. |
ImmutableVCloudPolicyScopeDescriptor |
withOrgUuid(OrgUuid value)
Copy the current immutable object by setting a value for the
orgUuid attribute. |
ImmutableVCloudPolicyScopeDescriptor |
withPolicyName(String value)
Copy the current immutable object by setting a value for the
policyName attribute. |
ImmutableVCloudPolicyScopeDescriptor |
withPolicyUid(PolicyUid value)
Copy the current immutable object by setting a value for the
policyUid attribute. |
ImmutableVCloudPolicyScopeDescriptor |
withScopeType(BackupPolicyScopeType value)
Copy the current immutable object by setting a value for the
scopeType attribute. |
ImmutableVCloudPolicyScopeDescriptor |
withVdcUuid(Optional<? extends VdcUuid> optional)
Copy the current immutable object by setting an optional value for the
vdcUuid attribute. |
ImmutableVCloudPolicyScopeDescriptor |
withVdcUuid(VdcUuid value)
Copy the current immutable object by setting a present value for the optional
vdcUuid attribute. |
public PolicyUid policyUid()
policyUid
in interface VCloudPolicyScopeDescriptor
PolicyUid
public CompanyId companyId()
companyId
in interface VCloudPolicyScopeDescriptor
CompanyId
public LocationId locationId()
locationId
in interface VCloudPolicyScopeDescriptor
LocationId
public OrgUuid orgUuid()
orgUuid
in interface VCloudPolicyScopeDescriptor
OrgUuid
public String policyName()
policyName
in interface VCloudPolicyScopeDescriptor
String
public Optional<VdcUuid> vdcUuid()
BackupPolicyScopeType.ORG
.vdcUuid
in interface VCloudPolicyScopeDescriptor
Optional
of VdcUuid
public BackupPolicyScopeType scopeType()
scopeType
in interface VCloudPolicyScopeDescriptor
BackupPolicyScopeType
public final ImmutableVCloudPolicyScopeDescriptor withPolicyUid(PolicyUid value)
policyUid
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for policyUidthis
objectpublic final ImmutableVCloudPolicyScopeDescriptor withCompanyId(CompanyId value)
companyId
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for companyIdthis
objectpublic final ImmutableVCloudPolicyScopeDescriptor withLocationId(LocationId value)
locationId
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for locationIdthis
objectpublic final ImmutableVCloudPolicyScopeDescriptor withOrgUuid(OrgUuid value)
orgUuid
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for orgUuidthis
objectpublic final ImmutableVCloudPolicyScopeDescriptor withPolicyName(String value)
policyName
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for policyNamethis
objectpublic final ImmutableVCloudPolicyScopeDescriptor withVdcUuid(VdcUuid value)
vdcUuid
attribute.value
- The value for vdcUuidthis
objectpublic final ImmutableVCloudPolicyScopeDescriptor withVdcUuid(Optional<? extends VdcUuid> optional)
vdcUuid
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 vdcUuidthis
objectpublic final ImmutableVCloudPolicyScopeDescriptor withScopeType(BackupPolicyScopeType value)
scopeType
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for scopeTypethis
objectpublic boolean equals(@Nullable Object another)
ImmutableVCloudPolicyScopeDescriptor
that have equal attribute values.public int hashCode()
policyUid
, companyId
, locationId
, orgUuid
, policyName
, vdcUuid
, scopeType
.public String toString()
VCloudPolicyScopeDescriptor
with attribute values.public static ImmutableVCloudPolicyScopeDescriptor copyOf(VCloudPolicyScopeDescriptor instance)
VCloudPolicyScopeDescriptor
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 ImmutableVCloudPolicyScopeDescriptor.Builder builder()
ImmutableVCloudPolicyScopeDescriptor
.
ImmutableVCloudPolicyScopeDescriptor.builder() .policyUid(com.iland.cohesity.iaas.backups.common.model.PolicyUid) // requiredpolicyUid
.companyId(com.iland.cohesity.iaas.backups.common.model.CompanyId) // requiredcompanyId
.locationId(com.iland.cohesity.iaas.backups.common.model.LocationId) // requiredlocationId
.orgUuid(com.iland.cohesity.iaas.backups.common.model.OrgUuid) // requiredorgUuid
.policyName(String) // requiredpolicyName
.vdcUuid(VdcUuid) // optionalvdcUuid
.scopeType(com.iland.cohesity.iaas.backups.common.enums.BackupPolicyScopeType) // requiredscopeType
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.