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

io.service84.clients.impersonation.dto.IdentityRequestDTO Maven / Gradle / Ivy

/*
 * Impersonation Service
 * Manage Impersonating Subjects
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.service84.clients.impersonation.dto;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
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 java.util.UUID;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * IdentityRequestDTO
 */
@JsonPropertyOrder({
  IdentityRequestDTO.JSON_PROPERTY_IDENTITY
})

public class IdentityRequestDTO {
  public static final String JSON_PROPERTY_IDENTITY = "identity";
  private UUID identity;


  public IdentityRequestDTO identity(UUID identity) {
    
    this.identity = identity;
    return this;
  }

   /**
   * Get identity
   * @return identity
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_IDENTITY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public UUID getIdentity() {
    return identity;
  }


  public void setIdentity(UUID identity) {
    this.identity = identity;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    IdentityRequestDTO identityRequest = (IdentityRequestDTO) o;
    return Objects.equals(this.identity, identityRequest.identity);
  }

  @Override
  public int hashCode() {
    return Objects.hash(identity);
  }


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