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

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

Go to download

Domino Data Lab API Client to connect to Domino web services using Java HTTP Client.

There is a newer version: 6.0.1.0
Show newest version
/*
 * Domino Data Lab API v4
 * This API provides access to select Domino functions available in Domino's non-public API. 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;


import com.dominodatalab.api.invoker.ApiClient;
/**
 * DominoDataplaneDataPlaneConfiguration
 */
@JsonPropertyOrder({
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_ADDITIONAL_STORAGE_CLASS,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_ADDRESS,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_DOCKER_REGISTRY_HOSTNAME,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_DOMINO_API_HOSTNAME,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_FILE_SYNC_DISABLED,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_ISTIO_ENABLED,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_RABBIT_MQ_AMQP_PORT,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_RABBIT_MQ_HOSTNAME,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_RABBIT_MQ_STREAM_PORT,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_S3_ENDPOINT_URL,
  DominoDataplaneDataPlaneConfiguration.JSON_PROPERTY_STORAGE_CLASS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T16:37:26.309454-04:00[America/New_York]", comments = "Generator version: 7.8.0")
public class DominoDataplaneDataPlaneConfiguration {
  public static final String JSON_PROPERTY_ADDITIONAL_STORAGE_CLASS = "additionalStorageClass";
  private String additionalStorageClass;

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

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

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

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

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

  public static final String JSON_PROPERTY_RABBIT_MQ_AMQP_PORT = "rabbitMqAmqpPort";
  private Integer rabbitMqAmqpPort;

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

  public static final String JSON_PROPERTY_RABBIT_MQ_STREAM_PORT = "rabbitMqStreamPort";
  private Integer rabbitMqStreamPort;

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

  public static final String JSON_PROPERTY_STORAGE_CLASS = "storageClass";
  private String storageClass;

  public DominoDataplaneDataPlaneConfiguration() { 
  }

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

  /**
   * Get additionalStorageClass
   * @return additionalStorageClass
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_STORAGE_CLASS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getAdditionalStorageClass() {
    return additionalStorageClass;
  }


  @JsonProperty(JSON_PROPERTY_ADDITIONAL_STORAGE_CLASS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAdditionalStorageClass(String additionalStorageClass) {
    this.additionalStorageClass = additionalStorageClass;
  }


  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 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 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 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 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 rabbitMqAmqpPort(Integer rabbitMqAmqpPort) {
    this.rabbitMqAmqpPort = rabbitMqAmqpPort;
    return this;
  }

  /**
   * Get rabbitMqAmqpPort
   * @return rabbitMqAmqpPort
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_RABBIT_MQ_AMQP_PORT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Integer getRabbitMqAmqpPort() {
    return rabbitMqAmqpPort;
  }


  @JsonProperty(JSON_PROPERTY_RABBIT_MQ_AMQP_PORT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRabbitMqAmqpPort(Integer rabbitMqAmqpPort) {
    this.rabbitMqAmqpPort = rabbitMqAmqpPort;
  }


  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 rabbitMqStreamPort(Integer rabbitMqStreamPort) {
    this.rabbitMqStreamPort = rabbitMqStreamPort;
    return this;
  }

  /**
   * Get rabbitMqStreamPort
   * @return rabbitMqStreamPort
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_RABBIT_MQ_STREAM_PORT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Integer getRabbitMqStreamPort() {
    return rabbitMqStreamPort;
  }


  @JsonProperty(JSON_PROPERTY_RABBIT_MQ_STREAM_PORT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRabbitMqStreamPort(Integer rabbitMqStreamPort) {
    this.rabbitMqStreamPort = rabbitMqStreamPort;
  }


  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;
  }


  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;
  }


  /**
   * 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.additionalStorageClass, dominoDataplaneDataPlaneConfiguration.additionalStorageClass) &&
        Objects.equals(this.address, dominoDataplaneDataPlaneConfiguration.address) &&
        Objects.equals(this.dockerRegistryHostname, dominoDataplaneDataPlaneConfiguration.dockerRegistryHostname) &&
        Objects.equals(this.dominoApiHostname, dominoDataplaneDataPlaneConfiguration.dominoApiHostname) &&
        Objects.equals(this.fileSyncDisabled, dominoDataplaneDataPlaneConfiguration.fileSyncDisabled) &&
        Objects.equals(this.istioEnabled, dominoDataplaneDataPlaneConfiguration.istioEnabled) &&
        Objects.equals(this.rabbitMqAmqpPort, dominoDataplaneDataPlaneConfiguration.rabbitMqAmqpPort) &&
        Objects.equals(this.rabbitMqHostname, dominoDataplaneDataPlaneConfiguration.rabbitMqHostname) &&
        Objects.equals(this.rabbitMqStreamPort, dominoDataplaneDataPlaneConfiguration.rabbitMqStreamPort) &&
        Objects.equals(this.s3EndpointUrl, dominoDataplaneDataPlaneConfiguration.s3EndpointUrl) &&
        Objects.equals(this.storageClass, dominoDataplaneDataPlaneConfiguration.storageClass);
  }

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

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoDataplaneDataPlaneConfiguration {\n");
    sb.append("    additionalStorageClass: ").append(toIndentedString(additionalStorageClass)).append("\n");
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("    dockerRegistryHostname: ").append(toIndentedString(dockerRegistryHostname)).append("\n");
    sb.append("    dominoApiHostname: ").append(toIndentedString(dominoApiHostname)).append("\n");
    sb.append("    fileSyncDisabled: ").append(toIndentedString(fileSyncDisabled)).append("\n");
    sb.append("    istioEnabled: ").append(toIndentedString(istioEnabled)).append("\n");
    sb.append("    rabbitMqAmqpPort: ").append(toIndentedString(rabbitMqAmqpPort)).append("\n");
    sb.append("    rabbitMqHostname: ").append(toIndentedString(rabbitMqHostname)).append("\n");
    sb.append("    rabbitMqStreamPort: ").append(toIndentedString(rabbitMqStreamPort)).append("\n");
    sb.append("    s3EndpointUrl: ").append(toIndentedString(s3EndpointUrl)).append("\n");
    sb.append("    storageClass: ").append(toIndentedString(storageClass)).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 `additionalStorageClass` to the URL query string
    if (getAdditionalStorageClass() != null) {
      joiner.add(String.format("%sadditionalStorageClass%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAdditionalStorageClass()), 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(ApiClient.valueToString(getAddress()), 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(ApiClient.valueToString(getDockerRegistryHostname()), 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(ApiClient.valueToString(getDominoApiHostname()), 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(ApiClient.valueToString(getFileSyncDisabled()), 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(ApiClient.valueToString(getIstioEnabled()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `rabbitMqAmqpPort` to the URL query string
    if (getRabbitMqAmqpPort() != null) {
      joiner.add(String.format("%srabbitMqAmqpPort%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRabbitMqAmqpPort()), 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(ApiClient.valueToString(getRabbitMqHostname()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `rabbitMqStreamPort` to the URL query string
    if (getRabbitMqStreamPort() != null) {
      joiner.add(String.format("%srabbitMqStreamPort%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRabbitMqStreamPort()), 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(ApiClient.valueToString(getS3EndpointUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy