com.autodesk.client.model.WorkItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of forge-java-sdk Show documentation
Show all versions of forge-java-sdk Show documentation
Provides Java SDK to help you easily integrate Forge REST APIs into the application
/*
* Forge SDK
* The Forge Platform contains an expanding collection of web service components that can be used with Autodesk cloud-based products or your own technologies. Take advantage of Autodesk’s expertise in design and engineering.
*
* OpenAPI spec version: 0.1.0
* Contact: [email protected]
*
* 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.autodesk.client.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* WorkItem
*/
public class WorkItem {
@JsonProperty("Id")
private String id = null;
@JsonProperty("Arguments")
private Object arguments = null;
@JsonProperty("Status")
private String status = null;
@JsonProperty("StatusDetail")
private Object statusDetail = null;
@JsonProperty("AvailabilityZone")
private String availabilityZone = null;
@JsonProperty("ActivityId")
private String activityId = null;
@JsonProperty("Version")
private Integer version = null;
@JsonProperty("Timestamp")
private String timestamp = null;
public WorkItem id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public WorkItem arguments(Object arguments) {
this.arguments = arguments;
return this;
}
/**
* Get arguments
* @return arguments
**/
@ApiModelProperty(example = "null", required = true, value = "")
public Object getArguments() {
return arguments;
}
public void setArguments(Object arguments) {
this.arguments = arguments;
}
public WorkItem status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "null", value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public WorkItem statusDetail(Object statusDetail) {
this.statusDetail = statusDetail;
return this;
}
/**
* Get statusDetail
* @return statusDetail
**/
@ApiModelProperty(example = "null", value = "")
public Object getStatusDetail() {
return statusDetail;
}
public void setStatusDetail(Object statusDetail) {
this.statusDetail = statusDetail;
}
public WorkItem availabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
return this;
}
/**
* Get availabilityZone
* @return availabilityZone
**/
@ApiModelProperty(example = "null", value = "")
public String getAvailabilityZone() {
return availabilityZone;
}
public void setAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
}
public WorkItem activityId(String activityId) {
this.activityId = activityId;
return this;
}
/**
* Get activityId
* @return activityId
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getActivityId() {
return activityId;
}
public void setActivityId(String activityId) {
this.activityId = activityId;
}
public WorkItem version(Integer version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@ApiModelProperty(example = "null", value = "")
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
public WorkItem timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* Get timestamp
* @return timestamp
**/
@ApiModelProperty(example = "null", value = "")
public String getTimestamp() {
return timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WorkItem workItem = (WorkItem) o;
return Objects.equals(this.id, workItem.id) &&
Objects.equals(this.arguments, workItem.arguments) &&
Objects.equals(this.status, workItem.status) &&
Objects.equals(this.statusDetail, workItem.statusDetail) &&
Objects.equals(this.availabilityZone, workItem.availabilityZone) &&
Objects.equals(this.activityId, workItem.activityId) &&
Objects.equals(this.version, workItem.version) &&
Objects.equals(this.timestamp, workItem.timestamp);
}
@Override
public int hashCode() {
return Objects.hash(id, arguments, status, statusDetail, availabilityZone, activityId, version, timestamp);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WorkItem {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" statusDetail: ").append(toIndentedString(statusDetail)).append("\n");
sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n");
sb.append(" activityId: ").append(toIndentedString(activityId)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).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 ");
}
}