
com.atlan.model.workflow.WorkflowTemplateRef Maven / Gradle / Ivy
// Generated by delombok at Tue Nov 26 17:04:58 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.workflow;
import com.atlan.model.core.AtlanObject;
/**
* Reference to an existing workflow template.
* These are typically used within a task, within a step of a workflow, to reuse
* an existing workflow template to run the logic of that task.
*/
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkflowTemplateRef.WorkflowTemplateRefBuilderImpl.class)
public class WorkflowTemplateRef extends AtlanObject {
private static final long serialVersionUID = 2L;
/**
* Name of the existing workflow template.
*/
String name;
/**
* Entry point to begin executing the referenced workflow template.
*/
String template;
/**
* TBC
*/
Boolean clusterScope;
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class WorkflowTemplateRefBuilder> extends AtlanObject.AtlanObjectBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String name;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String template;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Boolean clusterScope;
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
WorkflowTemplateRef.WorkflowTemplateRefBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final WorkflowTemplateRef instance, final WorkflowTemplateRef.WorkflowTemplateRefBuilder, ?> b) {
b.name(instance.name);
b.template(instance.template);
b.clusterScope(instance.clusterScope);
}
/**
* Name of the existing workflow template.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B name(final String name) {
this.name = name;
return self();
}
/**
* Entry point to begin executing the referenced workflow template.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B template(final String template) {
this.template = template;
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clusterScope(final Boolean clusterScope) {
this.clusterScope = clusterScope;
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 "WorkflowTemplateRef.WorkflowTemplateRefBuilder(super=" + super.toString() + ", name=" + this.name + ", template=" + this.template + ", clusterScope=" + this.clusterScope + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
static final class WorkflowTemplateRefBuilderImpl extends WorkflowTemplateRef.WorkflowTemplateRefBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private WorkflowTemplateRefBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected WorkflowTemplateRef.WorkflowTemplateRefBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public WorkflowTemplateRef build() {
return new WorkflowTemplateRef(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected WorkflowTemplateRef(final WorkflowTemplateRef.WorkflowTemplateRefBuilder, ?> b) {
super(b);
this.name = b.name;
this.template = b.template;
this.clusterScope = b.clusterScope;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static WorkflowTemplateRef.WorkflowTemplateRefBuilder, ?> builder() {
return new WorkflowTemplateRef.WorkflowTemplateRefBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public WorkflowTemplateRef.WorkflowTemplateRefBuilder, ?> toBuilder() {
return new WorkflowTemplateRef.WorkflowTemplateRefBuilderImpl().$fillValuesFrom(this);
}
/**
* Name of the existing workflow template.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getName() {
return this.name;
}
/**
* Entry point to begin executing the referenced workflow template.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getTemplate() {
return this.template;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getClusterScope() {
return this.clusterScope;
}
@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 WorkflowTemplateRef)) return false;
final WorkflowTemplateRef other = (WorkflowTemplateRef) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$clusterScope = this.getClusterScope();
final java.lang.Object other$clusterScope = other.getClusterScope();
if (this$clusterScope == null ? other$clusterScope != null : !this$clusterScope.equals(other$clusterScope)) return false;
final java.lang.Object this$name = this.getName();
final java.lang.Object other$name = other.getName();
if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
final java.lang.Object this$template = this.getTemplate();
final java.lang.Object other$template = other.getTemplate();
if (this$template == null ? other$template != null : !this$template.equals(other$template)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof WorkflowTemplateRef;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $clusterScope = this.getClusterScope();
result = result * PRIME + ($clusterScope == null ? 43 : $clusterScope.hashCode());
final java.lang.Object $name = this.getName();
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final java.lang.Object $template = this.getTemplate();
result = result * PRIME + ($template == null ? 43 : $template.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "WorkflowTemplateRef(super=" + super.toString() + ", name=" + this.getName() + ", template=" + this.getTemplate() + ", clusterScope=" + this.getClusterScope() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy