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

com.dominodatalab.api.model.DominoProjectManagementApiPmOAuth1aConfiguration 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;


/**
 * DominoProjectManagementApiPmOAuth1aConfiguration
 */
@JsonPropertyOrder({
  DominoProjectManagementApiPmOAuth1aConfiguration.JSON_PROPERTY_APPLICATION_URL,
  DominoProjectManagementApiPmOAuth1aConfiguration.JSON_PROPERTY_APPLICATION_NAME,
  DominoProjectManagementApiPmOAuth1aConfiguration.JSON_PROPERTY_APPLICATION_TYPE,
  DominoProjectManagementApiPmOAuth1aConfiguration.JSON_PROPERTY_CREATE_INCOMING_LINK,
  DominoProjectManagementApiPmOAuth1aConfiguration.JSON_PROPERTY_IN_COMING_CONSUMER_KEY,
  DominoProjectManagementApiPmOAuth1aConfiguration.JSON_PROPERTY_IN_COMING_CONSUMER_NAME,
  DominoProjectManagementApiPmOAuth1aConfiguration.JSON_PROPERTY_PUBLIC_KEY
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoProjectManagementApiPmOAuth1aConfiguration {
  public static final String JSON_PROPERTY_APPLICATION_URL = "applicationUrl";
  private String applicationUrl;

  public static final String JSON_PROPERTY_APPLICATION_NAME = "applicationName";
  private String applicationName;

  public static final String JSON_PROPERTY_APPLICATION_TYPE = "applicationType";
  private String applicationType;

  public static final String JSON_PROPERTY_CREATE_INCOMING_LINK = "createIncomingLink";
  private Boolean createIncomingLink;

  public static final String JSON_PROPERTY_IN_COMING_CONSUMER_KEY = "inComingConsumerKey";
  private String inComingConsumerKey;

  public static final String JSON_PROPERTY_IN_COMING_CONSUMER_NAME = "inComingConsumerName";
  private String inComingConsumerName;

  public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey";
  private String publicKey;

  public DominoProjectManagementApiPmOAuth1aConfiguration() { 
  }

  public DominoProjectManagementApiPmOAuth1aConfiguration applicationUrl(String applicationUrl) {
    this.applicationUrl = applicationUrl;
    return this;
  }

   /**
   * Get applicationUrl
   * @return applicationUrl
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_APPLICATION_URL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getApplicationUrl() {
    return applicationUrl;
  }


  @JsonProperty(JSON_PROPERTY_APPLICATION_URL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setApplicationUrl(String applicationUrl) {
    this.applicationUrl = applicationUrl;
  }


  public DominoProjectManagementApiPmOAuth1aConfiguration applicationName(String applicationName) {
    this.applicationName = applicationName;
    return this;
  }

   /**
   * Get applicationName
   * @return applicationName
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_APPLICATION_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getApplicationName() {
    return applicationName;
  }


  @JsonProperty(JSON_PROPERTY_APPLICATION_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setApplicationName(String applicationName) {
    this.applicationName = applicationName;
  }


  public DominoProjectManagementApiPmOAuth1aConfiguration applicationType(String applicationType) {
    this.applicationType = applicationType;
    return this;
  }

   /**
   * Get applicationType
   * @return applicationType
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_APPLICATION_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getApplicationType() {
    return applicationType;
  }


  @JsonProperty(JSON_PROPERTY_APPLICATION_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setApplicationType(String applicationType) {
    this.applicationType = applicationType;
  }


  public DominoProjectManagementApiPmOAuth1aConfiguration createIncomingLink(Boolean createIncomingLink) {
    this.createIncomingLink = createIncomingLink;
    return this;
  }

   /**
   * Get createIncomingLink
   * @return createIncomingLink
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_CREATE_INCOMING_LINK)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getCreateIncomingLink() {
    return createIncomingLink;
  }


  @JsonProperty(JSON_PROPERTY_CREATE_INCOMING_LINK)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setCreateIncomingLink(Boolean createIncomingLink) {
    this.createIncomingLink = createIncomingLink;
  }


  public DominoProjectManagementApiPmOAuth1aConfiguration inComingConsumerKey(String inComingConsumerKey) {
    this.inComingConsumerKey = inComingConsumerKey;
    return this;
  }

   /**
   * Get inComingConsumerKey
   * @return inComingConsumerKey
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_IN_COMING_CONSUMER_KEY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getInComingConsumerKey() {
    return inComingConsumerKey;
  }


  @JsonProperty(JSON_PROPERTY_IN_COMING_CONSUMER_KEY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setInComingConsumerKey(String inComingConsumerKey) {
    this.inComingConsumerKey = inComingConsumerKey;
  }


  public DominoProjectManagementApiPmOAuth1aConfiguration inComingConsumerName(String inComingConsumerName) {
    this.inComingConsumerName = inComingConsumerName;
    return this;
  }

   /**
   * Get inComingConsumerName
   * @return inComingConsumerName
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_IN_COMING_CONSUMER_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getInComingConsumerName() {
    return inComingConsumerName;
  }


  @JsonProperty(JSON_PROPERTY_IN_COMING_CONSUMER_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setInComingConsumerName(String inComingConsumerName) {
    this.inComingConsumerName = inComingConsumerName;
  }


  public DominoProjectManagementApiPmOAuth1aConfiguration publicKey(String publicKey) {
    this.publicKey = publicKey;
    return this;
  }

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

  public String getPublicKey() {
    return publicKey;
  }


  @JsonProperty(JSON_PROPERTY_PUBLIC_KEY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setPublicKey(String publicKey) {
    this.publicKey = publicKey;
  }


  /**
   * Return true if this domino.projectManagement.api.PmOAuth1aConfiguration object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoProjectManagementApiPmOAuth1aConfiguration dominoProjectManagementApiPmOAuth1aConfiguration = (DominoProjectManagementApiPmOAuth1aConfiguration) o;
    return Objects.equals(this.applicationUrl, dominoProjectManagementApiPmOAuth1aConfiguration.applicationUrl) &&
        Objects.equals(this.applicationName, dominoProjectManagementApiPmOAuth1aConfiguration.applicationName) &&
        Objects.equals(this.applicationType, dominoProjectManagementApiPmOAuth1aConfiguration.applicationType) &&
        Objects.equals(this.createIncomingLink, dominoProjectManagementApiPmOAuth1aConfiguration.createIncomingLink) &&
        Objects.equals(this.inComingConsumerKey, dominoProjectManagementApiPmOAuth1aConfiguration.inComingConsumerKey) &&
        Objects.equals(this.inComingConsumerName, dominoProjectManagementApiPmOAuth1aConfiguration.inComingConsumerName) &&
        Objects.equals(this.publicKey, dominoProjectManagementApiPmOAuth1aConfiguration.publicKey);
  }

  @Override
  public int hashCode() {
    return Objects.hash(applicationUrl, applicationName, applicationType, createIncomingLink, inComingConsumerKey, inComingConsumerName, publicKey);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoProjectManagementApiPmOAuth1aConfiguration {\n");
    sb.append("    applicationUrl: ").append(toIndentedString(applicationUrl)).append("\n");
    sb.append("    applicationName: ").append(toIndentedString(applicationName)).append("\n");
    sb.append("    applicationType: ").append(toIndentedString(applicationType)).append("\n");
    sb.append("    createIncomingLink: ").append(toIndentedString(createIncomingLink)).append("\n");
    sb.append("    inComingConsumerKey: ").append(toIndentedString(inComingConsumerKey)).append("\n");
    sb.append("    inComingConsumerName: ").append(toIndentedString(inComingConsumerName)).append("\n");
    sb.append("    publicKey: ").append(toIndentedString(publicKey)).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 `applicationUrl` to the URL query string
    if (getApplicationUrl() != null) {
      joiner.add(String.format("%sapplicationUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getApplicationUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

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

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

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

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

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

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy