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

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

There is a newer version: 3.0.0
Show newest version
// Generated by delombok at Thu Oct 10 18:56:32 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 single task within a single step of a workflow.
 */
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkflowTask.WorkflowTaskBuilderImpl.class)
public class WorkflowTask extends AtlanObject {
    private static final long serialVersionUID = 2L;
    /**
     * Name of the task.
     */
    String name;
    /**
     * Arguments the task uses in its execution.
     */
    WorkflowParameters arguments;
    /**
     * Reference to another workflow template that will be used to run this task.
     */
    WorkflowTemplateRef templateRef;


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class WorkflowTaskBuilder> extends AtlanObject.AtlanObjectBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String name;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private WorkflowParameters arguments;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private WorkflowTemplateRef templateRef;

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

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private static void $fillValuesFromInstanceIntoBuilder(final WorkflowTask instance, final WorkflowTask.WorkflowTaskBuilder b) {
            b.name(instance.name);
            b.arguments(instance.arguments);
            b.templateRef(instance.templateRef);
        }

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

        /**
         * Arguments the task uses in its execution.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B arguments(final WorkflowParameters arguments) {
            this.arguments = arguments;
            return self();
        }

        /**
         * Reference to another workflow template that will be used to run this task.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B templateRef(final WorkflowTemplateRef templateRef) {
            this.templateRef = templateRef;
            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 "WorkflowTask.WorkflowTaskBuilder(super=" + super.toString() + ", name=" + this.name + ", arguments=" + this.arguments + ", templateRef=" + this.templateRef + ")";
        }
    }


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

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

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected WorkflowTask(final WorkflowTask.WorkflowTaskBuilder b) {
        super(b);
        this.name = b.name;
        this.arguments = b.arguments;
        this.templateRef = b.templateRef;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static WorkflowTask.WorkflowTaskBuilder builder() {
        return new WorkflowTask.WorkflowTaskBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public WorkflowTask.WorkflowTaskBuilder toBuilder() {
        return new WorkflowTask.WorkflowTaskBuilderImpl().$fillValuesFrom(this);
    }

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

    /**
     * Arguments the task uses in its execution.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public WorkflowParameters getArguments() {
        return this.arguments;
    }

    /**
     * Reference to another workflow template that will be used to run this task.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public WorkflowTemplateRef getTemplateRef() {
        return this.templateRef;
    }

    @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 WorkflowTask)) return false;
        final WorkflowTask other = (WorkflowTask) 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$arguments = this.getArguments();
        final java.lang.Object other$arguments = other.getArguments();
        if (this$arguments == null ? other$arguments != null : !this$arguments.equals(other$arguments)) return false;
        final java.lang.Object this$templateRef = this.getTemplateRef();
        final java.lang.Object other$templateRef = other.getTemplateRef();
        if (this$templateRef == null ? other$templateRef != null : !this$templateRef.equals(other$templateRef)) return false;
        return true;
    }

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

    @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 $arguments = this.getArguments();
        result = result * PRIME + ($arguments == null ? 43 : $arguments.hashCode());
        final java.lang.Object $templateRef = this.getTemplateRef();
        result = result * PRIME + ($templateRef == null ? 43 : $templateRef.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "WorkflowTask(super=" + super.toString() + ", name=" + this.getName() + ", arguments=" + this.getArguments() + ", templateRef=" + this.getTemplateRef() + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy