com.docusign.esign.model.Workspace Maven / Gradle / Ivy
package com.docusign.esign.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** Provides properties that describe a workspace.. */
@ApiModel(description = "Provides properties that describe a workspace.")
public class Workspace {
@JsonProperty("billableAccountId")
private String billableAccountId = null;
@JsonProperty("callerInformation")
private WorkspaceUser callerInformation = null;
@JsonProperty("created")
private String created = null;
@JsonProperty("createdByInformation")
private WorkspaceUser createdByInformation = null;
@JsonProperty("lastModified")
private String lastModified = null;
@JsonProperty("lastModifiedByInformation")
private WorkspaceUser lastModifiedByInformation = null;
@JsonProperty("settings")
private WorkspaceSettings settings = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("workspaceBaseUrl")
private String workspaceBaseUrl = null;
@JsonProperty("workspaceDescription")
private String workspaceDescription = null;
@JsonProperty("workspaceId")
private String workspaceId = null;
@JsonProperty("workspaceName")
private String workspaceName = null;
@JsonProperty("workspaceUri")
private String workspaceUri = null;
/**
* billableAccountId.
*
* @return Workspace
*/
public Workspace billableAccountId(String billableAccountId) {
this.billableAccountId = billableAccountId;
return this;
}
/**
* .
*
* @return billableAccountId
*/
@ApiModelProperty(value = "")
public String getBillableAccountId() {
return billableAccountId;
}
/** setBillableAccountId. */
public void setBillableAccountId(String billableAccountId) {
this.billableAccountId = billableAccountId;
}
/**
* callerInformation.
*
* @return Workspace
*/
public Workspace callerInformation(WorkspaceUser callerInformation) {
this.callerInformation = callerInformation;
return this;
}
/**
* Get callerInformation.
*
* @return callerInformation
*/
@ApiModelProperty(value = "")
public WorkspaceUser getCallerInformation() {
return callerInformation;
}
/** setCallerInformation. */
public void setCallerInformation(WorkspaceUser callerInformation) {
this.callerInformation = callerInformation;
}
/**
* created.
*
* @return Workspace
*/
public Workspace created(String created) {
this.created = created;
return this;
}
/**
* .
*
* @return created
*/
@ApiModelProperty(value = "")
public String getCreated() {
return created;
}
/** setCreated. */
public void setCreated(String created) {
this.created = created;
}
/**
* createdByInformation.
*
* @return Workspace
*/
public Workspace createdByInformation(WorkspaceUser createdByInformation) {
this.createdByInformation = createdByInformation;
return this;
}
/**
* Get createdByInformation.
*
* @return createdByInformation
*/
@ApiModelProperty(value = "")
public WorkspaceUser getCreatedByInformation() {
return createdByInformation;
}
/** setCreatedByInformation. */
public void setCreatedByInformation(WorkspaceUser createdByInformation) {
this.createdByInformation = createdByInformation;
}
/**
* lastModified.
*
* @return Workspace
*/
public Workspace lastModified(String lastModified) {
this.lastModified = lastModified;
return this;
}
/**
* Utc date and time the comment was last updated (can only be done by creator.).
*
* @return lastModified
*/
@ApiModelProperty(
value = "Utc date and time the comment was last updated (can only be done by creator.)")
public String getLastModified() {
return lastModified;
}
/** setLastModified. */
public void setLastModified(String lastModified) {
this.lastModified = lastModified;
}
/**
* lastModifiedByInformation.
*
* @return Workspace
*/
public Workspace lastModifiedByInformation(WorkspaceUser lastModifiedByInformation) {
this.lastModifiedByInformation = lastModifiedByInformation;
return this;
}
/**
* Get lastModifiedByInformation.
*
* @return lastModifiedByInformation
*/
@ApiModelProperty(value = "")
public WorkspaceUser getLastModifiedByInformation() {
return lastModifiedByInformation;
}
/** setLastModifiedByInformation. */
public void setLastModifiedByInformation(WorkspaceUser lastModifiedByInformation) {
this.lastModifiedByInformation = lastModifiedByInformation;
}
/**
* settings.
*
* @return Workspace
*/
public Workspace settings(WorkspaceSettings settings) {
this.settings = settings;
return this;
}
/**
* Get settings.
*
* @return settings
*/
@ApiModelProperty(value = "")
public WorkspaceSettings getSettings() {
return settings;
}
/** setSettings. */
public void setSettings(WorkspaceSettings settings) {
this.settings = settings;
}
/**
* status.
*
* @return Workspace
*/
public Workspace status(String status) {
this.status = status;
return this;
}
/**
* Indicates the envelope status. Valid values are: * sent - The envelope is sent to the
* recipients. * created - The envelope is saved as a draft and can be modified and sent later..
*
* @return status
*/
@ApiModelProperty(
value =
"Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.")
public String getStatus() {
return status;
}
/** setStatus. */
public void setStatus(String status) {
this.status = status;
}
/**
* workspaceBaseUrl.
*
* @return Workspace
*/
public Workspace workspaceBaseUrl(String workspaceBaseUrl) {
this.workspaceBaseUrl = workspaceBaseUrl;
return this;
}
/**
* The relative URL that may be used to access the workspace..
*
* @return workspaceBaseUrl
*/
@ApiModelProperty(value = "The relative URL that may be used to access the workspace.")
public String getWorkspaceBaseUrl() {
return workspaceBaseUrl;
}
/** setWorkspaceBaseUrl. */
public void setWorkspaceBaseUrl(String workspaceBaseUrl) {
this.workspaceBaseUrl = workspaceBaseUrl;
}
/**
* workspaceDescription.
*
* @return Workspace
*/
public Workspace workspaceDescription(String workspaceDescription) {
this.workspaceDescription = workspaceDescription;
return this;
}
/**
* Text describing the purpose of the workspace..
*
* @return workspaceDescription
*/
@ApiModelProperty(value = "Text describing the purpose of the workspace.")
public String getWorkspaceDescription() {
return workspaceDescription;
}
/** setWorkspaceDescription. */
public void setWorkspaceDescription(String workspaceDescription) {
this.workspaceDescription = workspaceDescription;
}
/**
* workspaceId.
*
* @return Workspace
*/
public Workspace workspaceId(String workspaceId) {
this.workspaceId = workspaceId;
return this;
}
/**
* The id of the workspace, always populated..
*
* @return workspaceId
*/
@ApiModelProperty(value = "The id of the workspace, always populated.")
public String getWorkspaceId() {
return workspaceId;
}
/** setWorkspaceId. */
public void setWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
}
/**
* workspaceName.
*
* @return Workspace
*/
public Workspace workspaceName(String workspaceName) {
this.workspaceName = workspaceName;
return this;
}
/**
* The name of the workspace..
*
* @return workspaceName
*/
@ApiModelProperty(value = "The name of the workspace.")
public String getWorkspaceName() {
return workspaceName;
}
/** setWorkspaceName. */
public void setWorkspaceName(String workspaceName) {
this.workspaceName = workspaceName;
}
/**
* workspaceUri.
*
* @return Workspace
*/
public Workspace workspaceUri(String workspaceUri) {
this.workspaceUri = workspaceUri;
return this;
}
/**
* The relative URI that may be used to access the workspace..
*
* @return workspaceUri
*/
@ApiModelProperty(value = "The relative URI that may be used to access the workspace.")
public String getWorkspaceUri() {
return workspaceUri;
}
/** setWorkspaceUri. */
public void setWorkspaceUri(String workspaceUri) {
this.workspaceUri = workspaceUri;
}
/**
* 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;
}
Workspace workspace = (Workspace) o;
return Objects.equals(this.billableAccountId, workspace.billableAccountId)
&& Objects.equals(this.callerInformation, workspace.callerInformation)
&& Objects.equals(this.created, workspace.created)
&& Objects.equals(this.createdByInformation, workspace.createdByInformation)
&& Objects.equals(this.lastModified, workspace.lastModified)
&& Objects.equals(this.lastModifiedByInformation, workspace.lastModifiedByInformation)
&& Objects.equals(this.settings, workspace.settings)
&& Objects.equals(this.status, workspace.status)
&& Objects.equals(this.workspaceBaseUrl, workspace.workspaceBaseUrl)
&& Objects.equals(this.workspaceDescription, workspace.workspaceDescription)
&& Objects.equals(this.workspaceId, workspace.workspaceId)
&& Objects.equals(this.workspaceName, workspace.workspaceName)
&& Objects.equals(this.workspaceUri, workspace.workspaceUri);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(
billableAccountId,
callerInformation,
created,
createdByInformation,
lastModified,
lastModifiedByInformation,
settings,
status,
workspaceBaseUrl,
workspaceDescription,
workspaceId,
workspaceName,
workspaceUri);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Workspace {\n");
sb.append(" billableAccountId: ").append(toIndentedString(billableAccountId)).append("\n");
sb.append(" callerInformation: ").append(toIndentedString(callerInformation)).append("\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" createdByInformation: ")
.append(toIndentedString(createdByInformation))
.append("\n");
sb.append(" lastModified: ").append(toIndentedString(lastModified)).append("\n");
sb.append(" lastModifiedByInformation: ")
.append(toIndentedString(lastModifiedByInformation))
.append("\n");
sb.append(" settings: ").append(toIndentedString(settings)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" workspaceBaseUrl: ").append(toIndentedString(workspaceBaseUrl)).append("\n");
sb.append(" workspaceDescription: ")
.append(toIndentedString(workspaceDescription))
.append("\n");
sb.append(" workspaceId: ").append(toIndentedString(workspaceId)).append("\n");
sb.append(" workspaceName: ").append(toIndentedString(workspaceName)).append("\n");
sb.append(" workspaceUri: ").append(toIndentedString(workspaceUri)).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 ");
}
}