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().

  • Method Details

    • alertIdentifier

      public String alertIdentifier()
      The alert identifier.
      Specified by:
      alertIdentifier in interface ZertoAlertResponse
    • level

      public ZertoAlertLevel level()
      The alert level.
      Specified by:
      level in interface ZertoAlertResponse
    • entity

      public Optional<String> entity()
      The type of entity that raised the alert, e.g. 'Zvm' or 'Vpg'.
      Specified by:
      entity in interface ZertoAlertResponse
    • description

      public Optional<String> description()
      The description of the alert.
      Specified by:
      description in interface ZertoAlertResponse
    • helpIdentifier

      public Optional<String> helpIdentifier()
      The identifier of the Zerto help entry that documents the alert.
      Specified by:
      helpIdentifier in interface ZertoAlertResponse
    • siteIdentifier

      public Optional<String> siteIdentifier()
      The identifier of the site where the alert originated.
      Specified by:
      siteIdentifier in interface ZertoAlertResponse
    • affectedVpgs

      public com.google.common.collect.ImmutableList<String> affectedVpgs()
      The identifiers of the VPGs affected by the alert.
      Specified by:
      affectedVpgs in interface ZertoAlertResponse
    • affectedZorgs

      public com.google.common.collect.ImmutableList<String> affectedZorgs()
      The identifiers of the Zerto organizations affected by the alert.
      Specified by:
      affectedZorgs in interface ZertoAlertResponse
    • generation

      public Optional<Integer> generation()
      The generation of the alert.
      Specified by:
      generation in interface ZertoAlertResponse
    • turnedOn

      public String turnedOn()
      The ISO 8601 timestamp at which the alert was turned on in the Zerto Virtual Manager.
      Specified by:
      turnedOn in interface ZertoAlertResponse
    • firstSeen

      public Optional<String> firstSeen()
      The ISO 8601 timestamp at which the alert was first collected.
      Specified by:
      firstSeen in interface ZertoAlertResponse
    • lastSeen

      public Optional<String> 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:
      lastSeen in interface ZertoAlertResponse
    • withAlertIdentifier

      public final ImmutableZertoAlertResponse withAlertIdentifier(String value)
      Copy the current immutable object by setting a value for the alertIdentifier attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for alertIdentifier
      Returns:
      A modified copy of the this object
    • withLevel

      public final ImmutableZertoAlertResponse withLevel(ZertoAlertLevel value)
      Copy the current immutable object by setting a value for the level attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for level
      Returns:
      A modified copy of the this object
    • withEntity

      public final ImmutableZertoAlertResponse withEntity(String value)
      Copy the current immutable object by setting a present value for the optional entity attribute.
      Parameters:
      value - The value for entity
      Returns:
      A modified copy of this object
    • withEntity

      public final ImmutableZertoAlertResponse withEntity(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the entity attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for entity
      Returns:
      A modified copy of this object
    • withDescription

      public final ImmutableZertoAlertResponse withDescription(String value)
      Copy the current immutable object by setting a present value for the optional description attribute.
      Parameters:
      value - The value for description
      Returns:
      A modified copy of this object
    • withDescription

      public final ImmutableZertoAlertResponse withDescription(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the description attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for description
      Returns:
      A modified copy of this object
    • withHelpIdentifier

      public final ImmutableZertoAlertResponse withHelpIdentifier(String value)
      Copy the current immutable object by setting a present value for the optional helpIdentifier attribute.
      Parameters:
      value - The value for helpIdentifier
      Returns:
      A modified copy of this object
    • withHelpIdentifier

      public final ImmutableZertoAlertResponse withHelpIdentifier(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the helpIdentifier attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for helpIdentifier
      Returns:
      A modified copy of this object
    • withSiteIdentifier

      public final ImmutableZertoAlertResponse withSiteIdentifier(String value)
      Copy the current immutable object by setting a present value for the optional siteIdentifier attribute.
      Parameters:
      value - The value for siteIdentifier
      Returns:
      A modified copy of this object
    • withSiteIdentifier

      public final ImmutableZertoAlertResponse withSiteIdentifier(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the siteIdentifier attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for siteIdentifier
      Returns:
      A modified copy of this object
    • withAffectedVpgs

      public final ImmutableZertoAlertResponse withAffectedVpgs(String... elements)
      Copy the current immutable object with elements that replace the content of affectedVpgs.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withAffectedVpgs

      public final ImmutableZertoAlertResponse withAffectedVpgs(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of affectedVpgs. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of affectedVpgs elements to set
      Returns:
      A modified copy of this object
    • withAffectedZorgs

      public final ImmutableZertoAlertResponse withAffectedZorgs(String... elements)
      Copy the current immutable object with elements that replace the content of affectedZorgs.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withAffectedZorgs

      public final ImmutableZertoAlertResponse withAffectedZorgs(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of affectedZorgs. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of affectedZorgs elements to set
      Returns:
      A modified copy of this object
    • withGeneration

      public final ImmutableZertoAlertResponse withGeneration(int value)
      Copy the current immutable object by setting a present value for the optional generation attribute.
      Parameters:
      value - The value for generation
      Returns:
      A modified copy of this object
    • withGeneration

      public final ImmutableZertoAlertResponse withGeneration(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the generation attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for generation
      Returns:
      A modified copy of this object
    • withTurnedOn

      public final ImmutableZertoAlertResponse withTurnedOn(String value)
      Copy the current immutable object by setting a value for the turnedOn attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for turnedOn
      Returns:
      A modified copy of the this object
    • withFirstSeen

      public final ImmutableZertoAlertResponse withFirstSeen(String value)
      Copy the current immutable object by setting a present value for the optional firstSeen attribute.
      Parameters:
      value - The value for firstSeen
      Returns:
      A modified copy of this object
    • withFirstSeen

      public final ImmutableZertoAlertResponse withFirstSeen(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the firstSeen attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for firstSeen
      Returns:
      A modified copy of this object
    • withLastSeen

      public final ImmutableZertoAlertResponse withLastSeen(String value)
      Copy the current immutable object by setting a present value for the optional lastSeen attribute.
      Parameters:
      value - The value for lastSeen
      Returns:
      A modified copy of this object
    • withLastSeen

      public final ImmutableZertoAlertResponse withLastSeen(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the lastSeen attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for lastSeen
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableZertoAlertResponse that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: alertIdentifier, level, entity, description, helpIdentifier, siteIdentifier, affectedVpgs, affectedZorgs, generation, turnedOn, firstSeen, lastSeen.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ZertoAlertResponse with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableZertoAlertResponse copyOf(ZertoAlertResponse instance)
      Creates an immutable copy of a ZertoAlertResponse value. 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

      public static ImmutableZertoAlertResponse.Builder builder()
      Creates a builder for ImmutableZertoAlertResponse.
       ImmutableZertoAlertResponse.builder()
          .alertIdentifier(String) // required alertIdentifier
          .level(com.iland.core.api.zerto.ZertoAlertLevel) // required level
          .entity(String) // optional entity
          .description(String) // optional description
          .helpIdentifier(String) // optional helpIdentifier
          .siteIdentifier(String) // optional siteIdentifier
          .addAffectedVpgs|addAllAffectedVpgs(String) // affectedVpgs elements
          .addAffectedZorgs|addAllAffectedZorgs(String) // affectedZorgs elements
          .generation(Integer) // optional generation
          .turnedOn(String) // required turnedOn
          .firstSeen(String) // optional firstSeen
          .lastSeen(String) // optional lastSeen
          .build();
       
      Returns:
      A new ImmutableZertoAlertResponse builder