com.docusign.esign.model.PlanInformation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-esign-java Show documentation
Show all versions of docusign-esign-java Show documentation
The official Docusign eSignature JAVA client is based on version 2.1 of the Docusign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.
package com.docusign.esign.model;
import java.util.Objects;
import java.util.Arrays;
import com.docusign.esign.model.AddOn;
import com.docusign.esign.model.FeatureSet;
import com.docusign.esign.model.RecipientDomain;
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;
/**
* An object used to identify the features and attributes of the account being created..
*
*/
@ApiModel(description = "An object used to identify the features and attributes of the account being created.")
public class PlanInformation {
@JsonProperty("addOns")
private java.util.List addOns = null;
@JsonProperty("currencyCode")
private String currencyCode = null;
@JsonProperty("freeTrialDaysOverride")
private String freeTrialDaysOverride = null;
@JsonProperty("planFeatureSets")
private java.util.List planFeatureSets = null;
@JsonProperty("planId")
private String planId = null;
@JsonProperty("recipientDomains")
private java.util.List recipientDomains = null;
/**
* addOns.
*
* @return PlanInformation
**/
public PlanInformation addOns(java.util.List addOns) {
this.addOns = addOns;
return this;
}
/**
* addAddOnsItem.
*
* @return PlanInformation
**/
public PlanInformation addAddOnsItem(AddOn addOnsItem) {
if (this.addOns == null) {
this.addOns = new java.util.ArrayList();
}
this.addOns.add(addOnsItem);
return this;
}
/**
* Reserved:.
* @return addOns
**/
@ApiModelProperty(value = "Reserved:")
public java.util.List getAddOns() {
return addOns;
}
/**
* setAddOns.
**/
public void setAddOns(java.util.List addOns) {
this.addOns = addOns;
}
/**
* currencyCode.
*
* @return PlanInformation
**/
public PlanInformation currencyCode(String currencyCode) {
this.currencyCode = currencyCode;
return this;
}
/**
* Specifies the ISO currency code for the account..
* @return currencyCode
**/
@ApiModelProperty(value = "Specifies the ISO currency code for the account.")
public String getCurrencyCode() {
return currencyCode;
}
/**
* setCurrencyCode.
**/
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
}
/**
* freeTrialDaysOverride.
*
* @return PlanInformation
**/
public PlanInformation freeTrialDaysOverride(String freeTrialDaysOverride) {
this.freeTrialDaysOverride = freeTrialDaysOverride;
return this;
}
/**
* Reserved for DocuSign use only..
* @return freeTrialDaysOverride
**/
@ApiModelProperty(value = "Reserved for DocuSign use only.")
public String getFreeTrialDaysOverride() {
return freeTrialDaysOverride;
}
/**
* setFreeTrialDaysOverride.
**/
public void setFreeTrialDaysOverride(String freeTrialDaysOverride) {
this.freeTrialDaysOverride = freeTrialDaysOverride;
}
/**
* planFeatureSets.
*
* @return PlanInformation
**/
public PlanInformation planFeatureSets(java.util.List planFeatureSets) {
this.planFeatureSets = planFeatureSets;
return this;
}
/**
* addPlanFeatureSetsItem.
*
* @return PlanInformation
**/
public PlanInformation addPlanFeatureSetsItem(FeatureSet planFeatureSetsItem) {
if (this.planFeatureSets == null) {
this.planFeatureSets = new java.util.ArrayList();
}
this.planFeatureSets.add(planFeatureSetsItem);
return this;
}
/**
* A complex type that sets the feature sets for the account..
* @return planFeatureSets
**/
@ApiModelProperty(value = "A complex type that sets the feature sets for the account.")
public java.util.List getPlanFeatureSets() {
return planFeatureSets;
}
/**
* setPlanFeatureSets.
**/
public void setPlanFeatureSets(java.util.List planFeatureSets) {
this.planFeatureSets = planFeatureSets;
}
/**
* planId.
*
* @return PlanInformation
**/
public PlanInformation planId(String planId) {
this.planId = planId;
return this;
}
/**
* The DocuSign Plan ID for the account..
* @return planId
**/
@ApiModelProperty(value = "The DocuSign Plan ID for the account.")
public String getPlanId() {
return planId;
}
/**
* setPlanId.
**/
public void setPlanId(String planId) {
this.planId = planId;
}
/**
* recipientDomains.
*
* @return PlanInformation
**/
public PlanInformation recipientDomains(java.util.List recipientDomains) {
this.recipientDomains = recipientDomains;
return this;
}
/**
* addRecipientDomainsItem.
*
* @return PlanInformation
**/
public PlanInformation addRecipientDomainsItem(RecipientDomain recipientDomainsItem) {
if (this.recipientDomains == null) {
this.recipientDomains = new java.util.ArrayList();
}
this.recipientDomains.add(recipientDomainsItem);
return this;
}
/**
* .
* @return recipientDomains
**/
@ApiModelProperty(value = "")
public java.util.List getRecipientDomains() {
return recipientDomains;
}
/**
* setRecipientDomains.
**/
public void setRecipientDomains(java.util.List recipientDomains) {
this.recipientDomains = recipientDomains;
}
/**
* 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;
}
PlanInformation planInformation = (PlanInformation) o;
return Objects.equals(this.addOns, planInformation.addOns) &&
Objects.equals(this.currencyCode, planInformation.currencyCode) &&
Objects.equals(this.freeTrialDaysOverride, planInformation.freeTrialDaysOverride) &&
Objects.equals(this.planFeatureSets, planInformation.planFeatureSets) &&
Objects.equals(this.planId, planInformation.planId) &&
Objects.equals(this.recipientDomains, planInformation.recipientDomains);
}
/**
* Returns the HashCode.
*/
@Override
public int hashCode() {
return Objects.hash(addOns, currencyCode, freeTrialDaysOverride, planFeatureSets, planId, recipientDomains);
}
/**
* Converts the given object to string.
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PlanInformation {\n");
sb.append(" addOns: ").append(toIndentedString(addOns)).append("\n");
sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
sb.append(" freeTrialDaysOverride: ").append(toIndentedString(freeTrialDaysOverride)).append("\n");
sb.append(" planFeatureSets: ").append(toIndentedString(planFeatureSets)).append("\n");
sb.append(" planId: ").append(toIndentedString(planId)).append("\n");
sb.append(" recipientDomains: ").append(toIndentedString(recipientDomains)).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 ");
}
}