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

de.gematik.ti.epa.vzd.client.model.DistinguishedName Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
/*
 * Copyright (c) 2020 gematik GmbH
 * 
 * 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.
 */

/*
 * I_Directory_Administration
 * REST Schnittstelle zur Pflege der Verzeichniseinträge. Über diese Schnittstelle können Verzeichniseinträge inklusive Zertifikaten erzeugt, aktualisiert und gelöscht werden. Die Administration von Fachdaten erfolgt über Schnittstelle I_Directory_Application_Maintenance und wird durch die Fachanwendungen durchgeführt. Lesender Zugriff auf die Fachdaten ist mit Operation getDirectoryEntries in vorliegender Schnittstelle möglich.
 *
 * The version of the OpenAPI document: 1.1.1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package de.gematik.ti.epa.vzd.client.model;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * DistinguishedName
 */

public class DistinguishedName {

  public static final String SERIALIZED_NAME_UID = "uid";
  @SerializedName(SERIALIZED_NAME_UID)
  private String uid;

  public static final String SERIALIZED_NAME_DC = "dc";
  @SerializedName(SERIALIZED_NAME_DC)
  private List dc = null;

  public static final String SERIALIZED_NAME_OU = "ou";
  @SerializedName(SERIALIZED_NAME_OU)
  private List ou = null;

  public static final String SERIALIZED_NAME_CN = "cn";
  @SerializedName(SERIALIZED_NAME_CN)
  private String cn;


  public DistinguishedName uid(String uid) {

    this.uid = uid;
    return this;
  }

  /**
   * entryID: Name/ID, den den Eintrag eindeutig identifiziert. Hat für den Verzeichnisdienst_Eintrag, Certificate, KOM-LE_Fachdaten und FAD1 eines
   * Verzeichniseintrags den gleichen Wert.
   *
   * @return uid
   **/
  @ApiModelProperty(required = true, value = "entryID: Name/ID, den den Eintrag eindeutig identifiziert. Hat für den Verzeichnisdienst_Eintrag, Certificate, KOM-LE_Fachdaten und FAD1 eines Verzeichniseintrags den gleichen Wert.")

  public String getUid() {
    return uid;
  }


  public void setUid(String uid) {
    this.uid = uid;
  }


  public DistinguishedName dc(List dc) {

    this.dc = dc;
    return this;
  }

  public DistinguishedName addDcItem(String dcItem) {
    if (this.dc == null) {
      this.dc = new ArrayList<>();
    }
    this.dc.add(dcItem);
    return this;
  }

  /**
   * Get dc
   *
   * @return dc
   **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public List getDc() {
    return dc;
  }


  public void setDc(List dc) {
    this.dc = dc;
  }


  public DistinguishedName ou(List ou) {

    this.ou = ou;
    return this;
  }

  public DistinguishedName addOuItem(String ouItem) {
    if (this.ou == null) {
      this.ou = new ArrayList<>();
    }
    this.ou.add(ouItem);
    return this;
  }

  /**
   * Get ou
   *
   * @return ou
   **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public List getOu() {
    return ou;
  }


  public void setOu(List ou) {
    this.ou = ou;
  }


  public DistinguishedName cn(String cn) {

    this.cn = cn;
    return this;
  }

  /**
   * Common Name
   *
   * @return cn
   **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Common Name")

  public String getCn() {
    return cn;
  }


  public void setCn(String cn) {
    this.cn = cn;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DistinguishedName distinguishedName = (DistinguishedName) o;
    return Objects.equals(this.uid, distinguishedName.uid) &&
        Objects.equals(this.dc, distinguishedName.dc) &&
        Objects.equals(this.ou, distinguishedName.ou) &&
        Objects.equals(this.cn, distinguishedName.cn);
  }

  @Override
  public int hashCode() {
    return Objects.hash(uid, dc, ou, cn);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DistinguishedName {\n");
    sb.append("    uid: ").append(toIndentedString(uid)).append("\n");
    sb.append("    dc: ").append(toIndentedString(dc)).append("\n");
    sb.append("    ou: ").append(toIndentedString(ou)).append("\n");
    sb.append("    cn: ").append(toIndentedString(cn)).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