/** * Copy the current immutable object with elements that replace the content of {@link Integration#getSteps() steps}. * @param elements The elements to set * @return A modified copy of {@code this} object */ @Deprecated public final ImmutableIntegration withSteps(Step... elements) { List<Step> newValue = createUnmodifiableList(false, createSafeList(Arrays.asList(elements), true, false)); return validate(new ImmutableIntegration( this, this.id, this.isDeleted, newValue, this.flows, this.connections, this.description, this.properties, this.configuredProperties, this.version, this.createdAt, this.updatedAt, this.tags, this.name, this.resources)); }
/** * Copy the current immutable object with elements that replace the content of {@link Integration#getFlows() flows}. * @param elements The elements to set * @return A modified copy of {@code this} object */ public final ImmutableIntegration withFlows(Flow... elements) { List<Flow> newValue = createUnmodifiableList(false, createSafeList(Arrays.asList(elements), true, false)); return validate(new ImmutableIntegration( this, this.id, this.isDeleted, this.steps, newValue, this.connections, this.description, this.properties, this.configuredProperties, this.version, this.createdAt, this.updatedAt, this.tags, this.name, this.resources)); }
/** * Copy the current immutable object with elements that replace the content of {@link Integration#getConnections() connections}. * @param elements The elements to set * @return A modified copy of {@code this} object */ public final ImmutableIntegration withConnections(Connection... elements) { List<Connection> newValue = createUnmodifiableList(false, createSafeList(Arrays.asList(elements), true, false)); return validate(new ImmutableIntegration( this, this.id, this.isDeleted, this.steps, this.flows, newValue, this.description, this.properties, this.configuredProperties, this.version, this.createdAt, this.updatedAt, this.tags, this.name, this.resources)); }
/** * Copy the current immutable object with elements that replace the content of {@link Integration#getResources() resources}. * @param elements The elements to set * @return A modified copy of {@code this} object */ public final ImmutableIntegration withResources(ResourceIdentifier... elements) { List<ResourceIdentifier> newValue = createUnmodifiableList(false, createSafeList(Arrays.asList(elements), true, false)); return validate(new ImmutableIntegration( this, this.id, this.isDeleted, this.steps, this.flows, this.connections, this.description, this.properties, this.configuredProperties, this.version, this.createdAt, this.updatedAt, this.tags, this.name, newValue)); }
/** * Copy the current immutable object with elements that replace the content of {@link Integration#getSteps() steps}. * A shallow reference equality check is used to prevent copying of the same value by returning {@code this}. * @param elements An iterable of steps elements to set * @return A modified copy of {@code this} object */ @Deprecated public final ImmutableIntegration withSteps(Iterable<? extends Step> elements) { if (this.steps == elements) return this; List<Step> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegration( this, this.id, this.isDeleted, newValue, this.flows, this.connections, this.description, this.properties, this.configuredProperties, this.version, this.createdAt, this.updatedAt, this.tags, this.name, this.resources)); }
/** * Copy the current immutable object with elements that replace the content of {@link Integration#getFlows() flows}. * A shallow reference equality check is used to prevent copying of the same value by returning {@code this}. * @param elements An iterable of flows elements to set * @return A modified copy of {@code this} object */ public final ImmutableIntegration withFlows(Iterable<? extends Flow> elements) { if (this.flows == elements) return this; List<Flow> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegration( this, this.id, this.isDeleted, this.steps, newValue, this.connections, this.description, this.properties, this.configuredProperties, this.version, this.createdAt, this.updatedAt, this.tags, this.name, this.resources)); }
/** * Copy the current immutable object with elements that replace the content of {@link Integration#getConnections() connections}. * A shallow reference equality check is used to prevent copying of the same value by returning {@code this}. * @param elements An iterable of connections elements to set * @return A modified copy of {@code this} object */ public final ImmutableIntegration withConnections(Iterable<? extends Connection> elements) { if (this.connections == elements) return this; List<Connection> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegration( this, this.id, this.isDeleted, this.steps, this.flows, newValue, this.description, this.properties, this.configuredProperties, this.version, this.createdAt, this.updatedAt, this.tags, this.name, this.resources)); }
/** * Copy the current immutable object with elements that replace the content of {@link Integration#getResources() resources}. * A shallow reference equality check is used to prevent copying of the same value by returning {@code this}. * @param elements An iterable of resources elements to set * @return A modified copy of {@code this} object */ public final ImmutableIntegration withResources(Iterable<? extends ResourceIdentifier> elements) { if (this.resources == elements) return this; List<ResourceIdentifier> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return validate(new ImmutableIntegration( this, this.id, this.isDeleted, this.steps, this.flows, this.connections, this.description, this.properties, this.configuredProperties, this.version, this.createdAt, this.updatedAt, this.tags, this.name, newValue)); }
initShim.steps(createUnmodifiableList(true, builder.steps)); initShim.flows(createUnmodifiableList(true, builder.flows)); initShim.connections(createUnmodifiableList(true, builder.connections)); initShim.resources(createUnmodifiableList(true, builder.resources));
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.tags = createUnmodifiableSortedSet(false, createSafeList(tags, false, true)); this.name = name; this.resources = createUnmodifiableList(false, createSafeList(resources, true, false)); initShim.isDeleted(this.isDeleted); initShim.steps(this.steps);