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

com.atlan.model.workflow.PlaybookAction 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 2023 Atlan Pte. Ltd. */
package com.atlan.model.workflow;

import com.atlan.model.core.AtlanObject;
import com.atlan.model.enums.PlaybookActionType;

@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PlaybookAction.PlaybookActionBuilderImpl.class)
public class PlaybookAction extends AtlanObject {
    private static final long serialVersionUID = 2L;
    /**
     * Type of action to take.
     */
    PlaybookActionType type;
    /**
     * Configuration for the action to take.
     */
    PlaybookActionConfig config;
    /**
     * Detail of the singular action to apply.
     */
    PlaybookActionSchema actionsSchema;


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class PlaybookActionBuilder> extends AtlanObject.AtlanObjectBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private PlaybookActionType type;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private PlaybookActionConfig config;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private PlaybookActionSchema actionsSchema;

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

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private static void $fillValuesFromInstanceIntoBuilder(final PlaybookAction instance, final PlaybookAction.PlaybookActionBuilder b) {
            b.type(instance.type);
            b.config(instance.config);
            b.actionsSchema(instance.actionsSchema);
        }

        /**
         * Type of action to take.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B type(final PlaybookActionType type) {
            this.type = type;
            return self();
        }

        /**
         * Configuration for the action to take.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B config(final PlaybookActionConfig config) {
            this.config = config;
            return self();
        }

        /**
         * Detail of the singular action to apply.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B actionsSchema(final PlaybookActionSchema actionsSchema) {
            this.actionsSchema = actionsSchema;
            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 "PlaybookAction.PlaybookActionBuilder(super=" + super.toString() + ", type=" + this.type + ", config=" + this.config + ", actionsSchema=" + this.actionsSchema + ")";
        }
    }


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

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

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected PlaybookAction(final PlaybookAction.PlaybookActionBuilder b) {
        super(b);
        this.type = b.type;
        this.config = b.config;
        this.actionsSchema = b.actionsSchema;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static PlaybookAction.PlaybookActionBuilder builder() {
        return new PlaybookAction.PlaybookActionBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public PlaybookAction.PlaybookActionBuilder toBuilder() {
        return new PlaybookAction.PlaybookActionBuilderImpl().$fillValuesFrom(this);
    }

    /**
     * Type of action to take.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public PlaybookActionType getType() {
        return this.type;
    }

    /**
     * Configuration for the action to take.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public PlaybookActionConfig getConfig() {
        return this.config;
    }

    /**
     * Detail of the singular action to apply.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public PlaybookActionSchema getActionsSchema() {
        return this.actionsSchema;
    }

    @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 PlaybookAction)) return false;
        final PlaybookAction other = (PlaybookAction) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        final java.lang.Object this$type = this.getType();
        final java.lang.Object other$type = other.getType();
        if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
        final java.lang.Object this$config = this.getConfig();
        final java.lang.Object other$config = other.getConfig();
        if (this$config == null ? other$config != null : !this$config.equals(other$config)) return false;
        final java.lang.Object this$actionsSchema = this.getActionsSchema();
        final java.lang.Object other$actionsSchema = other.getActionsSchema();
        if (this$actionsSchema == null ? other$actionsSchema != null : !this$actionsSchema.equals(other$actionsSchema)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final java.lang.Object $type = this.getType();
        result = result * PRIME + ($type == null ? 43 : $type.hashCode());
        final java.lang.Object $config = this.getConfig();
        result = result * PRIME + ($config == null ? 43 : $config.hashCode());
        final java.lang.Object $actionsSchema = this.getActionsSchema();
        result = result * PRIME + ($actionsSchema == null ? 43 : $actionsSchema.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "PlaybookAction(super=" + super.toString() + ", type=" + this.getType() + ", config=" + this.getConfig() + ", actionsSchema=" + this.getActionsSchema() + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy