/** * Builds a new {@link IntegrationOverview IntegrationOverview}. * @return An immutable instance of IntegrationOverview * @throws java.lang.IllegalStateException if any required attributes are missing */ public IntegrationOverview build() { return ImmutableIntegrationOverview.validate(new ImmutableIntegrationOverview(this)); }
/** * Construct a new immutable {@code IntegrationOverview} instance. * @param isDraft The value for the {@code isDraft} attribute * @param currentState The value for the {@code currentState} attribute * @param targetState The value for the {@code targetState} attribute * @param deploymentVersion The value for the {@code deploymentVersion} attribute * @param deployments The value for the {@code deployments} attribute * @param board The value for the {@code board} attribute * @param url The value for the {@code url} attribute * @param id The value for the {@code id} attribute * @param isDeleted The value for the {@code isDeleted} attribute * @param steps The value for the {@code steps} attribute * @param flows The value for the {@code flows} attribute * @param connections The value for the {@code connections} attribute * @param description The value for the {@code description} attribute * @param properties The value for the {@code properties} attribute * @param configuredProperties The value for the {@code configuredProperties} attribute * @param version The value for the {@code version} attribute * @param createdAt The value for the {@code createdAt} attribute * @param updatedAt The value for the {@code updatedAt} attribute * @param tags The value for the {@code tags} attribute * @param name The value for the {@code name} attribute * @param resources The value for the {@code resources} attribute * @return An immutable IntegrationOverview instance */ public static IntegrationOverview of(boolean isDraft, IntegrationDeploymentState currentState, IntegrationDeploymentState targetState, Optional<Integer> deploymentVersion, Iterable<? extends IntegrationDeploymentOverview> deployments, IntegrationBulletinBoard board, Optional<String> url, Optional<String> id, boolean isDeleted, Iterable<? extends Step> steps, Iterable<? extends Flow> flows, Iterable<? extends Connection> connections, Optional<String> description, Map<String, ? extends ConfigurationProperty> properties, Map<String, ? extends String> configuredProperties, int version, long createdAt, long updatedAt, Iterable<String> tags, String name, Iterable<? extends ResourceIdentifier> resources) { return validate(new ImmutableIntegrationOverview(isDraft, currentState, targetState, deploymentVersion, deployments, board, url, id, isDeleted, steps, flows, connections, description, properties, configuredProperties, version, createdAt, updatedAt, tags, name, resources)); }
return validate(new ImmutableIntegrationOverview( this, value,
@Nullable Integer newValue = value; if (Objects.equals(this.deploymentVersion, newValue)) return this; return validate(new ImmutableIntegrationOverview( this, this.isDraft,
return validate(new ImmutableIntegrationOverview( this, this.isDraft,
return validate(new ImmutableIntegrationOverview( this, this.isDraft,
return validate(new ImmutableIntegrationOverview( this, this.isDraft,
if (this.currentState == value) return this; IntegrationDeploymentState newValue = Objects.requireNonNull(value, "currentState"); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
if (this.board == value) return this; IntegrationBulletinBoard newValue = Objects.requireNonNull(value, "board"); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
@Nullable String value = optional.orElse(null); if (Objects.equals(this.url, value)) return this; return validate(new ImmutableIntegrationOverview( this, this.isDraft,
@Nullable String value = optional.orElse(null); if (Objects.equals(this.description, value)) return this; return validate(new ImmutableIntegrationOverview( this, this.isDraft,
public final ImmutableIntegrationOverview withSteps(Step... elements) { List<Step> newValue = createUnmodifiableList(false, createSafeList(Arrays.asList(elements), true, false)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
if (this.properties == entries) return this; Map<String, ConfigurationProperty> newValue = createUnmodifiableMap(true, false, entries); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
if (this.configuredProperties == entries) return this; Map<String, String> newValue = createUnmodifiableMap(true, false, entries); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
return validate(new ImmutableIntegrationOverview( this, this.isDraft,
return validate(new ImmutableIntegrationOverview( this, this.isDraft,
return validate(new ImmutableIntegrationOverview( this, this.isDraft,
if (this.steps == elements) return this; List<Step> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
if (this.deployments == elements) return this; List<IntegrationDeploymentOverview> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
if (this.connections == elements) return this; List<Connection> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,