Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Telnyx API
* SIP trunking, SMS, MMS, Call Control and Telephony Data Services.
*
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.telnyx.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.telnyx.sdk.JSON;
/**
* ReservedPhoneNumber
*/
@JsonPropertyOrder({
ReservedPhoneNumber.JSON_PROPERTY_ID,
ReservedPhoneNumber.JSON_PROPERTY_RECORD_TYPE,
ReservedPhoneNumber.JSON_PROPERTY_PHONE_NUMBER,
ReservedPhoneNumber.JSON_PROPERTY_STATUS,
ReservedPhoneNumber.JSON_PROPERTY_CREATED_AT,
ReservedPhoneNumber.JSON_PROPERTY_UPDATED_AT,
ReservedPhoneNumber.JSON_PROPERTY_EXPIRED_AT,
ReservedPhoneNumber.JSON_PROPERTY_ERRORS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ReservedPhoneNumber {
public static final String JSON_PROPERTY_ID = "id";
private UUID id;
public static final String JSON_PROPERTY_RECORD_TYPE = "record_type";
private String recordType;
public static final String JSON_PROPERTY_PHONE_NUMBER = "phone_number";
private String phoneNumber;
/**
* The status of the phone number's reservation.
*/
public enum StatusEnum {
PENDING("pending"),
SUCCESS("success"),
FAILURE("failure");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status;
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private String createdAt;
public static final String JSON_PROPERTY_UPDATED_AT = "updated_at";
private String updatedAt;
public static final String JSON_PROPERTY_EXPIRED_AT = "expired_at";
private String expiredAt;
public static final String JSON_PROPERTY_ERRORS = "errors";
private String errors;
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "12ade33a-21c0-473b-b055-b3c836e1c292", value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getId() {
return id;
}
/**
* Get recordType
* @return recordType
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "reserved_phone_number", value = "")
@JsonProperty(JSON_PROPERTY_RECORD_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRecordType() {
return recordType;
}
public ReservedPhoneNumber phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* Get phoneNumber
* @return phoneNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "+19705555098", value = "")
@JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
/**
* The status of the phone number's reservation.
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The status of the phone number's reservation.")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() {
return status;
}
/**
* An ISO 8901 datetime string denoting when the individual number reservation was created.
* @return createdAt
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2018-01-01T00:00:00.000000Z", value = "An ISO 8901 datetime string denoting when the individual number reservation was created.")
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCreatedAt() {
return createdAt;
}
/**
* An ISO 8901 datetime string for when the the individual number reservation was updated.
* @return updatedAt
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2018-01-01T00:00:00.000000Z", value = "An ISO 8901 datetime string for when the the individual number reservation was updated.")
@JsonProperty(JSON_PROPERTY_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUpdatedAt() {
return updatedAt;
}
/**
* An ISO 8901 datetime string for when the individual number reservation is going to expire
* @return expiredAt
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2018-01-01T00:00:00.000000Z", value = "An ISO 8901 datetime string for when the individual number reservation is going to expire")
@JsonProperty(JSON_PROPERTY_EXPIRED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getExpiredAt() {
return expiredAt;
}
/**
* Errors the reservation could happen upon
* @return errors
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Number is already on hold", value = "Errors the reservation could happen upon")
@JsonProperty(JSON_PROPERTY_ERRORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getErrors() {
return errors;
}
/**
* Return true if this ReservedPhoneNumber object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReservedPhoneNumber reservedPhoneNumber = (ReservedPhoneNumber) o;
return Objects.equals(this.id, reservedPhoneNumber.id) &&
Objects.equals(this.recordType, reservedPhoneNumber.recordType) &&
Objects.equals(this.phoneNumber, reservedPhoneNumber.phoneNumber) &&
Objects.equals(this.status, reservedPhoneNumber.status) &&
Objects.equals(this.createdAt, reservedPhoneNumber.createdAt) &&
Objects.equals(this.updatedAt, reservedPhoneNumber.updatedAt) &&
Objects.equals(this.expiredAt, reservedPhoneNumber.expiredAt) &&
Objects.equals(this.errors, reservedPhoneNumber.errors);
}
@Override
public int hashCode() {
return Objects.hash(id, recordType, phoneNumber, status, createdAt, updatedAt, expiredAt, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ReservedPhoneNumber {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" expiredAt: ").append(toIndentedString(expiredAt)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}