Class ImmutableZertoAlertResponse.Builder

java.lang.Object
com.iland.core.web.rest.response.zerto.ImmutableZertoAlertResponse.Builder
Enclosing class:
ImmutableZertoAlertResponse

@Generated(from="ZertoAlertResponse", generator="Immutables") @NotThreadSafe public static final class ImmutableZertoAlertResponse.Builder extends Object
Builds instances of type ImmutableZertoAlertResponse. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder from(ZertoAlertResponse instance)
      Fill a builder with attribute values from the provided ZertoAlertResponse instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • alertIdentifier

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder alertIdentifier(String alertIdentifier)
      Initializes the value for the alertIdentifier attribute.
      Parameters:
      alertIdentifier - The value for alertIdentifier
      Returns:
      this builder for use in a chained invocation
    • level

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder level(ZertoAlertLevel level)
      Initializes the value for the level attribute.
      Parameters:
      level - The value for level
      Returns:
      this builder for use in a chained invocation
    • entity

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder entity(String entity)
      Initializes the optional value entity to entity.
      Parameters:
      entity - The value for entity
      Returns:
      this builder for chained invocation
    • entity

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder entity(Optional<String> entity)
      Initializes the optional value entity to entity.
      Parameters:
      entity - The value for entity
      Returns:
      this builder for use in a chained invocation
    • description

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder description(String description)
      Initializes the optional value description to description.
      Parameters:
      description - The value for description
      Returns:
      this builder for chained invocation
    • description

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder description(Optional<String> description)
      Initializes the optional value description to description.
      Parameters:
      description - The value for description
      Returns:
      this builder for use in a chained invocation
    • helpIdentifier

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder helpIdentifier(String helpIdentifier)
      Initializes the optional value helpIdentifier to helpIdentifier.
      Parameters:
      helpIdentifier - The value for helpIdentifier
      Returns:
      this builder for chained invocation
    • helpIdentifier

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder helpIdentifier(Optional<String> helpIdentifier)
      Initializes the optional value helpIdentifier to helpIdentifier.
      Parameters:
      helpIdentifier - The value for helpIdentifier
      Returns:
      this builder for use in a chained invocation
    • siteIdentifier

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder siteIdentifier(String siteIdentifier)
      Initializes the optional value siteIdentifier to siteIdentifier.
      Parameters:
      siteIdentifier - The value for siteIdentifier
      Returns:
      this builder for chained invocation
    • siteIdentifier

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder siteIdentifier(Optional<String> siteIdentifier)
      Initializes the optional value siteIdentifier to siteIdentifier.
      Parameters:
      siteIdentifier - The value for siteIdentifier
      Returns:
      this builder for use in a chained invocation
    • addAffectedVpgs

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAffectedVpgs(String element)
      Adds one element to affectedVpgs list.
      Parameters:
      element - A affectedVpgs element
      Returns:
      this builder for use in a chained invocation
    • addAffectedVpgs

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAffectedVpgs(String... elements)
      Adds elements to affectedVpgs list.
      Parameters:
      elements - An array of affectedVpgs elements
      Returns:
      this builder for use in a chained invocation
    • affectedVpgs

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder affectedVpgs(Iterable<String> elements)
      Sets or replaces all elements for affectedVpgs list.
      Parameters:
      elements - An iterable of affectedVpgs elements
      Returns:
      this builder for use in a chained invocation
    • addAllAffectedVpgs

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAllAffectedVpgs(Iterable<String> elements)
      Adds elements to affectedVpgs list.
      Parameters:
      elements - An iterable of affectedVpgs elements
      Returns:
      this builder for use in a chained invocation
    • addAffectedZorgs

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAffectedZorgs(String element)
      Adds one element to affectedZorgs list.
      Parameters:
      element - A affectedZorgs element
      Returns:
      this builder for use in a chained invocation
    • addAffectedZorgs

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAffectedZorgs(String... elements)
      Adds elements to affectedZorgs list.
      Parameters:
      elements - An array of affectedZorgs elements
      Returns:
      this builder for use in a chained invocation
    • affectedZorgs

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder affectedZorgs(Iterable<String> elements)
      Sets or replaces all elements for affectedZorgs list.
      Parameters:
      elements - An iterable of affectedZorgs elements
      Returns:
      this builder for use in a chained invocation
    • addAllAffectedZorgs

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAllAffectedZorgs(Iterable<String> elements)
      Adds elements to affectedZorgs list.
      Parameters:
      elements - An iterable of affectedZorgs elements
      Returns:
      this builder for use in a chained invocation
    • generation

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder generation(int generation)
      Initializes the optional value generation to generation.
      Parameters:
      generation - The value for generation
      Returns:
      this builder for chained invocation
    • generation

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder generation(Optional<Integer> generation)
      Initializes the optional value generation to generation.
      Parameters:
      generation - The value for generation
      Returns:
      this builder for use in a chained invocation
    • turnedOn

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder turnedOn(String turnedOn)
      Initializes the value for the turnedOn attribute.
      Parameters:
      turnedOn - The value for turnedOn
      Returns:
      this builder for use in a chained invocation
    • firstSeen

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder firstSeen(String firstSeen)
      Initializes the optional value firstSeen to firstSeen.
      Parameters:
      firstSeen - The value for firstSeen
      Returns:
      this builder for chained invocation
    • firstSeen

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder firstSeen(Optional<String> firstSeen)
      Initializes the optional value firstSeen to firstSeen.
      Parameters:
      firstSeen - The value for firstSeen
      Returns:
      this builder for use in a chained invocation
    • lastSeen

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder lastSeen(String lastSeen)
      Initializes the optional value lastSeen to lastSeen.
      Parameters:
      lastSeen - The value for lastSeen
      Returns:
      this builder for chained invocation
    • lastSeen

      @CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder lastSeen(Optional<String> lastSeen)
      Initializes the optional value lastSeen to lastSeen.
      Parameters:
      lastSeen - The value for lastSeen
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of ZertoAlertResponse
      Throws:
      IllegalStateException - if any required attributes are missing