/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.WithResourceId} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final IntegrationDeployment.Builder createFrom(WithResourceId instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (IntegrationDeployment.Builder) this; }
/** * Sets or replaces all mappings from the specified map as entries for the {@link IntegrationDeployment#getStepsDone() stepsDone} map. Nulls are not permitted * @param stepsDone The entries that will be added to the stepsDone map * @return {@code this} builder for use in a chained invocation */ @JsonProperty("stepsDone") public final IntegrationDeployment.Builder stepsDone(Map<String, ? extends String> stepsDone) { this.stepsDone.clear(); optBits |= OPT_BIT_STEPS_DONE; return putAllStepsDone(stepsDone); }
private void from(Object object) { if (object instanceof WithVersion) { WithVersion instance = (WithVersion) object; version(instance.getVersion()); currentState(instance.getCurrentState()); Optional<String> userIdOptional = instance.getUserId(); if (userIdOptional.isPresent()) { userId(userIdOptional); targetState(instance.getTargetState()); putAllStepsDone(instance.getStepsDone()); Optional<String> statusMessageOptional = instance.getStatusMessage(); if (statusMessageOptional.isPresent()) { statusMessage(statusMessageOptional); Optional<String> idOptional = instance.getId(); if (idOptional.isPresent()) { id(idOptional); createdAt(instance.getCreatedAt()); updatedAt(instance.getUpdatedAt()); integrationId(instance.getIntegrationId()); Integration specValue = instance.getSpec(); if (specValue != null) { spec(specValue);
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.WithVersion} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final IntegrationDeployment.Builder createFrom(WithVersion instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (IntegrationDeployment.Builder) this; }
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.integration.IntegrationDeploymentBase} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final IntegrationDeployment.Builder createFrom(IntegrationDeploymentBase instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (IntegrationDeployment.Builder) this; }
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.integration.IntegrationDeployment} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final IntegrationDeployment.Builder createFrom(IntegrationDeployment instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (IntegrationDeployment.Builder) this; }
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.WithModificationTimestamps} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final IntegrationDeployment.Builder createFrom(WithModificationTimestamps instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (IntegrationDeployment.Builder) this; }