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

com.docusign.admin.model.Saml2IdentityProviderResponse Maven / Gradle / Ivy

Go to download

The DocuSign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.

There is a newer version: 2.0.0-RC1
Show newest version
package com.docusign.admin.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;

/** Saml2IdentityProviderResponse. */
public class Saml2IdentityProviderResponse {
  @JsonProperty("issuer")
  private String issuer = null;

  @JsonProperty("settings")
  private java.util.List settings = null;

  @JsonProperty("certificates")
  private java.util.List certificates = null;

  @JsonProperty("attribute_mappings")
  private java.util.List attributeMappings = null;

  /**
   * issuer.
   *
   * @return Saml2IdentityProviderResponse
   */
  public Saml2IdentityProviderResponse issuer(String issuer) {
    this.issuer = issuer;
    return this;
  }

  /**
   * Get issuer.
   *
   * @return issuer
   */
  @Schema(description = "")
  public String getIssuer() {
    return issuer;
  }

  /** setIssuer. */
  public void setIssuer(String issuer) {
    this.issuer = issuer;
  }

  /**
   * settings.
   *
   * @return Saml2IdentityProviderResponse
   */
  public Saml2IdentityProviderResponse settings(java.util.List settings) {
    this.settings = settings;
    return this;
  }

  /**
   * addSettingsItem.
   *
   * @return Saml2IdentityProviderResponse
   */
  public Saml2IdentityProviderResponse addSettingsItem(SettingResponse settingsItem) {
    if (this.settings == null) {
      this.settings = new java.util.ArrayList<>();
    }
    this.settings.add(settingsItem);
    return this;
  }

  /**
   * Get settings.
   *
   * @return settings
   */
  @Schema(description = "")
  public java.util.List getSettings() {
    return settings;
  }

  /** setSettings. */
  public void setSettings(java.util.List settings) {
    this.settings = settings;
  }

  /**
   * certificates.
   *
   * @return Saml2IdentityProviderResponse
   */
  public Saml2IdentityProviderResponse certificates(
      java.util.List certificates) {
    this.certificates = certificates;
    return this;
  }

  /**
   * addCertificatesItem.
   *
   * @return Saml2IdentityProviderResponse
   */
  public Saml2IdentityProviderResponse addCertificatesItem(CertificateResponse certificatesItem) {
    if (this.certificates == null) {
      this.certificates = new java.util.ArrayList<>();
    }
    this.certificates.add(certificatesItem);
    return this;
  }

  /**
   * Get certificates.
   *
   * @return certificates
   */
  @Schema(description = "")
  public java.util.List getCertificates() {
    return certificates;
  }

  /** setCertificates. */
  public void setCertificates(java.util.List certificates) {
    this.certificates = certificates;
  }

  /**
   * attributeMappings.
   *
   * @return Saml2IdentityProviderResponse
   */
  public Saml2IdentityProviderResponse attributeMappings(
      java.util.List attributeMappings) {
    this.attributeMappings = attributeMappings;
    return this;
  }

  /**
   * addAttributeMappingsItem.
   *
   * @return Saml2IdentityProviderResponse
   */
  public Saml2IdentityProviderResponse addAttributeMappingsItem(
      RequiredAttributeMappingResponse attributeMappingsItem) {
    if (this.attributeMappings == null) {
      this.attributeMappings = new java.util.ArrayList<>();
    }
    this.attributeMappings.add(attributeMappingsItem);
    return this;
  }

  /**
   * Get attributeMappings.
   *
   * @return attributeMappings
   */
  @Schema(description = "")
  public java.util.List getAttributeMappings() {
    return attributeMappings;
  }

  /** setAttributeMappings. */
  public void setAttributeMappings(
      java.util.List attributeMappings) {
    this.attributeMappings = attributeMappings;
  }

  /**
   * Compares objects.
   *
   * @return true or false depending on comparison result.
   */
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Saml2IdentityProviderResponse saml2IdentityProviderResponse = (Saml2IdentityProviderResponse) o;
    return Objects.equals(this.issuer, saml2IdentityProviderResponse.issuer)
        && Objects.equals(this.settings, saml2IdentityProviderResponse.settings)
        && Objects.equals(this.certificates, saml2IdentityProviderResponse.certificates)
        && Objects.equals(this.attributeMappings, saml2IdentityProviderResponse.attributeMappings);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(issuer, settings, certificates, attributeMappings);
  }

  /** Converts the given object to string. */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Saml2IdentityProviderResponse {\n");

    sb.append("    issuer: ").append(toIndentedString(issuer)).append("\n");
    sb.append("    settings: ").append(toIndentedString(settings)).append("\n");
    sb.append("    certificates: ").append(toIndentedString(certificates)).append("\n");
    sb.append("    attributeMappings: ").append(toIndentedString(attributeMappings)).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 - 2024 Weber Informatics LLC | Privacy Policy