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

net.leanix.mtm.api.models.Domain Maven / Gradle / Ivy

There is a newer version: 1.7.25
Show newest version
/*
 * LeanIX MTM REST API
 * Multi-tenancy-manager for LeanIX. Manages accounts, contracts, users, workspaces, permissions, and more.
 *
 * OpenAPI spec version: 1.6.348
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package net.leanix.mtm.api.models;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import net.leanix.mtm.api.models.CustomCertificate;
import net.leanix.mtm.api.models.IdentityProvider;

/**
 * Domain
 */

public class Domain {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("fqdn")
  private String fqdn = null;

  @JsonProperty("identityProvider")
  private IdentityProvider identityProvider = null;

  @JsonProperty("exclusiveIdp")
  private Boolean exclusiveIdp = false;

  @JsonProperty("customCertificate")
  private CustomCertificate customCertificate = null;

  public Domain id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Domain fqdn(String fqdn) {
    this.fqdn = fqdn;
    return this;
  }

   /**
   * Get fqdn
   * @return fqdn
  **/
  @ApiModelProperty(value = "")
  public String getFqdn() {
    return fqdn;
  }

  public void setFqdn(String fqdn) {
    this.fqdn = fqdn;
  }

  public Domain identityProvider(IdentityProvider identityProvider) {
    this.identityProvider = identityProvider;
    return this;
  }

   /**
   * Get identityProvider
   * @return identityProvider
  **/
  @ApiModelProperty(required = true, value = "")
  public IdentityProvider getIdentityProvider() {
    return identityProvider;
  }

  public void setIdentityProvider(IdentityProvider identityProvider) {
    this.identityProvider = identityProvider;
  }

  public Domain exclusiveIdp(Boolean exclusiveIdp) {
    this.exclusiveIdp = exclusiveIdp;
    return this;
  }

   /**
   * Get exclusiveIdp
   * @return exclusiveIdp
  **/
  @ApiModelProperty(value = "")
  public Boolean getExclusiveIdp() {
    return exclusiveIdp;
  }

  public void setExclusiveIdp(Boolean exclusiveIdp) {
    this.exclusiveIdp = exclusiveIdp;
  }

  public Domain customCertificate(CustomCertificate customCertificate) {
    this.customCertificate = customCertificate;
    return this;
  }

   /**
   * Get customCertificate
   * @return customCertificate
  **/
  @ApiModelProperty(value = "")
  public CustomCertificate getCustomCertificate() {
    return customCertificate;
  }

  public void setCustomCertificate(CustomCertificate customCertificate) {
    this.customCertificate = customCertificate;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Domain domain = (Domain) o;
    return Objects.equals(this.id, domain.id) &&
        Objects.equals(this.fqdn, domain.fqdn) &&
        Objects.equals(this.identityProvider, domain.identityProvider) &&
        Objects.equals(this.exclusiveIdp, domain.exclusiveIdp) &&
        Objects.equals(this.customCertificate, domain.customCertificate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, fqdn, identityProvider, exclusiveIdp, customCertificate);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Domain {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    fqdn: ").append(toIndentedString(fqdn)).append("\n");
    sb.append("    identityProvider: ").append(toIndentedString(identityProvider)).append("\n");
    sb.append("    exclusiveIdp: ").append(toIndentedString(exclusiveIdp)).append("\n");
    sb.append("    customCertificate: ").append(toIndentedString(customCertificate)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy