com.katalon.testops.api.model.AgentConfigResource Maven / Gradle / Ivy
/*
* Katalon TestOps API reference
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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.katalon.testops.api.model;
import java.util.Objects;
import java.util.Arrays;
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.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AgentConfigResource
*/
@JsonPropertyOrder({
AgentConfigResource.JSON_PROPERTY_TEAM_ID,
AgentConfigResource.JSON_PROPERTY_AGENT_NAME,
AgentConfigResource.JSON_PROPERTY_API_KEY,
AgentConfigResource.JSON_PROPERTY_OS,
AgentConfigResource.JSON_PROPERTY_EMAIL
})
@JsonTypeName("AgentConfigResource")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AgentConfigResource implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_TEAM_ID = "teamId";
private String teamId;
public static final String JSON_PROPERTY_AGENT_NAME = "agentName";
private String agentName;
public static final String JSON_PROPERTY_API_KEY = "apiKey";
private String apiKey;
public static final String JSON_PROPERTY_OS = "os";
private String os;
public static final String JSON_PROPERTY_EMAIL = "email";
private String email;
public AgentConfigResource teamId(String teamId) {
this.teamId = teamId;
return this;
}
/**
* Get teamId
* @return teamId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TEAM_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTeamId() {
return teamId;
}
public void setTeamId(String teamId) {
this.teamId = teamId;
}
public AgentConfigResource agentName(String agentName) {
this.agentName = agentName;
return this;
}
/**
* Get agentName
* @return agentName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_AGENT_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAgentName() {
return agentName;
}
public void setAgentName(String agentName) {
this.agentName = agentName;
}
public AgentConfigResource apiKey(String apiKey) {
this.apiKey = apiKey;
return this;
}
/**
* Get apiKey
* @return apiKey
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_API_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public AgentConfigResource os(String os) {
this.os = os;
return this;
}
/**
* Get os
* @return os
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getOs() {
return os;
}
public void setOs(String os) {
this.os = os;
}
public AgentConfigResource email(String email) {
this.email = email;
return this;
}
/**
* Get email
* @return email
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AgentConfigResource agentConfigResource = (AgentConfigResource) o;
return Objects.equals(this.teamId, agentConfigResource.teamId) &&
Objects.equals(this.agentName, agentConfigResource.agentName) &&
Objects.equals(this.apiKey, agentConfigResource.apiKey) &&
Objects.equals(this.os, agentConfigResource.os) &&
Objects.equals(this.email, agentConfigResource.email);
}
@Override
public int hashCode() {
return Objects.hash(teamId, agentName, apiKey, os, email);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AgentConfigResource {\n");
sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n");
sb.append(" agentName: ").append(toIndentedString(agentName)).append("\n");
sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n");
sb.append(" os: ").append(toIndentedString(os)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).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 ");
}
}