/** * 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#getTags() tags}. * @param elements The elements to set * @return A modified copy of {@code this} object */ public final ImmutableIntegration withTags(String... elements) { SortedSet<String> newValue = createUnmodifiableSortedSet(false, createSafeList(Arrays.asList(elements), false, true)); 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, newValue, 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#getTags() tags}. * A shallow reference equality check is used to prevent copying of the same value by returning {@code this}. * @param elements An iterable of tags elements to set * @return A modified copy of {@code this} object */ public final ImmutableIntegration withTags(Iterable<String> elements) { if (this.tags == elements) return this; SortedSet<String> newValue = createUnmodifiableSortedSet(false, createSafeList(elements, false, true)); 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, newValue, 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)); }
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.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.isDeleted(this.isDeleted); initShim.steps(this.steps);
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.isDeletedIsSet()) {