/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.identitytoolkit.v2.model;

/**
 * The SAML IdP (Identity Provider) configuration when the project acts as the relying party.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Identity Toolkit API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudIdentitytoolkitAdminV2IdpConfig extends com.google.api.client.json.GenericJson {

  /**
   * IDP's public keys for verifying signature in the assertions.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudIdentitytoolkitAdminV2IdpCertificate> idpCertificates;

  static {
    // hack to force ProGuard to consider GoogleCloudIdentitytoolkitAdminV2IdpCertificate used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(GoogleCloudIdentitytoolkitAdminV2IdpCertificate.class);
  }

  /**
   * Unique identifier for all SAML entities.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String idpEntityId;

  /**
   * Indicates if outbounding SAMLRequest should be signed.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean signRequest;

  /**
   * URL to send Authentication request to.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String ssoUrl;

  /**
   * IDP's public keys for verifying signature in the assertions.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudIdentitytoolkitAdminV2IdpCertificate> getIdpCertificates() {
    return idpCertificates;
  }

  /**
   * IDP's public keys for verifying signature in the assertions.
   * @param idpCertificates idpCertificates or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitAdminV2IdpConfig setIdpCertificates(java.util.List<GoogleCloudIdentitytoolkitAdminV2IdpCertificate> idpCertificates) {
    this.idpCertificates = idpCertificates;
    return this;
  }

  /**
   * Unique identifier for all SAML entities.
   * @return value or {@code null} for none
   */
  public java.lang.String getIdpEntityId() {
    return idpEntityId;
  }

  /**
   * Unique identifier for all SAML entities.
   * @param idpEntityId idpEntityId or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitAdminV2IdpConfig setIdpEntityId(java.lang.String idpEntityId) {
    this.idpEntityId = idpEntityId;
    return this;
  }

  /**
   * Indicates if outbounding SAMLRequest should be signed.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getSignRequest() {
    return signRequest;
  }

  /**
   * Indicates if outbounding SAMLRequest should be signed.
   * @param signRequest signRequest or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitAdminV2IdpConfig setSignRequest(java.lang.Boolean signRequest) {
    this.signRequest = signRequest;
    return this;
  }

  /**
   * URL to send Authentication request to.
   * @return value or {@code null} for none
   */
  public java.lang.String getSsoUrl() {
    return ssoUrl;
  }

  /**
   * URL to send Authentication request to.
   * @param ssoUrl ssoUrl or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitAdminV2IdpConfig setSsoUrl(java.lang.String ssoUrl) {
    this.ssoUrl = ssoUrl;
    return this;
  }

  @Override
  public GoogleCloudIdentitytoolkitAdminV2IdpConfig set(String fieldName, Object value) {
    return (GoogleCloudIdentitytoolkitAdminV2IdpConfig) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudIdentitytoolkitAdminV2IdpConfig clone() {
    return (GoogleCloudIdentitytoolkitAdminV2IdpConfig) super.clone();
  }

}
