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

com.volcengine.billing.model.UnsubscribeInstanceRequest Maven / Gradle / Ivy

There is a newer version: 0.1.144
Show newest version
/*
 * billing
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: common-version
 * 
 *
 * 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.volcengine.billing.model;

import java.util.Objects;
import java.util.Arrays;
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.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * UnsubscribeInstanceRequest
 */



public class UnsubscribeInstanceRequest {
  @SerializedName("ClientToken")
  private String clientToken = null;

  @SerializedName("InstanceID")
  private String instanceID = null;

  @SerializedName("Product")
  private String product = null;

  @SerializedName("UnsubscribeRelatedInstance")
  private Boolean unsubscribeRelatedInstance = null;

  public UnsubscribeInstanceRequest clientToken(String clientToken) {
    this.clientToken = clientToken;
    return this;
  }

   /**
   * Get clientToken
   * @return clientToken
  **/
 @Size(max=36)  @Schema(description = "")
  public String getClientToken() {
    return clientToken;
  }

  public void setClientToken(String clientToken) {
    this.clientToken = clientToken;
  }

  public UnsubscribeInstanceRequest instanceID(String instanceID) {
    this.instanceID = instanceID;
    return this;
  }

   /**
   * Get instanceID
   * @return instanceID
  **/
  @NotNull
  @Schema(required = true, description = "")
  public String getInstanceID() {
    return instanceID;
  }

  public void setInstanceID(String instanceID) {
    this.instanceID = instanceID;
  }

  public UnsubscribeInstanceRequest product(String product) {
    this.product = product;
    return this;
  }

   /**
   * Get product
   * @return product
  **/
  @NotNull
  @Schema(required = true, description = "")
  public String getProduct() {
    return product;
  }

  public void setProduct(String product) {
    this.product = product;
  }

  public UnsubscribeInstanceRequest unsubscribeRelatedInstance(Boolean unsubscribeRelatedInstance) {
    this.unsubscribeRelatedInstance = unsubscribeRelatedInstance;
    return this;
  }

   /**
   * Get unsubscribeRelatedInstance
   * @return unsubscribeRelatedInstance
  **/
  @Schema(description = "")
  public Boolean isUnsubscribeRelatedInstance() {
    return unsubscribeRelatedInstance;
  }

  public void setUnsubscribeRelatedInstance(Boolean unsubscribeRelatedInstance) {
    this.unsubscribeRelatedInstance = unsubscribeRelatedInstance;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UnsubscribeInstanceRequest unsubscribeInstanceRequest = (UnsubscribeInstanceRequest) o;
    return Objects.equals(this.clientToken, unsubscribeInstanceRequest.clientToken) &&
        Objects.equals(this.instanceID, unsubscribeInstanceRequest.instanceID) &&
        Objects.equals(this.product, unsubscribeInstanceRequest.product) &&
        Objects.equals(this.unsubscribeRelatedInstance, unsubscribeInstanceRequest.unsubscribeRelatedInstance);
  }

  @Override
  public int hashCode() {
    return Objects.hash(clientToken, instanceID, product, unsubscribeRelatedInstance);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UnsubscribeInstanceRequest {\n");
    
    sb.append("    clientToken: ").append(toIndentedString(clientToken)).append("\n");
    sb.append("    instanceID: ").append(toIndentedString(instanceID)).append("\n");
    sb.append("    product: ").append(toIndentedString(product)).append("\n");
    sb.append("    unsubscribeRelatedInstance: ").append(toIndentedString(unsubscribeRelatedInstance)).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