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

com.atlan.model.packages.ConnectionDelete 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.packages;

import com.atlan.model.enums.AtlanPackageType;

public class ConnectionDelete extends AbstractPackage {
    public static final String PREFIX = AtlanPackageType.CONNECTION_DELETE.getValue();

    /**
     * Create the base configuration for a new connection delete workflow.
     *
     * @param qualifiedName unique name of the connection whose assets should be deleted
     * @param purge if true, permanently delete the connection and its assets, otherwise only archive (soft-delete) them
     * @return the builder for the base configuration of a connection delete
     */
    public static ConnectionDeleteBuilder creator(String qualifiedName, boolean purge) {
        return _internal().setup(PREFIX, "@atlan/connection-delete")._parameter("connection-qualified-name", qualifiedName)._parameter("delete-assets", "" + true)._parameter("delete-type", purge ? "PURGE" : "SOFT");
    }


    public static abstract class ConnectionDeleteBuilder> extends AbstractPackageBuilder {
        /**
         * Set all the metadata for the package (labels, annotations, etc).
         *
         * @return the builder, with metadata set
         */
        @Override
        protected B metadata() {
            return this._label("orchestration.atlan.com/certified", "true")._label("orchestration.atlan.com/type", "utility")._label("orchestration.atlan.com/verified", "true")._label("package.argoproj.io/installer", "argopm")._label("package.argoproj.io/name", "a-t-ratlans-l-a-s-hconnection-delete")._label("package.argoproj.io/registry", "httpsc-o-l-o-ns-l-a-s-hs-l-a-s-hpackages.atlan.com")._label("orchestration.atlan.com/atlan-ui", "true")._annotation("orchestration.atlan.com/allowSchedule", "false")._annotation("orchestration.atlan.com/categories", "utility,admin,connection,delete")._annotation("orchestration.atlan.com/dependentPackage", "")._annotation("orchestration.atlan.com/docsUrl", "https://ask.atlan.com/hc/en-us/articles/6755306791697")._annotation("orchestration.atlan.com/emoji", "\ud83d\uddd1️")._annotation("orchestration.atlan.com/icon", "https://assets.atlan.com/assets/connection-delete.svg")._annotation("orchestration.atlan.com/logo", "https://assets.atlan.com/assets/connection-delete.svg")._annotation("orchestration.atlan.com/marketplaceLink", "https://packages.atlan.com/-/web/detail/@atlan/connection-delete")._annotation("orchestration.atlan.com/name", "Connection Delete")._annotation("package.argoproj.io/author", "Atlan")._annotation("package.argoproj.io/description", "Deletes a connection and all its related assets")._annotation("package.argoproj.io/homepage", "https://packages.atlan.com/-/web/detail/@atlan/connection-delete")._annotation("package.argoproj.io/keywords", "[\"delete\",\"admin\",\"utility\"]")._annotation("package.argoproj.io/name", "@atlan/connection-delete")._annotation("package.argoproj.io/registry", "https://packages.atlan.com")._annotation("package.argoproj.io/repository", "git+https://github.com/atlanhq/marketplace-packages.git")._annotation("package.argoproj.io/support", "[email protected]")._annotation("orchestration.atlan.com/atlanName", PREFIX + "-" + epoch);
        }

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

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private static void $fillValuesFromInstanceIntoBuilder(final ConnectionDelete instance, final ConnectionDelete.ConnectionDeleteBuilder b) {
        }

        @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 "ConnectionDelete.ConnectionDeleteBuilder(super=" + super.toString() + ")";
        }
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static final class ConnectionDeleteBuilderImpl extends ConnectionDelete.ConnectionDeleteBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private ConnectionDeleteBuilderImpl() {
        }

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

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected ConnectionDelete(final ConnectionDelete.ConnectionDeleteBuilder b) {
        super(b);
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static ConnectionDelete.ConnectionDeleteBuilder _internal() {
        return new ConnectionDelete.ConnectionDeleteBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public ConnectionDelete.ConnectionDeleteBuilder toBuilder() {
        return new ConnectionDelete.ConnectionDeleteBuilderImpl().$fillValuesFrom(this);
    }

    @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 ConnectionDelete)) return false;
        final ConnectionDelete other = (ConnectionDelete) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int result = super.hashCode();
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "ConnectionDelete(super=" + super.toString() + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy