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

com.dominodatalab.api.model.DominoDataplaneDataPlaneConfiguration Maven / Gradle / Ivy

/*
 * Domino Data Lab API v4
 * This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key. 
 *
 * The version of the OpenAPI document: 4.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.dominodatalab.api.model;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * DominoDataplaneDataPlaneConfiguration
 */
@JsonPropertyOrder({
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_STORAGE_CLASS,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_ADDRESS,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_FILE_SYNC_DISABLED,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_DOMINO_API_HOSTNAME,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_DOCKER_REGISTRY_HOSTNAME,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_RABBIT_MQ_HOSTNAME,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_ISTIO_ENABLED,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_S3_ENDPOINT_URL
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoDataplaneDataPlaneConfiguration {
  public static final String JSON_PROPERTY_STORAGE_CLASS = "storageClass";
  private String storageClass;

  public static final String JSON_PROPERTY_ADDRESS = "address";
  private String address;

  public static final String JSON_PROPERTY_FILE_SYNC_DISABLED = "fileSyncDisabled";
  private Boolean fileSyncDisabled;

  public static final String JSON_PROPERTY_DOMINO_API_HOSTNAME = "dominoApiHostname";
  private String dominoApiHostname;

  public static final String JSON_PROPERTY_DOCKER_REGISTRY_HOSTNAME = "dockerRegistryHostname";
  private String dockerRegistryHostname;

  public static final String JSON_PROPERTY_RABBIT_MQ_HOSTNAME = "rabbitMqHostname";
  private String rabbitMqHostname;

  public static final String JSON_PROPERTY_ISTIO_ENABLED = "istioEnabled";
  private Boolean istioEnabled;

  public static final String JSON_PROPERTY_S3_ENDPOINT_URL = "s3EndpointUrl";
  private String s3EndpointUrl;

  public DominoDataplaneDataPlaneConfiguration() { 
  }

  public DominoDataplaneDataPlaneConfiguration storageClass(String storageClass) {
    this.storageClass = storageClass;
    return this;
  }

   /**
   * Get storageClass
   * @return storageClass
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_STORAGE_CLASS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getStorageClass() {
    return storageClass;
  }


  @JsonProperty(JSON_PROPERTY_STORAGE_CLASS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStorageClass(String storageClass) {
    this.storageClass = storageClass;
  }


  public DominoDataplaneDataPlaneConfiguration address(String address) {
    this.address = address;
    return this;
  }

   /**
   * Get address
   * @return address
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ADDRESS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getAddress() {
    return address;
  }


  @JsonProperty(JSON_PROPERTY_ADDRESS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAddress(String address) {
    this.address = address;
  }


  public DominoDataplaneDataPlaneConfiguration fileSyncDisabled(Boolean fileSyncDisabled) {
    this.fileSyncDisabled = fileSyncDisabled;
    return this;
  }

   /**
   * Get fileSyncDisabled
   * @return fileSyncDisabled
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_FILE_SYNC_DISABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getFileSyncDisabled() {
    return fileSyncDisabled;
  }


  @JsonProperty(JSON_PROPERTY_FILE_SYNC_DISABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFileSyncDisabled(Boolean fileSyncDisabled) {
    this.fileSyncDisabled = fileSyncDisabled;
  }


  public DominoDataplaneDataPlaneConfiguration dominoApiHostname(String dominoApiHostname) {
    this.dominoApiHostname = dominoApiHostname;
    return this;
  }

   /**
   * Get dominoApiHostname
   * @return dominoApiHostname
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_DOMINO_API_HOSTNAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getDominoApiHostname() {
    return dominoApiHostname;
  }


  @JsonProperty(JSON_PROPERTY_DOMINO_API_HOSTNAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDominoApiHostname(String dominoApiHostname) {
    this.dominoApiHostname = dominoApiHostname;
  }


  public DominoDataplaneDataPlaneConfiguration dockerRegistryHostname(String dockerRegistryHostname) {
    this.dockerRegistryHostname = dockerRegistryHostname;
    return this;
  }

   /**
   * Get dockerRegistryHostname
   * @return dockerRegistryHostname
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_DOCKER_REGISTRY_HOSTNAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getDockerRegistryHostname() {
    return dockerRegistryHostname;
  }


  @JsonProperty(JSON_PROPERTY_DOCKER_REGISTRY_HOSTNAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDockerRegistryHostname(String dockerRegistryHostname) {
    this.dockerRegistryHostname = dockerRegistryHostname;
  }


  public DominoDataplaneDataPlaneConfiguration rabbitMqHostname(String rabbitMqHostname) {
    this.rabbitMqHostname = rabbitMqHostname;
    return this;
  }

   /**
   * Get rabbitMqHostname
   * @return rabbitMqHostname
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_RABBIT_MQ_HOSTNAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getRabbitMqHostname() {
    return rabbitMqHostname;
  }


  @JsonProperty(JSON_PROPERTY_RABBIT_MQ_HOSTNAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRabbitMqHostname(String rabbitMqHostname) {
    this.rabbitMqHostname = rabbitMqHostname;
  }


  public DominoDataplaneDataPlaneConfiguration istioEnabled(Boolean istioEnabled) {
    this.istioEnabled = istioEnabled;
    return this;
  }

   /**
   * Get istioEnabled
   * @return istioEnabled
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ISTIO_ENABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getIstioEnabled() {
    return istioEnabled;
  }


  @JsonProperty(JSON_PROPERTY_ISTIO_ENABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setIstioEnabled(Boolean istioEnabled) {
    this.istioEnabled = istioEnabled;
  }


  public DominoDataplaneDataPlaneConfiguration s3EndpointUrl(String s3EndpointUrl) {
    this.s3EndpointUrl = s3EndpointUrl;
    return this;
  }

   /**
   * Get s3EndpointUrl
   * @return s3EndpointUrl
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_S3_ENDPOINT_URL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getS3EndpointUrl() {
    return s3EndpointUrl;
  }


  @JsonProperty(JSON_PROPERTY_S3_ENDPOINT_URL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setS3EndpointUrl(String s3EndpointUrl) {
    this.s3EndpointUrl = s3EndpointUrl;
  }


  /**
   * Return true if this domino.dataplane.DataPlaneConfiguration object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoDataplaneDataPlaneConfiguration dominoDataplaneDataPlaneConfiguration = (DominoDataplaneDataPlaneConfiguration) o;
    return Objects.equals(this.storageClass, dominoDataplaneDataPlaneConfiguration.storageClass) &&
        Objects.equals(this.address, dominoDataplaneDataPlaneConfiguration.address) &&
        Objects.equals(this.fileSyncDisabled, dominoDataplaneDataPlaneConfiguration.fileSyncDisabled) &&
        Objects.equals(this.dominoApiHostname, dominoDataplaneDataPlaneConfiguration.dominoApiHostname) &&
        Objects.equals(this.dockerRegistryHostname, dominoDataplaneDataPlaneConfiguration.dockerRegistryHostname) &&
        Objects.equals(this.rabbitMqHostname, dominoDataplaneDataPlaneConfiguration.rabbitMqHostname) &&
        Objects.equals(this.istioEnabled, dominoDataplaneDataPlaneConfiguration.istioEnabled) &&
        Objects.equals(this.s3EndpointUrl, dominoDataplaneDataPlaneConfiguration.s3EndpointUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(storageClass, address, fileSyncDisabled, dominoApiHostname, dockerRegistryHostname, rabbitMqHostname, istioEnabled, s3EndpointUrl);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoDataplaneDataPlaneConfiguration {\n");
    sb.append("    storageClass: ").append(toIndentedString(storageClass)).append("\n");
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("    fileSyncDisabled: ").append(toIndentedString(fileSyncDisabled)).append("\n");
    sb.append("    dominoApiHostname: ").append(toIndentedString(dominoApiHostname)).append("\n");
    sb.append("    dockerRegistryHostname: ").append(toIndentedString(dockerRegistryHostname)).append("\n");
    sb.append("    rabbitMqHostname: ").append(toIndentedString(rabbitMqHostname)).append("\n");
    sb.append("    istioEnabled: ").append(toIndentedString(istioEnabled)).append("\n");
    sb.append("    s3EndpointUrl: ").append(toIndentedString(s3EndpointUrl)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  /**
   * Convert the instance into URL query string.
   *
   * @return URL query string
   */
  public String toUrlQueryString() {
    return toUrlQueryString(null);
  }

  /**
   * Convert the instance into URL query string.
   *
   * @param prefix prefix of the query string
   * @return URL query string
   */
  public String toUrlQueryString(String prefix) {
    String suffix = "";
    String containerSuffix = "";
    String containerPrefix = "";
    if (prefix == null) {
      // style=form, explode=true, e.g. /pet?name=cat&type=manx
      prefix = "";
    } else {
      // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
      prefix = prefix + "[";
      suffix = "]";
      containerSuffix = "]";
      containerPrefix = "[";
    }

    StringJoiner joiner = new StringJoiner("&");

    // add `storageClass` to the URL query string
    if (getStorageClass() != null) {
      joiner.add(String.format("%sstorageClass%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStorageClass()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `address` to the URL query string
    if (getAddress() != null) {
      joiner.add(String.format("%saddress%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `fileSyncDisabled` to the URL query string
    if (getFileSyncDisabled() != null) {
      joiner.add(String.format("%sfileSyncDisabled%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFileSyncDisabled()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `dominoApiHostname` to the URL query string
    if (getDominoApiHostname() != null) {
      joiner.add(String.format("%sdominoApiHostname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDominoApiHostname()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `dockerRegistryHostname` to the URL query string
    if (getDockerRegistryHostname() != null) {
      joiner.add(String.format("%sdockerRegistryHostname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDockerRegistryHostname()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `rabbitMqHostname` to the URL query string
    if (getRabbitMqHostname() != null) {
      joiner.add(String.format("%srabbitMqHostname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRabbitMqHostname()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `istioEnabled` to the URL query string
    if (getIstioEnabled() != null) {
      joiner.add(String.format("%sistioEnabled%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIstioEnabled()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `s3EndpointUrl` to the URL query string
    if (getS3EndpointUrl() != null) {
      joiner.add(String.format("%ss3EndpointUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getS3EndpointUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy