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 Summary
Modifier and TypeMethodDescriptionaddAffectedVpgs(String element) Adds one element toaffectedVpgslist.addAffectedVpgs(String... elements) Adds elements toaffectedVpgslist.addAffectedZorgs(String element) Adds one element toaffectedZorgslist.addAffectedZorgs(String... elements) Adds elements toaffectedZorgslist.addAllAffectedVpgs(Iterable<String> elements) Adds elements toaffectedVpgslist.addAllAffectedZorgs(Iterable<String> elements) Adds elements toaffectedZorgslist.affectedVpgs(Iterable<String> elements) Sets or replaces all elements foraffectedVpgslist.affectedZorgs(Iterable<String> elements) Sets or replaces all elements foraffectedZorgslist.alertIdentifier(String alertIdentifier) Initializes the value for thealertIdentifierattribute.build()Builds a newImmutableZertoAlertResponse.description(String description) Initializes the optional valuedescriptionto description.description(Optional<String> description) Initializes the optional valuedescriptionto description.Initializes the optional valueentityto entity.Initializes the optional valueentityto entity.Initializes the optional valuefirstSeento firstSeen.Initializes the optional valuefirstSeento firstSeen.from(ZertoAlertResponse instance) Fill a builder with attribute values from the providedZertoAlertResponseinstance.generation(int generation) Initializes the optional valuegenerationto generation.generation(Optional<Integer> generation) Initializes the optional valuegenerationto generation.helpIdentifier(String helpIdentifier) Initializes the optional valuehelpIdentifierto helpIdentifier.helpIdentifier(Optional<String> helpIdentifier) Initializes the optional valuehelpIdentifierto helpIdentifier.Initializes the optional valuelastSeento lastSeen.Initializes the optional valuelastSeento lastSeen.level(ZertoAlertLevel level) Initializes the value for thelevelattribute.siteIdentifier(String siteIdentifier) Initializes the optional valuesiteIdentifierto siteIdentifier.siteIdentifier(Optional<String> siteIdentifier) Initializes the optional valuesiteIdentifierto siteIdentifier.Initializes the value for theturnedOnattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder from(ZertoAlertResponse instance) Fill a builder with attribute values from the providedZertoAlertResponseinstance. 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:
thisbuilder for use in a chained invocation
-
alertIdentifier
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder alertIdentifier(String alertIdentifier) Initializes the value for thealertIdentifierattribute.- Parameters:
alertIdentifier- The value for alertIdentifier- Returns:
thisbuilder for use in a chained invocation
-
level
Initializes the value for thelevelattribute.- Parameters:
level- The value for level- Returns:
thisbuilder for use in a chained invocation
-
entity
Initializes the optional valueentityto entity.- Parameters:
entity- The value for entity- Returns:
thisbuilder for chained invocation
-
entity
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder entity(Optional<String> entity) Initializes the optional valueentityto entity.- Parameters:
entity- The value for entity- Returns:
thisbuilder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder description(String description) Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder description(Optional<String> description) Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
helpIdentifier
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder helpIdentifier(String helpIdentifier) Initializes the optional valuehelpIdentifierto helpIdentifier.- Parameters:
helpIdentifier- The value for helpIdentifier- Returns:
thisbuilder for chained invocation
-
helpIdentifier
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder helpIdentifier(Optional<String> helpIdentifier) Initializes the optional valuehelpIdentifierto helpIdentifier.- Parameters:
helpIdentifier- The value for helpIdentifier- Returns:
thisbuilder for use in a chained invocation
-
siteIdentifier
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder siteIdentifier(String siteIdentifier) Initializes the optional valuesiteIdentifierto siteIdentifier.- Parameters:
siteIdentifier- The value for siteIdentifier- Returns:
thisbuilder for chained invocation
-
siteIdentifier
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder siteIdentifier(Optional<String> siteIdentifier) Initializes the optional valuesiteIdentifierto siteIdentifier.- Parameters:
siteIdentifier- The value for siteIdentifier- Returns:
thisbuilder for use in a chained invocation
-
addAffectedVpgs
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAffectedVpgs(String element) Adds one element toaffectedVpgslist.- Parameters:
element- A affectedVpgs element- Returns:
thisbuilder for use in a chained invocation
-
addAffectedVpgs
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAffectedVpgs(String... elements) Adds elements toaffectedVpgslist.- Parameters:
elements- An array of affectedVpgs elements- Returns:
thisbuilder for use in a chained invocation
-
affectedVpgs
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder affectedVpgs(Iterable<String> elements) Sets or replaces all elements foraffectedVpgslist.- Parameters:
elements- An iterable of affectedVpgs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllAffectedVpgs
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAllAffectedVpgs(Iterable<String> elements) Adds elements toaffectedVpgslist.- Parameters:
elements- An iterable of affectedVpgs elements- Returns:
thisbuilder for use in a chained invocation
-
addAffectedZorgs
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAffectedZorgs(String element) Adds one element toaffectedZorgslist.- Parameters:
element- A affectedZorgs element- Returns:
thisbuilder for use in a chained invocation
-
addAffectedZorgs
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAffectedZorgs(String... elements) Adds elements toaffectedZorgslist.- Parameters:
elements- An array of affectedZorgs elements- Returns:
thisbuilder for use in a chained invocation
-
affectedZorgs
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder affectedZorgs(Iterable<String> elements) Sets or replaces all elements foraffectedZorgslist.- Parameters:
elements- An iterable of affectedZorgs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllAffectedZorgs
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder addAllAffectedZorgs(Iterable<String> elements) Adds elements toaffectedZorgslist.- Parameters:
elements- An iterable of affectedZorgs elements- Returns:
thisbuilder for use in a chained invocation
-
generation
Initializes the optional valuegenerationto generation.- Parameters:
generation- The value for generation- Returns:
thisbuilder for chained invocation
-
generation
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder generation(Optional<Integer> generation) Initializes the optional valuegenerationto generation.- Parameters:
generation- The value for generation- Returns:
thisbuilder for use in a chained invocation
-
turnedOn
Initializes the value for theturnedOnattribute.- Parameters:
turnedOn- The value for turnedOn- Returns:
thisbuilder for use in a chained invocation
-
firstSeen
Initializes the optional valuefirstSeento firstSeen.- Parameters:
firstSeen- The value for firstSeen- Returns:
thisbuilder for chained invocation
-
firstSeen
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder firstSeen(Optional<String> firstSeen) Initializes the optional valuefirstSeento firstSeen.- Parameters:
firstSeen- The value for firstSeen- Returns:
thisbuilder for use in a chained invocation
-
lastSeen
Initializes the optional valuelastSeento lastSeen.- Parameters:
lastSeen- The value for lastSeen- Returns:
thisbuilder for chained invocation
-
lastSeen
@CanIgnoreReturnValue public final ImmutableZertoAlertResponse.Builder lastSeen(Optional<String> lastSeen) Initializes the optional valuelastSeento lastSeen.- Parameters:
lastSeen- The value for lastSeen- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableZertoAlertResponse.- Returns:
- An immutable instance of ZertoAlertResponse
- Throws:
IllegalStateException- if any required attributes are missing
-