Class ImmutableZertoAlertResponse
java.lang.Object
com.iland.core.web.rest.response.zerto.ImmutableZertoAlertResponse
- All Implemented Interfaces:
ZertoAlertResponse
@Generated(from="ZertoAlertResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableZertoAlertResponse
extends Object
implements ZertoAlertResponse
Immutable implementation of
ZertoAlertResponse.
Use the builder to create immutable instances:
ImmutableZertoAlertResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableZertoAlertResponse. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<String>The identifiers of the VPGs affected by the alert.com.google.common.collect.ImmutableList<String>The identifiers of the Zerto organizations affected by the alert.The alert identifier.builder()Creates a builder forImmutableZertoAlertResponse.static ImmutableZertoAlertResponsecopyOf(ZertoAlertResponse instance) Creates an immutable copy of aZertoAlertResponsevalue.The description of the alert.entity()The type of entity that raised the alert, e.g.booleanThis instance is equal to all instances ofImmutableZertoAlertResponsethat have equal attribute values.The ISO 8601 timestamp at which the alert was first collected.The generation of the alert.inthashCode()Computes a hash code from attributes:alertIdentifier,level,entity,description,helpIdentifier,siteIdentifier,affectedVpgs,affectedZorgs,generation,turnedOn,firstSeen,lastSeen.The identifier of the Zerto help entry that documents the alert.lastSeen()The ISO 8601 timestamp at which the alert was last reported as active.level()The alert level.The identifier of the site where the alert originated.toString()Prints the immutable valueZertoAlertResponsewith attribute values.turnedOn()The ISO 8601 timestamp at which the alert was turned on in the Zerto Virtual Manager.withAffectedVpgs(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofaffectedVpgs.withAffectedVpgs(String... elements) Copy the current immutable object with elements that replace the content ofaffectedVpgs.withAffectedZorgs(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofaffectedZorgs.withAffectedZorgs(String... elements) Copy the current immutable object with elements that replace the content ofaffectedZorgs.withAlertIdentifier(String value) Copy the current immutable object by setting a value for thealertIdentifierattribute.withDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.withDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.withEntity(String value) Copy the current immutable object by setting a present value for the optionalentityattribute.withEntity(Optional<String> optional) Copy the current immutable object by setting an optional value for theentityattribute.withFirstSeen(String value) Copy the current immutable object by setting a present value for the optionalfirstSeenattribute.withFirstSeen(Optional<String> optional) Copy the current immutable object by setting an optional value for thefirstSeenattribute.withGeneration(int value) Copy the current immutable object by setting a present value for the optionalgenerationattribute.withGeneration(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thegenerationattribute.withHelpIdentifier(String value) Copy the current immutable object by setting a present value for the optionalhelpIdentifierattribute.withHelpIdentifier(Optional<String> optional) Copy the current immutable object by setting an optional value for thehelpIdentifierattribute.withLastSeen(String value) Copy the current immutable object by setting a present value for the optionallastSeenattribute.withLastSeen(Optional<String> optional) Copy the current immutable object by setting an optional value for thelastSeenattribute.withLevel(ZertoAlertLevel value) Copy the current immutable object by setting a value for thelevelattribute.withSiteIdentifier(String value) Copy the current immutable object by setting a present value for the optionalsiteIdentifierattribute.withSiteIdentifier(Optional<String> optional) Copy the current immutable object by setting an optional value for thesiteIdentifierattribute.withTurnedOn(String value) Copy the current immutable object by setting a value for theturnedOnattribute.
-
Method Details
-
alertIdentifier
The alert identifier.- Specified by:
alertIdentifierin interfaceZertoAlertResponse
-
level
The alert level.- Specified by:
levelin interfaceZertoAlertResponse
-
entity
The type of entity that raised the alert, e.g. 'Zvm' or 'Vpg'.- Specified by:
entityin interfaceZertoAlertResponse
-
description
The description of the alert.- Specified by:
descriptionin interfaceZertoAlertResponse
-
helpIdentifier
The identifier of the Zerto help entry that documents the alert.- Specified by:
helpIdentifierin interfaceZertoAlertResponse
-
siteIdentifier
The identifier of the site where the alert originated.- Specified by:
siteIdentifierin interfaceZertoAlertResponse
-
affectedVpgs
The identifiers of the VPGs affected by the alert.- Specified by:
affectedVpgsin interfaceZertoAlertResponse
-
affectedZorgs
The identifiers of the Zerto organizations affected by the alert.- Specified by:
affectedZorgsin interfaceZertoAlertResponse
-
generation
The generation of the alert.- Specified by:
generationin interfaceZertoAlertResponse
-
turnedOn
The ISO 8601 timestamp at which the alert was turned on in the Zerto Virtual Manager.- Specified by:
turnedOnin interfaceZertoAlertResponse
-
firstSeen
The ISO 8601 timestamp at which the alert was first collected.- Specified by:
firstSeenin interfaceZertoAlertResponse
-
lastSeen
The ISO 8601 timestamp at which the alert was last reported as active. On a historical alert this is the last time it was seen before it was dismissed or cleared.- Specified by:
lastSeenin interfaceZertoAlertResponse
-
withAlertIdentifier
Copy the current immutable object by setting a value for thealertIdentifierattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for alertIdentifier- Returns:
- A modified copy of the
thisobject
-
withLevel
Copy the current immutable object by setting a value for thelevelattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for level- Returns:
- A modified copy of the
thisobject
-
withEntity
Copy the current immutable object by setting a present value for the optionalentityattribute.- Parameters:
value- The value for entity- Returns:
- A modified copy of
thisobject
-
withEntity
Copy the current immutable object by setting an optional value for theentityattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for entity- Returns:
- A modified copy of
thisobject
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy of
thisobject
-
withDescription
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for description- Returns:
- A modified copy of
thisobject
-
withHelpIdentifier
Copy the current immutable object by setting a present value for the optionalhelpIdentifierattribute.- Parameters:
value- The value for helpIdentifier- Returns:
- A modified copy of
thisobject
-
withHelpIdentifier
Copy the current immutable object by setting an optional value for thehelpIdentifierattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for helpIdentifier- Returns:
- A modified copy of
thisobject
-
withSiteIdentifier
Copy the current immutable object by setting a present value for the optionalsiteIdentifierattribute.- Parameters:
value- The value for siteIdentifier- Returns:
- A modified copy of
thisobject
-
withSiteIdentifier
Copy the current immutable object by setting an optional value for thesiteIdentifierattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for siteIdentifier- Returns:
- A modified copy of
thisobject
-
withAffectedVpgs
Copy the current immutable object with elements that replace the content ofaffectedVpgs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAffectedVpgs
Copy the current immutable object with elements that replace the content ofaffectedVpgs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of affectedVpgs elements to set- Returns:
- A modified copy of
thisobject
-
withAffectedZorgs
Copy the current immutable object with elements that replace the content ofaffectedZorgs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAffectedZorgs
Copy the current immutable object with elements that replace the content ofaffectedZorgs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of affectedZorgs elements to set- Returns:
- A modified copy of
thisobject
-
withGeneration
Copy the current immutable object by setting a present value for the optionalgenerationattribute.- Parameters:
value- The value for generation- Returns:
- A modified copy of
thisobject
-
withGeneration
Copy the current immutable object by setting an optional value for thegenerationattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for generation- Returns:
- A modified copy of
thisobject
-
withTurnedOn
Copy the current immutable object by setting a value for theturnedOnattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for turnedOn- Returns:
- A modified copy of the
thisobject
-
withFirstSeen
Copy the current immutable object by setting a present value for the optionalfirstSeenattribute.- Parameters:
value- The value for firstSeen- Returns:
- A modified copy of
thisobject
-
withFirstSeen
Copy the current immutable object by setting an optional value for thefirstSeenattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for firstSeen- Returns:
- A modified copy of
thisobject
-
withLastSeen
Copy the current immutable object by setting a present value for the optionallastSeenattribute.- Parameters:
value- The value for lastSeen- Returns:
- A modified copy of
thisobject
-
withLastSeen
Copy the current immutable object by setting an optional value for thelastSeenattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for lastSeen- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableZertoAlertResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:alertIdentifier,level,entity,description,helpIdentifier,siteIdentifier,affectedVpgs,affectedZorgs,generation,turnedOn,firstSeen,lastSeen. -
toString
Prints the immutable valueZertoAlertResponsewith attribute values. -
copyOf
Creates an immutable copy of aZertoAlertResponsevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ZertoAlertResponse instance
-
builder
Creates a builder forImmutableZertoAlertResponse.ImmutableZertoAlertResponse.builder() .alertIdentifier(String) // requiredalertIdentifier.level(com.iland.core.api.zerto.ZertoAlertLevel) // requiredlevel.entity(String) // optionalentity.description(String) // optionaldescription.helpIdentifier(String) // optionalhelpIdentifier.siteIdentifier(String) // optionalsiteIdentifier.addAffectedVpgs|addAllAffectedVpgs(String) //affectedVpgselements .addAffectedZorgs|addAllAffectedZorgs(String) //affectedZorgselements .generation(Integer) // optionalgeneration.turnedOn(String) // requiredturnedOn.firstSeen(String) // optionalfirstSeen.lastSeen(String) // optionallastSeen.build();- Returns:
- A new ImmutableZertoAlertResponse builder
-