com.docusign.admin.model.MembershipDataRedactionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-admin-java Show documentation
Show all versions of docusign-admin-java Show documentation
The DocuSign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.
package com.docusign.admin.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
/** MembershipDataRedactionResponse. */
public class MembershipDataRedactionResponse {
@JsonProperty("account_id")
private java.util.UUID accountId = null;
/** Gets or Sets status */
public enum StatusEnum {
UNKNOWN("unknown"),
PENDING("pending"),
FAILURE("failure"),
SUCCESS("success"),
ALREADY_REDACTED("already_redacted");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return null;
}
}
@JsonProperty("status")
private StatusEnum status = null;
/**
* Get accountId.
*
* @return accountId
*/
@Schema(example = "00000000-0000-0000-0000-000000000000", description = "")
public java.util.UUID getAccountId() {
return accountId;
}
/**
* Get status.
*
* @return status
*/
@Schema(description = "")
public StatusEnum getStatus() {
return status;
}
/**
* 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;
}
MembershipDataRedactionResponse membershipDataRedactionResponse =
(MembershipDataRedactionResponse) o;
return Objects.equals(this.accountId, membershipDataRedactionResponse.accountId)
&& Objects.equals(this.status, membershipDataRedactionResponse.status);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(accountId, status);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MembershipDataRedactionResponse {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}