All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlan.model.workflow.WorkflowTemplate Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
// Generated by delombok at Tue Nov 26 17:04:58 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.workflow;

import com.atlan.model.core.AtlanObject;

/**
 * Definition of a specific step in a workflow process.
 */
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkflowTemplate.WorkflowTemplateBuilderImpl.class)
public class WorkflowTemplate extends AtlanObject {
    private static final long serialVersionUID = 2L;
    /**
     * Name of this step.
     */
    String name;
    /**
     * Inputs to this step.
     */
    final Object inputs;
    /**
     * Outputs from this step.
     */
    final Object outputs;
    /**
     * Metadata describing the step.
     */
    final Object metadata;
    /**
     * Definition of the tasks within the step.
     */
    WorkflowDAG dag;


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class WorkflowTemplateBuilder> extends AtlanObject.AtlanObjectBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String name;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Object inputs;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Object outputs;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Object metadata;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private WorkflowDAG dag;

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected B $fillValuesFrom(final C instance) {
            super.$fillValuesFrom(instance);
            WorkflowTemplate.WorkflowTemplateBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
            return self();
        }

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private static void $fillValuesFromInstanceIntoBuilder(final WorkflowTemplate instance, final WorkflowTemplate.WorkflowTemplateBuilder b) {
            b.name(instance.name);
            b.inputs(instance.inputs);
            b.outputs(instance.outputs);
            b.metadata(instance.metadata);
            b.dag(instance.dag);
        }

        /**
         * Name of this step.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B name(final String name) {
            this.name = name;
            return self();
        }

        /**
         * Inputs to this step.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B inputs(final Object inputs) {
            this.inputs = inputs;
            return self();
        }

        /**
         * Outputs from this step.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B outputs(final Object outputs) {
            this.outputs = outputs;
            return self();
        }

        /**
         * Metadata describing the step.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B metadata(final Object metadata) {
            this.metadata = metadata;
            return self();
        }

        /**
         * Definition of the tasks within the step.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B dag(final WorkflowDAG dag) {
            this.dag = dag;
            return self();
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected abstract B self();

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public abstract C build();

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public java.lang.String toString() {
            return "WorkflowTemplate.WorkflowTemplateBuilder(super=" + super.toString() + ", name=" + this.name + ", inputs=" + this.inputs + ", outputs=" + this.outputs + ", metadata=" + this.metadata + ", dag=" + this.dag + ")";
        }
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
    static final class WorkflowTemplateBuilderImpl extends WorkflowTemplate.WorkflowTemplateBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private WorkflowTemplateBuilderImpl() {
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected WorkflowTemplate.WorkflowTemplateBuilderImpl self() {
            return this;
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public WorkflowTemplate build() {
            return new WorkflowTemplate(this);
        }
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected WorkflowTemplate(final WorkflowTemplate.WorkflowTemplateBuilder b) {
        super(b);
        this.name = b.name;
        this.inputs = b.inputs;
        this.outputs = b.outputs;
        this.metadata = b.metadata;
        this.dag = b.dag;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static WorkflowTemplate.WorkflowTemplateBuilder builder() {
        return new WorkflowTemplate.WorkflowTemplateBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public WorkflowTemplate.WorkflowTemplateBuilder toBuilder() {
        return new WorkflowTemplate.WorkflowTemplateBuilderImpl().$fillValuesFrom(this);
    }

    /**
     * Name of this step.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getName() {
        return this.name;
    }

    /**
     * Inputs to this step.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Object getInputs() {
        return this.inputs;
    }

    /**
     * Outputs from this step.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Object getOutputs() {
        return this.outputs;
    }

    /**
     * Metadata describing the step.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Object getMetadata() {
        return this.metadata;
    }

    /**
     * Definition of the tasks within the step.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public WorkflowDAG getDag() {
        return this.dag;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof WorkflowTemplate)) return false;
        final WorkflowTemplate other = (WorkflowTemplate) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        final java.lang.Object this$name = this.getName();
        final java.lang.Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final java.lang.Object this$inputs = this.getInputs();
        final java.lang.Object other$inputs = other.getInputs();
        if (this$inputs == null ? other$inputs != null : !this$inputs.equals(other$inputs)) return false;
        final java.lang.Object this$outputs = this.getOutputs();
        final java.lang.Object other$outputs = other.getOutputs();
        if (this$outputs == null ? other$outputs != null : !this$outputs.equals(other$outputs)) return false;
        final java.lang.Object this$metadata = this.getMetadata();
        final java.lang.Object other$metadata = other.getMetadata();
        if (this$metadata == null ? other$metadata != null : !this$metadata.equals(other$metadata)) return false;
        final java.lang.Object this$dag = this.getDag();
        final java.lang.Object other$dag = other.getDag();
        if (this$dag == null ? other$dag != null : !this$dag.equals(other$dag)) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof WorkflowTemplate;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final java.lang.Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        final java.lang.Object $inputs = this.getInputs();
        result = result * PRIME + ($inputs == null ? 43 : $inputs.hashCode());
        final java.lang.Object $outputs = this.getOutputs();
        result = result * PRIME + ($outputs == null ? 43 : $outputs.hashCode());
        final java.lang.Object $metadata = this.getMetadata();
        result = result * PRIME + ($metadata == null ? 43 : $metadata.hashCode());
        final java.lang.Object $dag = this.getDag();
        result = result * PRIME + ($dag == null ? 43 : $dag.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "WorkflowTemplate(super=" + super.toString() + ", name=" + this.getName() + ", inputs=" + this.getInputs() + ", outputs=" + this.getOutputs() + ", metadata=" + this.getMetadata() + ", dag=" + this.getDag() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy