com.sinch.sdk.domains.numbers.models.dto.v1.ActiveNumbersResponseDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
/*
* Numbers | Sinch
* An API service for getting, listing and managing Sinch virtual numbers.
*
* The version of the OpenAPI document: 1.0.2
* 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.sinch.sdk.domains.numbers.models.dto.v1;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** Response message to list your active phone numbers. */
@JsonPropertyOrder({
ActiveNumbersResponseDto.JSON_PROPERTY_ACTIVE_NUMBERS,
ActiveNumbersResponseDto.JSON_PROPERTY_NEXT_PAGE_TOKEN,
ActiveNumbersResponseDto.JSON_PROPERTY_TOTAL_SIZE
})
@JsonFilter("uninitializedFilter")
@JsonInclude(value = JsonInclude.Include.CUSTOM)
public class ActiveNumbersResponseDto {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ACTIVE_NUMBERS = "activeNumbers";
private List activeNumbers;
private boolean activeNumbersDefined = false;
public static final String JSON_PROPERTY_NEXT_PAGE_TOKEN = "nextPageToken";
private String nextPageToken;
private boolean nextPageTokenDefined = false;
public static final String JSON_PROPERTY_TOTAL_SIZE = "totalSize";
private Integer totalSize;
private boolean totalSizeDefined = false;
public ActiveNumbersResponseDto() {}
public ActiveNumbersResponseDto activeNumbers(List activeNumbers) {
this.activeNumbers = activeNumbers;
this.activeNumbersDefined = true;
return this;
}
public ActiveNumbersResponseDto addActiveNumbersItem(ActiveNumberDto activeNumbersItem) {
if (this.activeNumbers == null) {
this.activeNumbers = new ArrayList<>();
}
this.activeNumbersDefined = true;
this.activeNumbers.add(activeNumbersItem);
return this;
}
/**
* List of numbers associated to the client project specified in `ListActiveNumbers`.
*
* @return activeNumbers
*/
@JsonProperty(JSON_PROPERTY_ACTIVE_NUMBERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getActiveNumbers() {
return activeNumbers;
}
@JsonIgnore
public boolean getActiveNumbersDefined() {
return activeNumbersDefined;
}
@JsonProperty(JSON_PROPERTY_ACTIVE_NUMBERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setActiveNumbers(List activeNumbers) {
this.activeNumbers = activeNumbers;
this.activeNumbersDefined = true;
}
public ActiveNumbersResponseDto nextPageToken(String nextPageToken) {
this.nextPageToken = nextPageToken;
this.nextPageTokenDefined = true;
return this;
}
/**
* Get nextPageToken
*
* @return nextPageToken
*/
@JsonProperty(JSON_PROPERTY_NEXT_PAGE_TOKEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNextPageToken() {
return nextPageToken;
}
@JsonIgnore
public boolean getNextPageTokenDefined() {
return nextPageTokenDefined;
}
@JsonProperty(JSON_PROPERTY_NEXT_PAGE_TOKEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNextPageToken(String nextPageToken) {
this.nextPageToken = nextPageToken;
this.nextPageTokenDefined = true;
}
public ActiveNumbersResponseDto totalSize(Integer totalSize) {
this.totalSize = totalSize;
this.totalSizeDefined = true;
return this;
}
/**
* Get totalSize
*
* @return totalSize
*/
@JsonProperty(JSON_PROPERTY_TOTAL_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getTotalSize() {
return totalSize;
}
@JsonIgnore
public boolean getTotalSizeDefined() {
return totalSizeDefined;
}
@JsonProperty(JSON_PROPERTY_TOTAL_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotalSize(Integer totalSize) {
this.totalSize = totalSize;
this.totalSizeDefined = true;
}
/** Return true if this ActiveNumbersResponse object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActiveNumbersResponseDto activeNumbersResponse = (ActiveNumbersResponseDto) o;
return Objects.equals(this.activeNumbers, activeNumbersResponse.activeNumbers)
&& Objects.equals(this.nextPageToken, activeNumbersResponse.nextPageToken)
&& Objects.equals(this.totalSize, activeNumbersResponse.totalSize);
}
@Override
public int hashCode() {
return Objects.hash(activeNumbers, nextPageToken, totalSize);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActiveNumbersResponseDto {\n");
sb.append(" activeNumbers: ").append(toIndentedString(activeNumbers)).append("\n");
sb.append(" nextPageToken: ").append(toIndentedString(nextPageToken)).append("\n");
sb.append(" totalSize: ").append(toIndentedString(totalSize)).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 ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy