com.atlan.model.workflow.WorkflowSpec Maven / Gradle / Ivy
// Generated by delombok at Wed Oct 16 22:16:02 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.workflow;
import com.atlan.model.core.AtlanObject;
import java.util.List;
import java.util.Map;
/**
* Definition of the workflow: its inputs, outputs and logic.
*/
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkflowSpec.WorkflowSpecBuilderImpl.class)
public class WorkflowSpec extends AtlanObject {
private static final long serialVersionUID = 2L;
/**
* List of specific steps in the overall workflow process.
*/
List templates;
/**
* Name of the template to use as the starting point when running the workflow.
*/
String entrypoint;
/**
* TBC
*/
final Object arguments;
/**
* TBC
*/
final Map workflowTemplateRef;
/**
* Metadata about the workflow, typically the {@code package.argoproj.io/name} annotation.
*/
final WorkflowMetadata workflowMetadata;
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class WorkflowSpecBuilder> extends AtlanObject.AtlanObjectBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private List templates;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String entrypoint;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Object arguments;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Map workflowTemplateRef;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private WorkflowMetadata workflowMetadata;
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
WorkflowSpec.WorkflowSpecBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final WorkflowSpec instance, final WorkflowSpec.WorkflowSpecBuilder, ?> b) {
b.templates(instance.templates);
b.entrypoint(instance.entrypoint);
b.arguments(instance.arguments);
b.workflowTemplateRef(instance.workflowTemplateRef);
b.workflowMetadata(instance.workflowMetadata);
}
/**
* List of specific steps in the overall workflow process.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B templates(final List templates) {
this.templates = templates;
return self();
}
/**
* Name of the template to use as the starting point when running the workflow.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B entrypoint(final String entrypoint) {
this.entrypoint = entrypoint;
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B arguments(final Object arguments) {
this.arguments = arguments;
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B workflowTemplateRef(final Map workflowTemplateRef) {
this.workflowTemplateRef = workflowTemplateRef;
return self();
}
/**
* Metadata about the workflow, typically the {@code package.argoproj.io/name} annotation.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B workflowMetadata(final WorkflowMetadata workflowMetadata) {
this.workflowMetadata = workflowMetadata;
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 "WorkflowSpec.WorkflowSpecBuilder(super=" + super.toString() + ", templates=" + this.templates + ", entrypoint=" + this.entrypoint + ", arguments=" + this.arguments + ", workflowTemplateRef=" + this.workflowTemplateRef + ", workflowMetadata=" + this.workflowMetadata + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
static final class WorkflowSpecBuilderImpl extends WorkflowSpec.WorkflowSpecBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private WorkflowSpecBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected WorkflowSpec.WorkflowSpecBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public WorkflowSpec build() {
return new WorkflowSpec(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected WorkflowSpec(final WorkflowSpec.WorkflowSpecBuilder, ?> b) {
super(b);
this.templates = b.templates;
this.entrypoint = b.entrypoint;
this.arguments = b.arguments;
this.workflowTemplateRef = b.workflowTemplateRef;
this.workflowMetadata = b.workflowMetadata;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static WorkflowSpec.WorkflowSpecBuilder, ?> builder() {
return new WorkflowSpec.WorkflowSpecBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public WorkflowSpec.WorkflowSpecBuilder, ?> toBuilder() {
return new WorkflowSpec.WorkflowSpecBuilderImpl().$fillValuesFrom(this);
}
/**
* List of specific steps in the overall workflow process.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getTemplates() {
return this.templates;
}
/**
* Name of the template to use as the starting point when running the workflow.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getEntrypoint() {
return this.entrypoint;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Object getArguments() {
return this.arguments;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getWorkflowTemplateRef() {
return this.workflowTemplateRef;
}
/**
* Metadata about the workflow, typically the {@code package.argoproj.io/name} annotation.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public WorkflowMetadata getWorkflowMetadata() {
return this.workflowMetadata;
}
@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 WorkflowSpec)) return false;
final WorkflowSpec other = (WorkflowSpec) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$templates = this.getTemplates();
final java.lang.Object other$templates = other.getTemplates();
if (this$templates == null ? other$templates != null : !this$templates.equals(other$templates)) return false;
final java.lang.Object this$entrypoint = this.getEntrypoint();
final java.lang.Object other$entrypoint = other.getEntrypoint();
if (this$entrypoint == null ? other$entrypoint != null : !this$entrypoint.equals(other$entrypoint)) return false;
final java.lang.Object this$arguments = this.getArguments();
final java.lang.Object other$arguments = other.getArguments();
if (this$arguments == null ? other$arguments != null : !this$arguments.equals(other$arguments)) return false;
final java.lang.Object this$workflowTemplateRef = this.getWorkflowTemplateRef();
final java.lang.Object other$workflowTemplateRef = other.getWorkflowTemplateRef();
if (this$workflowTemplateRef == null ? other$workflowTemplateRef != null : !this$workflowTemplateRef.equals(other$workflowTemplateRef)) return false;
final java.lang.Object this$workflowMetadata = this.getWorkflowMetadata();
final java.lang.Object other$workflowMetadata = other.getWorkflowMetadata();
if (this$workflowMetadata == null ? other$workflowMetadata != null : !this$workflowMetadata.equals(other$workflowMetadata)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof WorkflowSpec;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $templates = this.getTemplates();
result = result * PRIME + ($templates == null ? 43 : $templates.hashCode());
final java.lang.Object $entrypoint = this.getEntrypoint();
result = result * PRIME + ($entrypoint == null ? 43 : $entrypoint.hashCode());
final java.lang.Object $arguments = this.getArguments();
result = result * PRIME + ($arguments == null ? 43 : $arguments.hashCode());
final java.lang.Object $workflowTemplateRef = this.getWorkflowTemplateRef();
result = result * PRIME + ($workflowTemplateRef == null ? 43 : $workflowTemplateRef.hashCode());
final java.lang.Object $workflowMetadata = this.getWorkflowMetadata();
result = result * PRIME + ($workflowMetadata == null ? 43 : $workflowMetadata.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "WorkflowSpec(super=" + super.toString() + ", templates=" + this.getTemplates() + ", entrypoint=" + this.getEntrypoint() + ", arguments=" + this.getArguments() + ", workflowTemplateRef=" + this.getWorkflowTemplateRef() + ", workflowMetadata=" + this.getWorkflowMetadata() + ")";
}
}