com.docusign.admin.model.OrganizationExportRequest 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.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
/** OrganizationExportRequest. */
public class OrganizationExportRequest {
@JsonProperty("type")
private String type = null;
@JsonProperty("accounts")
private java.util.List accounts = null;
@JsonProperty("domains")
private java.util.List domains = null;
/**
* type.
*
* @return OrganizationExportRequest
*/
public OrganizationExportRequest type(String type) {
this.type = type;
return this;
}
/**
* Get type.
*
* @return type
*/
@Schema(description = "")
public String getType() {
return type;
}
/** setType. */
public void setType(String type) {
this.type = type;
}
/**
* accounts.
*
* @return OrganizationExportRequest
*/
public OrganizationExportRequest accounts(java.util.List accounts) {
this.accounts = accounts;
return this;
}
/**
* addAccountsItem.
*
* @return OrganizationExportRequest
*/
public OrganizationExportRequest addAccountsItem(OrganizationExportAccount accountsItem) {
if (this.accounts == null) {
this.accounts = new java.util.ArrayList<>();
}
this.accounts.add(accountsItem);
return this;
}
/**
* Get accounts.
*
* @return accounts
*/
@Schema(description = "")
public java.util.List getAccounts() {
return accounts;
}
/** setAccounts. */
public void setAccounts(java.util.List accounts) {
this.accounts = accounts;
}
/**
* domains.
*
* @return OrganizationExportRequest
*/
public OrganizationExportRequest domains(java.util.List domains) {
this.domains = domains;
return this;
}
/**
* addDomainsItem.
*
* @return OrganizationExportRequest
*/
public OrganizationExportRequest addDomainsItem(OrganizationExportDomain domainsItem) {
if (this.domains == null) {
this.domains = new java.util.ArrayList<>();
}
this.domains.add(domainsItem);
return this;
}
/**
* Get domains.
*
* @return domains
*/
@Schema(description = "")
public java.util.List getDomains() {
return domains;
}
/** setDomains. */
public void setDomains(java.util.List domains) {
this.domains = domains;
}
/**
* 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;
}
OrganizationExportRequest organizationExportRequest = (OrganizationExportRequest) o;
return Objects.equals(this.type, organizationExportRequest.type)
&& Objects.equals(this.accounts, organizationExportRequest.accounts)
&& Objects.equals(this.domains, organizationExportRequest.domains);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(type, accounts, domains);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OrganizationExportRequest {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n");
sb.append(" domains: ").append(toIndentedString(domains)).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 ");
}
}