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

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

import com.atlan.model.core.CustomMetadataAttributes;

/**
 * Captures the details of custom metadata in a request.
 */
public class CustomMetadataPayload extends AtlanRequestPayload {
    private static final long serialVersionUID = 2L;
    /**
     * Custom metadata properties and their values.
     */
    CustomMetadataAttributes attributes;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    CustomMetadataPayload(final CustomMetadataAttributes attributes) {
        this.attributes = attributes;
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static class CustomMetadataPayloadBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private CustomMetadataAttributes attributes;

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        CustomMetadataPayloadBuilder() {
        }

        /**
         * Custom metadata properties and their values.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public CustomMetadataPayload.CustomMetadataPayloadBuilder attributes(final CustomMetadataAttributes attributes) {
            this.attributes = attributes;
            return this;
        }

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

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public java.lang.String toString() {
            return "CustomMetadataPayload.CustomMetadataPayloadBuilder(attributes=" + this.attributes + ")";
        }
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static CustomMetadataPayload.CustomMetadataPayloadBuilder builder() {
        return new CustomMetadataPayload.CustomMetadataPayloadBuilder();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public CustomMetadataPayload.CustomMetadataPayloadBuilder toBuilder() {
        return new CustomMetadataPayload.CustomMetadataPayloadBuilder().attributes(this.attributes);
    }

    /**
     * Custom metadata properties and their values.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public CustomMetadataAttributes getAttributes() {
        return this.attributes;
    }

    @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 CustomMetadataPayload)) return false;
        final CustomMetadataPayload other = (CustomMetadataPayload) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$attributes = this.getAttributes();
        final java.lang.Object other$attributes = other.getAttributes();
        if (this$attributes == null ? other$attributes != null : !this$attributes.equals(other$attributes)) return false;
        return true;
    }

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

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "CustomMetadataPayload(super=" + super.toString() + ", attributes=" + this.getAttributes() + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy