com.seeq.model.PreProvisionInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* PreProvisionInputV1
*/
public class PreProvisionInputV1 {
@JsonProperty("agentName")
private String agentName = null;
@JsonProperty("machineName")
private String machineName = null;
@JsonProperty("reProvisioningAllowed")
private Boolean reProvisioningAllowed = false;
@JsonProperty("sourceAddress")
private String sourceAddress = null;
public PreProvisionInputV1 agentName(String agentName) {
this.agentName = agentName;
return this;
}
/**
* The name of the agent. This is needed to be able to differentiate the agents in side-by-side installations.
* @return agentName
**/
@Schema(description = "The name of the agent. This is needed to be able to differentiate the agents in side-by-side installations.")
public String getAgentName() {
return agentName;
}
public void setAgentName(String agentName) {
this.agentName = agentName;
}
public PreProvisionInputV1 machineName(String machineName) {
this.machineName = machineName;
return this;
}
/**
* The name of the machine where the agent will run.
* @return machineName
**/
@Schema(required = true, description = "The name of the machine where the agent will run.")
public String getMachineName() {
return machineName;
}
public void setMachineName(String machineName) {
this.machineName = machineName;
}
public PreProvisionInputV1 reProvisioningAllowed(Boolean reProvisioningAllowed) {
this.reProvisioningAllowed = reProvisioningAllowed;
return this;
}
/**
* true if re-provisioning is desired even if the user is already provisioned
* @return reProvisioningAllowed
**/
@Schema(description = "true if re-provisioning is desired even if the user is already provisioned")
public Boolean getReProvisioningAllowed() {
return reProvisioningAllowed;
}
public void setReProvisioningAllowed(Boolean reProvisioningAllowed) {
this.reProvisioningAllowed = reProvisioningAllowed;
}
public PreProvisionInputV1 sourceAddress(String sourceAddress) {
this.sourceAddress = sourceAddress;
return this;
}
/**
* The source IP or CIDR range from where the agent would connect.
* @return sourceAddress
**/
@Schema(description = "The source IP or CIDR range from where the agent would connect.")
public String getSourceAddress() {
return sourceAddress;
}
public void setSourceAddress(String sourceAddress) {
this.sourceAddress = sourceAddress;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PreProvisionInputV1 preProvisionInputV1 = (PreProvisionInputV1) o;
return Objects.equals(this.agentName, preProvisionInputV1.agentName) &&
Objects.equals(this.machineName, preProvisionInputV1.machineName) &&
Objects.equals(this.reProvisioningAllowed, preProvisionInputV1.reProvisioningAllowed) &&
Objects.equals(this.sourceAddress, preProvisionInputV1.sourceAddress);
}
@Override
public int hashCode() {
return Objects.hash(agentName, machineName, reProvisioningAllowed, sourceAddress);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PreProvisionInputV1 {\n");
sb.append(" agentName: ").append(toIndentedString(agentName)).append("\n");
sb.append(" machineName: ").append(toIndentedString(machineName)).append("\n");
sb.append(" reProvisioningAllowed: ").append(toIndentedString(reProvisioningAllowed)).append("\n");
sb.append(" sourceAddress: ").append(toIndentedString(sourceAddress)).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 ");
}
}