All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.ProvisionInputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 63.1.6-v202409101657
 * 
 *
 * 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;
/**
 * ProvisionInputV1
 */
public class ProvisionInputV1 {
  @JsonProperty("keyUpgradeRequest")
  private Boolean keyUpgradeRequest = false;

  @JsonProperty("password")
  private String password = null;

  @JsonProperty("username")
  private String username = null;

  public ProvisionInputV1 keyUpgradeRequest(Boolean keyUpgradeRequest) {
    this.keyUpgradeRequest = keyUpgradeRequest;
    return this;
  }

   /**
   * True if this is a key upgrade request.
   * @return keyUpgradeRequest
  **/
  @Schema(description = "True if this is a key upgrade request.")
  public Boolean getKeyUpgradeRequest() {
    return keyUpgradeRequest;
  }

  public void setKeyUpgradeRequest(Boolean keyUpgradeRequest) {
    this.keyUpgradeRequest = keyUpgradeRequest;
  }

  public ProvisionInputV1 password(String password) {
    this.password = password;
    return this;
  }

   /**
   * The new password.
   * @return password
  **/
  @Schema(required = true, description = "The new password.")
  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public ProvisionInputV1 username(String username) {
    this.username = username;
    return this;
  }

   /**
   * The user that has been provisioned for the agent.
   * @return username
  **/
  @Schema(required = true, description = "The user that has been provisioned for the agent.")
  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProvisionInputV1 provisionInputV1 = (ProvisionInputV1) o;
    return Objects.equals(this.keyUpgradeRequest, provisionInputV1.keyUpgradeRequest) &&
        Objects.equals(this.password, provisionInputV1.password) &&
        Objects.equals(this.username, provisionInputV1.username);
  }

  @Override
  public int hashCode() {
    return Objects.hash(keyUpgradeRequest, password, username);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProvisionInputV1 {\n");
    
    sb.append("    keyUpgradeRequest: ").append(toIndentedString(keyUpgradeRequest)).append("\n");
    sb.append("    password: ").append(toIndentedString(password)).append("\n");
    sb.append("    username: ").append(toIndentedString(username)).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 - 2024 Weber Informatics LLC | Privacy Policy