All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.apps.UpdateAppRequest Maven / Gradle / Ivy

The newest version!
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.apps;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

/** Update an app */
@Generated
public class UpdateAppRequest {
  /** */
  @JsonProperty("app")
  private App app;

  /**
   * The name of the app. The name must contain only lowercase alphanumeric characters and hyphens.
   * It must be unique within the workspace.
   */
  @JsonIgnore private String name;

  public UpdateAppRequest setApp(App app) {
    this.app = app;
    return this;
  }

  public App getApp() {
    return app;
  }

  public UpdateAppRequest setName(String name) {
    this.name = name;
    return this;
  }

  public String getName() {
    return name;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    UpdateAppRequest that = (UpdateAppRequest) o;
    return Objects.equals(app, that.app) && Objects.equals(name, that.name);
  }

  @Override
  public int hashCode() {
    return Objects.hash(app, name);
  }

  @Override
  public String toString() {
    return new ToStringer(UpdateAppRequest.class).add("app", app).add("name", name).toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy