com.atlan.model.structs.GoogleLabel Maven / Gradle / Ivy
// Generated by delombok at Wed Oct 16 22:16:04 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.structs;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.annotation.processing.Generated;
import lombok.*;
/**
* Detailed information about a Google label.
*/
@Generated("com.atlan.generators.ModelGeneratorV2")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GoogleLabel.GoogleLabelBuilderImpl.class)
public class GoogleLabel extends AtlanStruct {
private static final long serialVersionUID = 2L;
public static final String TYPE_NAME = "GoogleLabel";
/**
* Fixed typeName for GoogleLabel.
*/
@JsonIgnore
String typeName;
/**
* Key of the Google label.
*/
String googleLabelKey;
/**
* Value for the Google label.
*/
String googleLabelValue;
/**
* Quickly create a new GoogleLabel.
* @param googleLabelKey Key of the Google label.
* @param googleLabelValue Value for the Google label.
* @return a GoogleLabel with the provided information
*/
public static GoogleLabel of(String googleLabelKey, String googleLabelValue) {
return GoogleLabel.builder().googleLabelKey(googleLabelKey).googleLabelValue(googleLabelValue).build();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static String $default$typeName() {
return TYPE_NAME;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class GoogleLabelBuilder> extends AtlanStruct.AtlanStructBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private boolean typeName$set;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String typeName$value;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String googleLabelKey;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String googleLabelValue;
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
GoogleLabel.GoogleLabelBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final GoogleLabel instance, final GoogleLabel.GoogleLabelBuilder, ?> b) {
b.typeName(instance.typeName);
b.googleLabelKey(instance.googleLabelKey);
b.googleLabelValue(instance.googleLabelValue);
}
/**
* Fixed typeName for GoogleLabel.
* @return {@code this}.
*/
@JsonIgnore
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B typeName(final String typeName) {
this.typeName$value = typeName;
typeName$set = true;
return self();
}
/**
* Key of the Google label.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B googleLabelKey(final String googleLabelKey) {
this.googleLabelKey = googleLabelKey;
return self();
}
/**
* Value for the Google label.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B googleLabelValue(final String googleLabelValue) {
this.googleLabelValue = googleLabelValue;
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 "GoogleLabel.GoogleLabelBuilder(super=" + super.toString() + ", typeName$value=" + this.typeName$value + ", googleLabelKey=" + this.googleLabelKey + ", googleLabelValue=" + this.googleLabelValue + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
static final class GoogleLabelBuilderImpl extends GoogleLabel.GoogleLabelBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private GoogleLabelBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected GoogleLabel.GoogleLabelBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public GoogleLabel build() {
return new GoogleLabel(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected GoogleLabel(final GoogleLabel.GoogleLabelBuilder, ?> b) {
super(b);
if (b.typeName$set) this.typeName = b.typeName$value;
else this.typeName = GoogleLabel.$default$typeName();
this.googleLabelKey = b.googleLabelKey;
this.googleLabelValue = b.googleLabelValue;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static GoogleLabel.GoogleLabelBuilder, ?> builder() {
return new GoogleLabel.GoogleLabelBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public GoogleLabel.GoogleLabelBuilder, ?> toBuilder() {
return new GoogleLabel.GoogleLabelBuilderImpl().$fillValuesFrom(this);
}
/**
* Key of the Google label.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getGoogleLabelKey() {
return this.googleLabelKey;
}
/**
* Value for the Google label.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getGoogleLabelValue() {
return this.googleLabelValue;
}
@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 GoogleLabel)) return false;
final GoogleLabel other = (GoogleLabel) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$typeName = this.getTypeName();
final java.lang.Object other$typeName = other.getTypeName();
if (this$typeName == null ? other$typeName != null : !this$typeName.equals(other$typeName)) return false;
final java.lang.Object this$googleLabelKey = this.getGoogleLabelKey();
final java.lang.Object other$googleLabelKey = other.getGoogleLabelKey();
if (this$googleLabelKey == null ? other$googleLabelKey != null : !this$googleLabelKey.equals(other$googleLabelKey)) return false;
final java.lang.Object this$googleLabelValue = this.getGoogleLabelValue();
final java.lang.Object other$googleLabelValue = other.getGoogleLabelValue();
if (this$googleLabelValue == null ? other$googleLabelValue != null : !this$googleLabelValue.equals(other$googleLabelValue)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof GoogleLabel;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $typeName = this.getTypeName();
result = result * PRIME + ($typeName == null ? 43 : $typeName.hashCode());
final java.lang.Object $googleLabelKey = this.getGoogleLabelKey();
result = result * PRIME + ($googleLabelKey == null ? 43 : $googleLabelKey.hashCode());
final java.lang.Object $googleLabelValue = this.getGoogleLabelValue();
result = result * PRIME + ($googleLabelValue == null ? 43 : $googleLabelValue.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "GoogleLabel(super=" + super.toString() + ", typeName=" + this.getTypeName() + ", googleLabelKey=" + this.getGoogleLabelKey() + ", googleLabelValue=" + this.getGoogleLabelValue() + ")";
}
/**
* Fixed typeName for GoogleLabel.
*/
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getTypeName() {
return this.typeName;
}
}