@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableBackupPolicyEvent extends Object implements BackupPolicyEvent
BackupPolicyEvent
.
Use the builder to create immutable instances:
ImmutableBackupPolicyEvent.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableBackupPolicyEvent.Builder
Builds instances of type
ImmutableBackupPolicyEvent . |
Modifier and Type | Method and Description |
---|---|
String |
backupPolicyName()
The name of the associated backup policy.
|
static ImmutableBackupPolicyEvent.Builder |
builder()
Creates a builder for
ImmutableBackupPolicyEvent . |
CompanyId |
companyId()
The ID of the associated company.
|
static ImmutableBackupPolicyEvent |
copyOf(BackupPolicyEvent instance)
Creates an immutable copy of a
BackupPolicyEvent value. |
EventEntityType |
entityType()
The type of the event entity.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBackupPolicyEvent that have equal attribute values. |
EventActionType |
eventAction()
The type of the event action.
|
int |
hashCode()
Computes a hash code from attributes:
eventAction , timestamp , uid , locationId , companyId , orgUuid , backupPolicyName , policyUid , scopeType , vdcUuid . |
LocationId |
locationId()
The ID of the associated company.
|
OrgUuid |
orgUuid()
The UUID of the associated Org.
|
PolicyUid |
policyUid()
The UID of the backup policy.
|
BackupPolicyScopeType |
scopeType()
The policy scope type.
|
Instant |
timestamp()
The timestamp of the event.
|
String |
toString()
Prints the immutable value
BackupPolicyEvent with attribute values. |
EventUid |
uid()
The UID of the event.
|
Optional<VdcUuid> |
vdcUuid()
Optional vDC UUID.
|
ImmutableBackupPolicyEvent |
withBackupPolicyName(String value)
Copy the current immutable object by setting a value for the
backupPolicyName attribute. |
ImmutableBackupPolicyEvent |
withCompanyId(CompanyId value)
Copy the current immutable object by setting a value for the
companyId attribute. |
ImmutableBackupPolicyEvent |
withEventAction(EventActionType value)
Copy the current immutable object by setting a value for the
eventAction attribute. |
ImmutableBackupPolicyEvent |
withLocationId(LocationId value)
Copy the current immutable object by setting a value for the
locationId attribute. |
ImmutableBackupPolicyEvent |
withOrgUuid(OrgUuid value)
Copy the current immutable object by setting a value for the
orgUuid attribute. |
ImmutableBackupPolicyEvent |
withPolicyUid(PolicyUid value)
Copy the current immutable object by setting a value for the
policyUid attribute. |
ImmutableBackupPolicyEvent |
withScopeType(BackupPolicyScopeType value)
Copy the current immutable object by setting a value for the
scopeType attribute. |
ImmutableBackupPolicyEvent |
withTimestamp(Instant value)
Copy the current immutable object by setting a value for the
timestamp attribute. |
ImmutableBackupPolicyEvent |
withUid(EventUid value)
Copy the current immutable object by setting a value for the
uid attribute. |
ImmutableBackupPolicyEvent |
withVdcUuid(Optional<? extends VdcUuid> optional)
Copy the current immutable object by setting an optional value for the
vdcUuid attribute. |
ImmutableBackupPolicyEvent |
withVdcUuid(VdcUuid value)
Copy the current immutable object by setting a present value for the optional
vdcUuid attribute. |
public EventActionType eventAction()
eventAction
in interface Event
EventActionType
public Instant timestamp()
public EventUid uid()
public LocationId locationId()
locationId
in interface BackupPolicyEvent
LocationId
public CompanyId companyId()
companyId
in interface BackupPolicyEvent
CompanyId
public OrgUuid orgUuid()
orgUuid
in interface BackupPolicyEvent
OrgUuid
public String backupPolicyName()
backupPolicyName
in interface BackupPolicyEvent
public PolicyUid policyUid()
policyUid
in interface BackupPolicyEvent
PolicyUid
public BackupPolicyScopeType scopeType()
scopeType
in interface BackupPolicyEvent
BackupPolicyScopeType
public Optional<VdcUuid> vdcUuid()
vdcUuid
in interface BackupPolicyEvent
Optional
of VdcUuid
public EventEntityType entityType()
Event
entityType
in interface BackupPolicyEvent
entityType
in interface Event
entityType
attributepublic final ImmutableBackupPolicyEvent withEventAction(EventActionType value)
eventAction
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for eventActionthis
objectpublic final ImmutableBackupPolicyEvent withTimestamp(Instant value)
timestamp
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for timestampthis
objectpublic final ImmutableBackupPolicyEvent withUid(EventUid 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 ImmutableBackupPolicyEvent 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 ImmutableBackupPolicyEvent 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 ImmutableBackupPolicyEvent 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 ImmutableBackupPolicyEvent withBackupPolicyName(String value)
backupPolicyName
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for backupPolicyNamethis
objectpublic final ImmutableBackupPolicyEvent 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 ImmutableBackupPolicyEvent 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 final ImmutableBackupPolicyEvent withVdcUuid(VdcUuid value)
vdcUuid
attribute.value
- The value for vdcUuidthis
objectpublic final ImmutableBackupPolicyEvent 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 boolean equals(@Nullable Object another)
ImmutableBackupPolicyEvent
that have equal attribute values.public int hashCode()
eventAction
, timestamp
, uid
, locationId
, companyId
, orgUuid
, backupPolicyName
, policyUid
, scopeType
, vdcUuid
.public String toString()
BackupPolicyEvent
with attribute values.public static ImmutableBackupPolicyEvent copyOf(BackupPolicyEvent instance)
BackupPolicyEvent
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 ImmutableBackupPolicyEvent.Builder builder()
ImmutableBackupPolicyEvent
.
ImmutableBackupPolicyEvent.builder() .eventAction(com.iland.cohesity.iaas.backups.events.enums.EventActionType) // requiredeventAction
.timestamp(java.time.Instant) // requiredtimestamp
.uid(com.iland.cohesity.iaas.backups.common.model.EventUid) // requireduid
.locationId(com.iland.cohesity.iaas.backups.common.model.LocationId) // requiredlocationId
.companyId(com.iland.cohesity.iaas.backups.common.model.CompanyId) // requiredcompanyId
.orgUuid(com.iland.cohesity.iaas.backups.common.model.OrgUuid) // requiredorgUuid
.backupPolicyName(String) // requiredbackupPolicyName
.policyUid(com.iland.cohesity.iaas.backups.common.model.PolicyUid) // requiredpolicyUid
.scopeType(com.iland.cohesity.iaas.backups.common.enums.BackupPolicyScopeType) // requiredscopeType
.vdcUuid(com.iland.cohesity.iaas.backups.common.model.VdcUuid) // optionalvdcUuid
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.