com.atlan.model.workflow.PlaybookActionSchema 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.enums.PlaybookActionOperator;
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PlaybookActionSchema.PlaybookActionSchemaBuilderImpl.class)
public class PlaybookActionSchema extends AtlanObject {
private static final long serialVersionUID = 2L;
/**
* Attribute on which to take the action.
*/
String operand;
/**
* Specific action to take on the attribute.
*/
PlaybookActionOperator operator;
/**
* Value to apply through the action.
*/
Object value;
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class PlaybookActionSchemaBuilder> extends AtlanObject.AtlanObjectBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String operand;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private PlaybookActionOperator operator;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Object value;
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
PlaybookActionSchema.PlaybookActionSchemaBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final PlaybookActionSchema instance, final PlaybookActionSchema.PlaybookActionSchemaBuilder, ?> b) {
b.operand(instance.operand);
b.operator(instance.operator);
b.value(instance.value);
}
/**
* Attribute on which to take the action.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B operand(final String operand) {
this.operand = operand;
return self();
}
/**
* Specific action to take on the attribute.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B operator(final PlaybookActionOperator operator) {
this.operator = operator;
return self();
}
/**
* Value to apply through the action.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B value(final Object value) {
this.value = value;
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 "PlaybookActionSchema.PlaybookActionSchemaBuilder(super=" + super.toString() + ", operand=" + this.operand + ", operator=" + this.operator + ", value=" + this.value + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
static final class PlaybookActionSchemaBuilderImpl extends PlaybookActionSchema.PlaybookActionSchemaBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private PlaybookActionSchemaBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected PlaybookActionSchema.PlaybookActionSchemaBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public PlaybookActionSchema build() {
return new PlaybookActionSchema(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected PlaybookActionSchema(final PlaybookActionSchema.PlaybookActionSchemaBuilder, ?> b) {
super(b);
this.operand = b.operand;
this.operator = b.operator;
this.value = b.value;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static PlaybookActionSchema.PlaybookActionSchemaBuilder, ?> builder() {
return new PlaybookActionSchema.PlaybookActionSchemaBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public PlaybookActionSchema.PlaybookActionSchemaBuilder, ?> toBuilder() {
return new PlaybookActionSchema.PlaybookActionSchemaBuilderImpl().$fillValuesFrom(this);
}
/**
* Attribute on which to take the action.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getOperand() {
return this.operand;
}
/**
* Specific action to take on the attribute.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public PlaybookActionOperator getOperator() {
return this.operator;
}
/**
* Value to apply through the action.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Object getValue() {
return this.value;
}
@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 PlaybookActionSchema)) return false;
final PlaybookActionSchema other = (PlaybookActionSchema) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$operand = this.getOperand();
final java.lang.Object other$operand = other.getOperand();
if (this$operand == null ? other$operand != null : !this$operand.equals(other$operand)) return false;
final java.lang.Object this$operator = this.getOperator();
final java.lang.Object other$operator = other.getOperator();
if (this$operator == null ? other$operator != null : !this$operator.equals(other$operator)) return false;
final java.lang.Object this$value = this.getValue();
final java.lang.Object other$value = other.getValue();
if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof PlaybookActionSchema;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $operand = this.getOperand();
result = result * PRIME + ($operand == null ? 43 : $operand.hashCode());
final java.lang.Object $operator = this.getOperator();
result = result * PRIME + ($operator == null ? 43 : $operator.hashCode());
final java.lang.Object $value = this.getValue();
result = result * PRIME + ($value == null ? 43 : $value.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "PlaybookActionSchema(super=" + super.toString() + ", operand=" + this.getOperand() + ", operator=" + this.getOperator() + ", value=" + this.getValue() + ")";
}
}