com.databricks.sdk.service.ml.CreateTransitionRequest Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.ml;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class CreateTransitionRequest {
/** User-provided comment on the action. */
@JsonProperty("comment")
private String comment;
/** Name of the model. */
@JsonProperty("name")
private String name;
/**
* Target stage of the transition. Valid values are:
*
* * `None`: The initial stage of a model version.
*
*
* `Staging`: Staging or pre-production stage.
*
*
* `Production`: Production stage.
*
*
* `Archived`: Archived stage.
*/
@JsonProperty("stage")
private Stage stage;
/** Version of the model. */
@JsonProperty("version")
private String version;
public CreateTransitionRequest setComment(String comment) {
this.comment = comment;
return this;
}
public String getComment() {
return comment;
}
public CreateTransitionRequest setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public CreateTransitionRequest setStage(Stage stage) {
this.stage = stage;
return this;
}
public Stage getStage() {
return stage;
}
public CreateTransitionRequest setVersion(String version) {
this.version = version;
return this;
}
public String getVersion() {
return version;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateTransitionRequest that = (CreateTransitionRequest) o;
return Objects.equals(comment, that.comment)
&& Objects.equals(name, that.name)
&& Objects.equals(stage, that.stage)
&& Objects.equals(version, that.version);
}
@Override
public int hashCode() {
return Objects.hash(comment, name, stage, version);
}
@Override
public String toString() {
return new ToStringer(CreateTransitionRequest.class)
.add("comment", comment)
.add("name", name)
.add("stage", stage)
.add("version", version)
.toString();
}
}