com.arm.mbed.cloud.sdk.internal.enrollment.model.EnrollmentIdentities Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enrollment Show documentation
Show all versions of enrollment Show documentation
The Mbed Cloud SDK provides a simplified interface to the Mbed Cloud APIs by exposing functionality using conventions and paradigms familiar to Java developers.
/*
* Enrollment API
* Mbed Cloud Connect Enrollment Service allows users to claim the ownership of a device which is not yet assigned to an account. A device without an assigned account can be a device purchased from the open market (OEM dealer) or a device trasferred from an account to another. More information in [Device overship: First-to-claim](TODO: link needed) document.
*
* OpenAPI spec version: 3
*
*
* 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 com.arm.mbed.cloud.sdk.internal.enrollment.model;
import java.util.Objects;
import com.arm.mbed.cloud.sdk.internal.enrollment.model.EnrollmentIdentity;
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;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* EnrollmentIdentities
*/
public class EnrollmentIdentities implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("after")
private String after = null;
@SerializedName("has_more")
private Boolean hasMore = null;
@SerializedName("total_count")
private Integer totalCount = null;
/**
* Gets or Sets object
*/
@JsonAdapter(ObjectEnum.Adapter.class)
public enum ObjectEnum {
LIST("list");
private String value;
ObjectEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static ObjectEnum fromValue(String text) {
for (ObjectEnum b : ObjectEnum.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 ObjectEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public ObjectEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return ObjectEnum.fromValue(String.valueOf(value));
}
}
}
@SerializedName("object")
private ObjectEnum object = null;
@SerializedName("limit")
private Integer limit = null;
@SerializedName("data")
private List data = new ArrayList();
/**
* Gets or Sets order
*/
@JsonAdapter(OrderEnum.Adapter.class)
public enum OrderEnum {
ASC("ASC"),
DESC("DESC");
private String value;
OrderEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static OrderEnum fromValue(String text) {
for (OrderEnum b : OrderEnum.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 OrderEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public OrderEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return OrderEnum.fromValue(String.valueOf(value));
}
}
}
@SerializedName("order")
private OrderEnum order = OrderEnum.ASC;
public EnrollmentIdentities after(String after) {
this.after = after;
return this;
}
/**
* muuid
* @return after
**/
@ApiModelProperty(example = "00005a4e027f0a580a01081c00000000", required = true, value = "muuid")
public String getAfter() {
return after;
}
public void setAfter(String after) {
this.after = after;
}
public EnrollmentIdentities hasMore(Boolean hasMore) {
this.hasMore = hasMore;
return this;
}
/**
* Get hasMore
* @return hasMore
**/
@ApiModelProperty(example = "true", required = true, value = "")
public Boolean isHasMore() {
return hasMore;
}
public void setHasMore(Boolean hasMore) {
this.hasMore = hasMore;
}
public EnrollmentIdentities totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* Get totalCount
* minimum: 1
* @return totalCount
**/
@ApiModelProperty(example = "100", required = true, value = "")
public Integer getTotalCount() {
return totalCount;
}
public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}
public EnrollmentIdentities object(ObjectEnum object) {
this.object = object;
return this;
}
/**
* Get object
* @return object
**/
@ApiModelProperty(example = "list", required = true, value = "")
public ObjectEnum getObject() {
return object;
}
public void setObject(ObjectEnum object) {
this.object = object;
}
public EnrollmentIdentities limit(Integer limit) {
this.limit = limit;
return this;
}
/**
* Range 2-1000, or default.
* minimum: 2
* maximum: 1000
* @return limit
**/
@ApiModelProperty(example = "50", required = true, value = "Range 2-1000, or default.")
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public EnrollmentIdentities data(List data) {
this.data = data;
return this;
}
public EnrollmentIdentities addDataItem(EnrollmentIdentity dataItem) {
this.data.add(dataItem);
return this;
}
/**
* Get data
* @return data
**/
@ApiModelProperty(required = true, value = "")
public List getData() {
return data;
}
public void setData(List data) {
this.data = data;
}
public EnrollmentIdentities order(OrderEnum order) {
this.order = order;
return this;
}
/**
* Get order
* @return order
**/
@ApiModelProperty(example = "ASC", required = true, value = "")
public OrderEnum getOrder() {
return order;
}
public void setOrder(OrderEnum order) {
this.order = order;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EnrollmentIdentities enrollmentIdentities = (EnrollmentIdentities) o;
return Objects.equals(this.after, enrollmentIdentities.after) &&
Objects.equals(this.hasMore, enrollmentIdentities.hasMore) &&
Objects.equals(this.totalCount, enrollmentIdentities.totalCount) &&
Objects.equals(this.object, enrollmentIdentities.object) &&
Objects.equals(this.limit, enrollmentIdentities.limit) &&
Objects.equals(this.data, enrollmentIdentities.data) &&
Objects.equals(this.order, enrollmentIdentities.order);
}
@Override
public int hashCode() {
return Objects.hash(after, hasMore, totalCount, object, limit, data, order);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EnrollmentIdentities {\n");
sb.append(" after: ").append(toIndentedString(after)).append("\n");
sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n");
sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n");
sb.append(" object: ").append(toIndentedString(object)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" order: ").append(toIndentedString(order)).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