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

com.atlan.model.admin.CustomMetadataRequest 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.admin;

public class CustomMetadataRequest extends AtlanRequest {
    private static final long serialVersionUID = 2L;
    public static final String REQUEST_TYPE = "bm_attribute";
    public static final String SOURCE_TYPE = "static";
    /**
     * Fixed requestType for custom metadata.
     */
    String requestType;
    /**
     * Fixed sourceType for custom metadata.
     */
    String sourceType;
    /**
     * Custom metadata attributes and values that were requested.
     */
    CustomMetadataPayload payload;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static String $default$requestType() {
        return REQUEST_TYPE;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static String $default$sourceType() {
        return SOURCE_TYPE;
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class CustomMetadataRequestBuilder> extends AtlanRequest.AtlanRequestBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private boolean requestType$set;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String requestType$value;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private boolean sourceType$set;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String sourceType$value;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private CustomMetadataPayload payload;

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

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private static void $fillValuesFromInstanceIntoBuilder(final CustomMetadataRequest instance, final CustomMetadataRequest.CustomMetadataRequestBuilder b) {
            b.requestType(instance.requestType);
            b.sourceType(instance.sourceType);
            b.payload(instance.payload);
        }

        /**
         * Fixed requestType for custom metadata.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B requestType(final String requestType) {
            this.requestType$value = requestType;
            requestType$set = true;
            return self();
        }

        /**
         * Fixed sourceType for custom metadata.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B sourceType(final String sourceType) {
            this.sourceType$value = sourceType;
            sourceType$set = true;
            return self();
        }

        /**
         * Custom metadata attributes and values that were requested.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B payload(final CustomMetadataPayload payload) {
            this.payload = payload;
            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 "CustomMetadataRequest.CustomMetadataRequestBuilder(super=" + super.toString() + ", requestType$value=" + this.requestType$value + ", sourceType$value=" + this.sourceType$value + ", payload=" + this.payload + ")";
        }
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static final class CustomMetadataRequestBuilderImpl extends CustomMetadataRequest.CustomMetadataRequestBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private CustomMetadataRequestBuilderImpl() {
        }

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

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected CustomMetadataRequest(final CustomMetadataRequest.CustomMetadataRequestBuilder b) {
        super(b);
        if (b.requestType$set) this.requestType = b.requestType$value;
         else this.requestType = CustomMetadataRequest.$default$requestType();
        if (b.sourceType$set) this.sourceType = b.sourceType$value;
         else this.sourceType = CustomMetadataRequest.$default$sourceType();
        this.payload = b.payload;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static CustomMetadataRequest.CustomMetadataRequestBuilder builder() {
        return new CustomMetadataRequest.CustomMetadataRequestBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public CustomMetadataRequest.CustomMetadataRequestBuilder toBuilder() {
        return new CustomMetadataRequest.CustomMetadataRequestBuilderImpl().$fillValuesFrom(this);
    }

    /**
     * Custom metadata attributes and values that were requested.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public CustomMetadataPayload getPayload() {
        return this.payload;
    }

    @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 CustomMetadataRequest)) return false;
        final CustomMetadataRequest other = (CustomMetadataRequest) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        final java.lang.Object this$requestType = this.getRequestType();
        final java.lang.Object other$requestType = other.getRequestType();
        if (this$requestType == null ? other$requestType != null : !this$requestType.equals(other$requestType)) return false;
        final java.lang.Object this$sourceType = this.getSourceType();
        final java.lang.Object other$sourceType = other.getSourceType();
        if (this$sourceType == null ? other$sourceType != null : !this$sourceType.equals(other$sourceType)) return false;
        final java.lang.Object this$payload = this.getPayload();
        final java.lang.Object other$payload = other.getPayload();
        if (this$payload == null ? other$payload != null : !this$payload.equals(other$payload)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final java.lang.Object $requestType = this.getRequestType();
        result = result * PRIME + ($requestType == null ? 43 : $requestType.hashCode());
        final java.lang.Object $sourceType = this.getSourceType();
        result = result * PRIME + ($sourceType == null ? 43 : $sourceType.hashCode());
        final java.lang.Object $payload = this.getPayload();
        result = result * PRIME + ($payload == null ? 43 : $payload.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "CustomMetadataRequest(super=" + super.toString() + ", requestType=" + this.getRequestType() + ", sourceType=" + this.getSourceType() + ", payload=" + this.getPayload() + ")";
    }

    /**
     * Fixed requestType for custom metadata.
     */
    @Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getRequestType() {
        return this.requestType;
    }

    /**
     * Fixed sourceType for custom metadata.
     */
    @Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getSourceType() {
        return this.sourceType;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy