com.mypurecloud.sdk.model.PhonesReboot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* PhonesReboot
*/
public class PhonesReboot implements Serializable {
private List phoneIds = new ArrayList();
private String siteId = null;
/**
* The list of phone Ids to reboot.
**/
public PhonesReboot phoneIds(List phoneIds) {
this.phoneIds = phoneIds;
return this;
}
@ApiModelProperty(example = "null", value = "The list of phone Ids to reboot.")
@JsonProperty("phoneIds")
public List getPhoneIds() {
return phoneIds;
}
public void setPhoneIds(List phoneIds) {
this.phoneIds = phoneIds;
}
/**
* ID of the site for which to reboot all phones at that site. no.active.edge and phone.cannot.resolve errors are ignored.
**/
public PhonesReboot siteId(String siteId) {
this.siteId = siteId;
return this;
}
@ApiModelProperty(example = "null", value = "ID of the site for which to reboot all phones at that site. no.active.edge and phone.cannot.resolve errors are ignored.")
@JsonProperty("siteId")
public String getSiteId() {
return siteId;
}
public void setSiteId(String siteId) {
this.siteId = siteId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PhonesReboot phonesReboot = (PhonesReboot) o;
return Objects.equals(this.phoneIds, phonesReboot.phoneIds) &&
Objects.equals(this.siteId, phonesReboot.siteId);
}
@Override
public int hashCode() {
return Objects.hash(phoneIds, siteId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PhonesReboot {\n");
sb.append(" phoneIds: ").append(toIndentedString(phoneIds)).append("\n");
sb.append(" siteId: ").append(toIndentedString(siteId)).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 ");
}
}