com.voximplant.apiclient.response.AddCallerIDResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apiclient Show documentation
Show all versions of apiclient Show documentation
Voximplant Java API client library. Voximplant is a cloud communications platform for business and developers
package com.voximplant.apiclient.response;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;
import java.math.BigDecimal;
import com.voximplant.apiclient.util.MultiArgument;
import com.voximplant.apiclient.util.Error;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.voximplant.apiclient.util.StringHelper;
import com.voximplant.apiclient.util.Alignable;
public class AddCallerIDResponse implements Alignable {
private Error error;
public Error getError() {
return error;
}
public boolean hasError() {
return this.error != null;
}
private Long result;
/**
* 1
*/
public Long getResult() {
return this.result;
}
public boolean hasResult() {
return this.result != null;
}
private Long calleridId;
/**
* The id of the callerID object
*/
public Long getCalleridId() {
return this.calleridId;
}
public boolean hasCalleridId() {
return this.calleridId != null;
}
public String toString(int alignment) {
char[] preAligned = new char[alignment - 1];
char[] aligned = new char[alignment];
Arrays.fill(preAligned, '\t');
Arrays.fill(aligned, '\t');
StringBuilder sb = new StringBuilder()
.append(preAligned)
.append('{')
.append(System.lineSeparator());
if (result != null) {
sb.append(aligned)
.append("\"result\": \"")
.append(result)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (calleridId != null) {
sb.append(aligned)
.append("\"calleridId\": \"")
.append(calleridId)
.append('"')
.append(',')
.append(System.lineSeparator());
}
return sb.append(preAligned).append('}').append(',').toString();
}
@Override
public String toString() {
return toString(1);
}}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy