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

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

// 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.search.IndexSearchRequest;

@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PlaybookRuleConfig.PlaybookRuleConfigBuilderImpl.class)
public class PlaybookRuleConfig extends AtlanObject {
    private static final long serialVersionUID = 2L;
    /**
     * Search to run to filter results for the actions.
     */
    IndexSearchRequest query;
    /**
     * Whether to exclude scrubbed assets (true) or include them (false).
     */
    Boolean filterScrubbed;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static Boolean $default$filterScrubbed() {
        return true;
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class PlaybookRuleConfigBuilder> extends AtlanObject.AtlanObjectBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private IndexSearchRequest query;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private boolean filterScrubbed$set;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Boolean filterScrubbed$value;

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

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private static void $fillValuesFromInstanceIntoBuilder(final PlaybookRuleConfig instance, final PlaybookRuleConfig.PlaybookRuleConfigBuilder b) {
            b.query(instance.query);
            b.filterScrubbed(instance.filterScrubbed);
        }

        /**
         * Search to run to filter results for the actions.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B query(final IndexSearchRequest query) {
            this.query = query;
            return self();
        }

        /**
         * Whether to exclude scrubbed assets (true) or include them (false).
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B filterScrubbed(final Boolean filterScrubbed) {
            this.filterScrubbed$value = filterScrubbed;
            filterScrubbed$set = true;
            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 "PlaybookRuleConfig.PlaybookRuleConfigBuilder(super=" + super.toString() + ", query=" + this.query + ", filterScrubbed$value=" + this.filterScrubbed$value + ")";
        }
    }


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

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

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected PlaybookRuleConfig(final PlaybookRuleConfig.PlaybookRuleConfigBuilder b) {
        super(b);
        this.query = b.query;
        if (b.filterScrubbed$set) this.filterScrubbed = b.filterScrubbed$value;
         else this.filterScrubbed = PlaybookRuleConfig.$default$filterScrubbed();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static PlaybookRuleConfig.PlaybookRuleConfigBuilder builder() {
        return new PlaybookRuleConfig.PlaybookRuleConfigBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public PlaybookRuleConfig.PlaybookRuleConfigBuilder toBuilder() {
        return new PlaybookRuleConfig.PlaybookRuleConfigBuilderImpl().$fillValuesFrom(this);
    }

    /**
     * Search to run to filter results for the actions.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public IndexSearchRequest getQuery() {
        return this.query;
    }

    /**
     * Whether to exclude scrubbed assets (true) or include them (false).
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Boolean getFilterScrubbed() {
        return this.filterScrubbed;
    }

    @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 PlaybookRuleConfig)) return false;
        final PlaybookRuleConfig other = (PlaybookRuleConfig) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        final java.lang.Object this$filterScrubbed = this.getFilterScrubbed();
        final java.lang.Object other$filterScrubbed = other.getFilterScrubbed();
        if (this$filterScrubbed == null ? other$filterScrubbed != null : !this$filterScrubbed.equals(other$filterScrubbed)) return false;
        final java.lang.Object this$query = this.getQuery();
        final java.lang.Object other$query = other.getQuery();
        if (this$query == null ? other$query != null : !this$query.equals(other$query)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final java.lang.Object $filterScrubbed = this.getFilterScrubbed();
        result = result * PRIME + ($filterScrubbed == null ? 43 : $filterScrubbed.hashCode());
        final java.lang.Object $query = this.getQuery();
        result = result * PRIME + ($query == null ? 43 : $query.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "PlaybookRuleConfig(super=" + super.toString() + ", query=" + this.getQuery() + ", filterScrubbed=" + this.getFilterScrubbed() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy