List<Connection> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
Map<String, ConfigurationProperty> newValue = createUnmodifiableMap(true, false, entries); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
SortedSet<String> newValue = createUnmodifiableSortedSet(false, createSafeList(elements, false, true)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
/** * 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)); }
this.targetState = Objects.requireNonNull(targetState, "targetState"); this.deploymentVersion = deploymentVersion.orElse(null); this.deployments = createUnmodifiableList(false, createSafeList(deployments, true, false)); this.board = Objects.requireNonNull(board, "board"); this.url = url.orElse(null); this.id = id.orElse(null); this.isDeleted = isDeleted; this.steps = createUnmodifiableList(false, createSafeList(steps, true, false)); this.flows = createUnmodifiableList(false, createSafeList(flows, true, false)); this.connections = createUnmodifiableList(false, createSafeList(connections, true, false)); this.description = description.orElse(null); this.properties = createUnmodifiableMap(true, false, properties); this.configuredProperties = createUnmodifiableMap(true, false, configuredProperties); this.version = version; this.createdAt = createdAt; this.updatedAt = updatedAt; this.tags = createUnmodifiableSortedSet(false, createSafeList(tags, false, true)); this.name = name; this.resources = createUnmodifiableList(false, createSafeList(resources, true, false)); initShim.currentState(this.currentState); initShim.targetState(this.targetState);
/** * 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)); }
private Object readResolve() throws ObjectStreamException { return validate(this); }
/** * This instance is equal to all instances of {@code ImmutableIntegrationOverview} that have equal attribute values. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(@Nullable Object another) { if (this == another) return true; return another instanceof ImmutableIntegrationOverview && equalTo((ImmutableIntegrationOverview) another); }
/** * 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, List<IntegrationDeploymentOverview> deployments, IntegrationBulletinBoard board, Optional<String> url, Optional<String> id, boolean isDeleted, List<Step> steps, List<Flow> flows, List<Connection> connections, Optional<String> description, Map<String, ConfigurationProperty> properties, Map<String, String> configuredProperties, int version, long createdAt, long updatedAt, SortedSet<String> tags, String name, List<ResourceIdentifier> resources) { return of(isDraft, currentState, targetState, deploymentVersion, (Iterable<? extends IntegrationDeploymentOverview>) deployments, board, url, id, isDeleted, (Iterable<? extends Step>) steps, (Iterable<? extends Flow>) flows, (Iterable<? extends Connection>) connections, description, properties, configuredProperties, version, createdAt, updatedAt, (Iterable<String>) tags, name, (Iterable<? extends ResourceIdentifier>) resources); }
return validate(new ImmutableIntegrationOverview( this, this.isDraft,
this.id = builder.id; this.description = builder.description; this.properties = createUnmodifiableMap(false, false, builder.properties); this.tags = createUnmodifiableSortedSet(false, createSafeList(builder.tags, false, false)); this.name = builder.name; if (builder.currentState != null) { initShim.deployments(createUnmodifiableList(true, builder.deployments)); initShim.steps(createUnmodifiableList(true, builder.steps)); initShim.flows(createUnmodifiableList(true, builder.flows)); initShim.connections(createUnmodifiableList(true, builder.connections)); initShim.configuredProperties(createUnmodifiableMap(false, false, builder.configuredProperties)); initShim.resources(createUnmodifiableList(true, builder.resources));
List<IntegrationDeploymentOverview> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
return validate(new ImmutableIntegrationOverview( this, this.isDraft,
SortedSet<String> newValue = createUnmodifiableSortedSet(false, createSafeList(Arrays.asList(elements), false, true)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
Map<String, String> newValue = createUnmodifiableMap(true, false, entries); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
List<Flow> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
return validate(new ImmutableIntegrationOverview( this, value,
List<ResourceIdentifier> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,
return validate(new ImmutableIntegrationOverview( this, this.isDraft,
List<ResourceIdentifier> newValue = createUnmodifiableList(false, createSafeList(Arrays.asList(elements), true, false)); return validate(new ImmutableIntegrationOverview( this, this.isDraft,