io.swagger.client.model.SubAccount Maven / Gradle / Ivy
/*
* elasticemail_Restful_api
* Send your emails with ElasticEmail API
*
* OpenAPI spec version: 3.0.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Subaccount. Contains detailed data of your Subaccount.
*/
@ApiModel(description = "Subaccount. Contains detailed data of your Subaccount.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-03-29T15:32:30.861Z")
public class SubAccount {
@SerializedName("PublicAccountID")
private String publicAccountID = null;
@SerializedName("ApiKey")
private String apiKey = null;
@SerializedName("Email")
private String email = null;
@SerializedName("PoolName")
private String poolName = null;
@SerializedName("LastActivity")
private String lastActivity = null;
@SerializedName("EmailCredits")
private String emailCredits = null;
@SerializedName("RequiresEmailCredits")
private Boolean requiresEmailCredits = null;
@SerializedName("MonthlyRefillCredits")
private Double monthlyRefillCredits = null;
@SerializedName("EnablePrivateIPRequest")
private Boolean enablePrivateIPRequest = null;
@SerializedName("TotalEmailsSent")
private Long totalEmailsSent = null;
@SerializedName("UnknownUsersPercent")
private Double unknownUsersPercent = null;
@SerializedName("AbusePercent")
private Double abusePercent = null;
@SerializedName("FailedSpamPercent")
private Double failedSpamPercent = null;
@SerializedName("Reputation")
private Double reputation = null;
@SerializedName("DailySendLimit")
private Long dailySendLimit = null;
@SerializedName("Status")
private String status = null;
@SerializedName("EmailSizeLimit")
private Integer emailSizeLimit = null;
@SerializedName("MaxContacts")
private Integer maxContacts = null;
/**
* Sending permission setting for account
*/
@JsonAdapter(SendingPermissionEnum.Adapter.class)
public enum SendingPermissionEnum {
NONE("None"),
SMTP("Smtp"),
HTTPAPI("HttpApi"),
SMTPANDHTTPAPI("SmtpAndHttpApi"),
INTERFACE("Interface"),
SMTPANDINTERFACE("SmtpAndInterface"),
HTTPAPIANDINTERFACE("HttpApiAndInterface"),
USEACCESSLEVEL("UseAccessLevel"),
ALL("All");
private String value;
SendingPermissionEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static SendingPermissionEnum fromValue(String text) {
for (SendingPermissionEnum b : SendingPermissionEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final SendingPermissionEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public SendingPermissionEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return SendingPermissionEnum.fromValue(String.valueOf(value));
}
}
}
@SerializedName("SendingPermission")
private SendingPermissionEnum sendingPermission = null;
@SerializedName("HasModify2FA")
private Boolean hasModify2FA = null;
@SerializedName("ContactsCount")
private Integer contactsCount = null;
public SubAccount publicAccountID(String publicAccountID) {
this.publicAccountID = publicAccountID;
return this;
}
/**
* Public key for limited access to your account such as contact/add so you can use it safely on public websites.
* @return publicAccountID
**/
@ApiModelProperty(example = "EB3EBB7A-C20D-4D39-8F2F-5E6842F58E6F", required = true, value = "Public key for limited access to your account such as contact/add so you can use it safely on public websites.")
public String getPublicAccountID() {
return publicAccountID;
}
public void setPublicAccountID(String publicAccountID) {
this.publicAccountID = publicAccountID;
}
public SubAccount apiKey(String apiKey) {
this.apiKey = apiKey;
return this;
}
/**
* ApiKey that gives you access to our SMTP and HTTP API's.
* @return apiKey
**/
@ApiModelProperty(example = "94DAF66E-4DF6-4E8E-AF96-D094A8D21DF3", required = true, value = "ApiKey that gives you access to our SMTP and HTTP API's.")
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public SubAccount email(String email) {
this.email = email;
return this;
}
/**
* Proper email address.
* @return email
**/
@ApiModelProperty(example = "[email protected]", required = true, value = "Proper email address.")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public SubAccount poolName(String poolName) {
this.poolName = poolName;
return this;
}
/**
* Name of your custom IP Pool to be used in the sending process
* @return poolName
**/
@ApiModelProperty(example = "My Custom Pool", required = true, value = "Name of your custom IP Pool to be used in the sending process")
public String getPoolName() {
return poolName;
}
public void setPoolName(String poolName) {
this.poolName = poolName;
}
public SubAccount lastActivity(String lastActivity) {
this.lastActivity = lastActivity;
return this;
}
/**
* Date of last activity on account
* @return lastActivity
**/
@ApiModelProperty(example = "2001-01-01T12:00:00", required = true, value = "Date of last activity on account")
public String getLastActivity() {
return lastActivity;
}
public void setLastActivity(String lastActivity) {
this.lastActivity = lastActivity;
}
public SubAccount emailCredits(String emailCredits) {
this.emailCredits = emailCredits;
return this;
}
/**
* Amount of email credits
* @return emailCredits
**/
@ApiModelProperty(example = "1000", required = true, value = "Amount of email credits")
public String getEmailCredits() {
return emailCredits;
}
public void setEmailCredits(String emailCredits) {
this.emailCredits = emailCredits;
}
public SubAccount requiresEmailCredits(Boolean requiresEmailCredits) {
this.requiresEmailCredits = requiresEmailCredits;
return this;
}
/**
* True, if account needs credits to send emails. Otherwise, false
* @return requiresEmailCredits
**/
@ApiModelProperty(example = "true", required = true, value = "True, if account needs credits to send emails. Otherwise, false")
public Boolean isRequiresEmailCredits() {
return requiresEmailCredits;
}
public void setRequiresEmailCredits(Boolean requiresEmailCredits) {
this.requiresEmailCredits = requiresEmailCredits;
}
public SubAccount monthlyRefillCredits(Double monthlyRefillCredits) {
this.monthlyRefillCredits = monthlyRefillCredits;
return this;
}
/**
* Amount of credits added to account automatically
* @return monthlyRefillCredits
**/
@ApiModelProperty(example = "1000.0", required = true, value = "Amount of credits added to account automatically")
public Double getMonthlyRefillCredits() {
return monthlyRefillCredits;
}
public void setMonthlyRefillCredits(Double monthlyRefillCredits) {
this.monthlyRefillCredits = monthlyRefillCredits;
}
public SubAccount enablePrivateIPRequest(Boolean enablePrivateIPRequest) {
this.enablePrivateIPRequest = enablePrivateIPRequest;
return this;
}
/**
* True, if account can request for private IP on its own. Otherwise, false
* @return enablePrivateIPRequest
**/
@ApiModelProperty(example = "true", required = true, value = "True, if account can request for private IP on its own. Otherwise, false")
public Boolean isEnablePrivateIPRequest() {
return enablePrivateIPRequest;
}
public void setEnablePrivateIPRequest(Boolean enablePrivateIPRequest) {
this.enablePrivateIPRequest = enablePrivateIPRequest;
}
public SubAccount totalEmailsSent(Long totalEmailsSent) {
this.totalEmailsSent = totalEmailsSent;
return this;
}
/**
* Amount of emails sent from this account
* @return totalEmailsSent
**/
@ApiModelProperty(example = "1000", required = true, value = "Amount of emails sent from this account")
public Long getTotalEmailsSent() {
return totalEmailsSent;
}
public void setTotalEmailsSent(Long totalEmailsSent) {
this.totalEmailsSent = totalEmailsSent;
}
public SubAccount unknownUsersPercent(Double unknownUsersPercent) {
this.unknownUsersPercent = unknownUsersPercent;
return this;
}
/**
* Percent of Unknown users - users that couldn't be found
* @return unknownUsersPercent
**/
@ApiModelProperty(example = "0.0", required = true, value = "Percent of Unknown users - users that couldn't be found")
public Double getUnknownUsersPercent() {
return unknownUsersPercent;
}
public void setUnknownUsersPercent(Double unknownUsersPercent) {
this.unknownUsersPercent = unknownUsersPercent;
}
public SubAccount abusePercent(Double abusePercent) {
this.abusePercent = abusePercent;
return this;
}
/**
* Percent of Complaining users - those, who do not want to receive email from you.
* @return abusePercent
**/
@ApiModelProperty(example = "0.0", required = true, value = "Percent of Complaining users - those, who do not want to receive email from you.")
public Double getAbusePercent() {
return abusePercent;
}
public void setAbusePercent(Double abusePercent) {
this.abusePercent = abusePercent;
}
public SubAccount failedSpamPercent(Double failedSpamPercent) {
this.failedSpamPercent = failedSpamPercent;
return this;
}
/**
* Percent of Bounced users
* @return failedSpamPercent
**/
@ApiModelProperty(example = "0.0", required = true, value = "Percent of Bounced users")
public Double getFailedSpamPercent() {
return failedSpamPercent;
}
public void setFailedSpamPercent(Double failedSpamPercent) {
this.failedSpamPercent = failedSpamPercent;
}
public SubAccount reputation(Double reputation) {
this.reputation = reputation;
return this;
}
/**
* Numeric reputation
* @return reputation
**/
@ApiModelProperty(example = "100.0", required = true, value = "Numeric reputation")
public Double getReputation() {
return reputation;
}
public void setReputation(Double reputation) {
this.reputation = reputation;
}
public SubAccount dailySendLimit(Long dailySendLimit) {
this.dailySendLimit = dailySendLimit;
return this;
}
/**
* Amount of emails account can send daily
* @return dailySendLimit
**/
@ApiModelProperty(example = "100000", required = true, value = "Amount of emails account can send daily")
public Long getDailySendLimit() {
return dailySendLimit;
}
public void setDailySendLimit(Long dailySendLimit) {
this.dailySendLimit = dailySendLimit;
}
public SubAccount status(String status) {
this.status = status;
return this;
}
/**
* Name of account's status: Deleted, Disabled, UnderReview, NoPaymentsAllowed, NeverSignedIn, Active, SystemPaused
* @return status
**/
@ApiModelProperty(required = true, value = "Name of account's status: Deleted, Disabled, UnderReview, NoPaymentsAllowed, NeverSignedIn, Active, SystemPaused")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public SubAccount emailSizeLimit(Integer emailSizeLimit) {
this.emailSizeLimit = emailSizeLimit;
return this;
}
/**
* Maximum size of email including attachments in MB's
* @return emailSizeLimit
**/
@ApiModelProperty(example = "10", required = true, value = "Maximum size of email including attachments in MB's")
public Integer getEmailSizeLimit() {
return emailSizeLimit;
}
public void setEmailSizeLimit(Integer emailSizeLimit) {
this.emailSizeLimit = emailSizeLimit;
}
public SubAccount maxContacts(Integer maxContacts) {
this.maxContacts = maxContacts;
return this;
}
/**
* Maximum number of contacts the account can have
* @return maxContacts
**/
@ApiModelProperty(example = "100000", required = true, value = "Maximum number of contacts the account can have")
public Integer getMaxContacts() {
return maxContacts;
}
public void setMaxContacts(Integer maxContacts) {
this.maxContacts = maxContacts;
}
public SubAccount sendingPermission(SendingPermissionEnum sendingPermission) {
this.sendingPermission = sendingPermission;
return this;
}
/**
* Sending permission setting for account
* @return sendingPermission
**/
@ApiModelProperty(example = "All", required = true, value = "Sending permission setting for account")
public SendingPermissionEnum getSendingPermission() {
return sendingPermission;
}
public void setSendingPermission(SendingPermissionEnum sendingPermission) {
this.sendingPermission = sendingPermission;
}
public SubAccount hasModify2FA(Boolean hasModify2FA) {
this.hasModify2FA = hasModify2FA;
return this;
}
/**
* Get hasModify2FA
* @return hasModify2FA
**/
@ApiModelProperty(required = true, value = "")
public Boolean isHasModify2FA() {
return hasModify2FA;
}
public void setHasModify2FA(Boolean hasModify2FA) {
this.hasModify2FA = hasModify2FA;
}
public SubAccount contactsCount(Integer contactsCount) {
this.contactsCount = contactsCount;
return this;
}
/**
* Get contactsCount
* @return contactsCount
**/
@ApiModelProperty(required = true, value = "")
public Integer getContactsCount() {
return contactsCount;
}
public void setContactsCount(Integer contactsCount) {
this.contactsCount = contactsCount;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SubAccount subAccount = (SubAccount) o;
return Objects.equals(this.publicAccountID, subAccount.publicAccountID) &&
Objects.equals(this.apiKey, subAccount.apiKey) &&
Objects.equals(this.email, subAccount.email) &&
Objects.equals(this.poolName, subAccount.poolName) &&
Objects.equals(this.lastActivity, subAccount.lastActivity) &&
Objects.equals(this.emailCredits, subAccount.emailCredits) &&
Objects.equals(this.requiresEmailCredits, subAccount.requiresEmailCredits) &&
Objects.equals(this.monthlyRefillCredits, subAccount.monthlyRefillCredits) &&
Objects.equals(this.enablePrivateIPRequest, subAccount.enablePrivateIPRequest) &&
Objects.equals(this.totalEmailsSent, subAccount.totalEmailsSent) &&
Objects.equals(this.unknownUsersPercent, subAccount.unknownUsersPercent) &&
Objects.equals(this.abusePercent, subAccount.abusePercent) &&
Objects.equals(this.failedSpamPercent, subAccount.failedSpamPercent) &&
Objects.equals(this.reputation, subAccount.reputation) &&
Objects.equals(this.dailySendLimit, subAccount.dailySendLimit) &&
Objects.equals(this.status, subAccount.status) &&
Objects.equals(this.emailSizeLimit, subAccount.emailSizeLimit) &&
Objects.equals(this.maxContacts, subAccount.maxContacts) &&
Objects.equals(this.sendingPermission, subAccount.sendingPermission) &&
Objects.equals(this.hasModify2FA, subAccount.hasModify2FA) &&
Objects.equals(this.contactsCount, subAccount.contactsCount);
}
@Override
public int hashCode() {
return Objects.hash(publicAccountID, apiKey, email, poolName, lastActivity, emailCredits, requiresEmailCredits, monthlyRefillCredits, enablePrivateIPRequest, totalEmailsSent, unknownUsersPercent, abusePercent, failedSpamPercent, reputation, dailySendLimit, status, emailSizeLimit, maxContacts, sendingPermission, hasModify2FA, contactsCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubAccount {\n");
sb.append(" publicAccountID: ").append(toIndentedString(publicAccountID)).append("\n");
sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" poolName: ").append(toIndentedString(poolName)).append("\n");
sb.append(" lastActivity: ").append(toIndentedString(lastActivity)).append("\n");
sb.append(" emailCredits: ").append(toIndentedString(emailCredits)).append("\n");
sb.append(" requiresEmailCredits: ").append(toIndentedString(requiresEmailCredits)).append("\n");
sb.append(" monthlyRefillCredits: ").append(toIndentedString(monthlyRefillCredits)).append("\n");
sb.append(" enablePrivateIPRequest: ").append(toIndentedString(enablePrivateIPRequest)).append("\n");
sb.append(" totalEmailsSent: ").append(toIndentedString(totalEmailsSent)).append("\n");
sb.append(" unknownUsersPercent: ").append(toIndentedString(unknownUsersPercent)).append("\n");
sb.append(" abusePercent: ").append(toIndentedString(abusePercent)).append("\n");
sb.append(" failedSpamPercent: ").append(toIndentedString(failedSpamPercent)).append("\n");
sb.append(" reputation: ").append(toIndentedString(reputation)).append("\n");
sb.append(" dailySendLimit: ").append(toIndentedString(dailySendLimit)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" emailSizeLimit: ").append(toIndentedString(emailSizeLimit)).append("\n");
sb.append(" maxContacts: ").append(toIndentedString(maxContacts)).append("\n");
sb.append(" sendingPermission: ").append(toIndentedString(sendingPermission)).append("\n");
sb.append(" hasModify2FA: ").append(toIndentedString(hasModify2FA)).append("\n");
sb.append(" contactsCount: ").append(toIndentedString(contactsCount)).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