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

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

The 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;
/**
 * ListPackageUsageDetailsRequest
 */



public class ListPackageUsageDetailsRequest {
  @SerializedName("DeductBeginTime")
  private String deductBeginTime = null;

  @SerializedName("DeductEndTime")
  private String deductEndTime = null;

  @SerializedName("InstanceNo")
  private String instanceNo = null;

  @SerializedName("MaxResults")
  private String maxResults = null;

  @SerializedName("NextToken")
  private String nextToken = null;

  /**
   * Gets or Sets resourceType
   */
  @JsonAdapter(ResourceTypeEnum.Adapter.class)
  public enum ResourceTypeEnum {
    @SerializedName("Package")
    PACKAGE("Package"),
    @SerializedName("RI")
    RI("RI"),
    @SerializedName("RSC")
    RSC("RSC");

    private String value;

    ResourceTypeEnum(String value) {
      this.value = value;
    }
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    public static ResourceTypeEnum fromValue(String input) {
      for (ResourceTypeEnum b : ResourceTypeEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }
    public static class Adapter extends TypeAdapter {
      @Override
      public void write(final JsonWriter jsonWriter, final ResourceTypeEnum enumeration) throws IOException {
        jsonWriter.value(String.valueOf(enumeration.getValue()));
      }

      @Override
      public ResourceTypeEnum read(final JsonReader jsonReader) throws IOException {
        Object value = jsonReader.nextString();
        return ResourceTypeEnum.fromValue((String)(value));
      }
    }
  }  @SerializedName("ResourceType")
  private ResourceTypeEnum resourceType = null;

  public ListPackageUsageDetailsRequest deductBeginTime(String deductBeginTime) {
    this.deductBeginTime = deductBeginTime;
    return this;
  }

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

  public void setDeductBeginTime(String deductBeginTime) {
    this.deductBeginTime = deductBeginTime;
  }

  public ListPackageUsageDetailsRequest deductEndTime(String deductEndTime) {
    this.deductEndTime = deductEndTime;
    return this;
  }

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

  public void setDeductEndTime(String deductEndTime) {
    this.deductEndTime = deductEndTime;
  }

  public ListPackageUsageDetailsRequest instanceNo(String instanceNo) {
    this.instanceNo = instanceNo;
    return this;
  }

   /**
   * Get instanceNo
   * @return instanceNo
  **/
  @Schema(description = "")
  public String getInstanceNo() {
    return instanceNo;
  }

  public void setInstanceNo(String instanceNo) {
    this.instanceNo = instanceNo;
  }

  public ListPackageUsageDetailsRequest maxResults(String maxResults) {
    this.maxResults = maxResults;
    return this;
  }

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

  public void setMaxResults(String maxResults) {
    this.maxResults = maxResults;
  }

  public ListPackageUsageDetailsRequest nextToken(String nextToken) {
    this.nextToken = nextToken;
    return this;
  }

   /**
   * Get nextToken
   * @return nextToken
  **/
  @Schema(description = "")
  public String getNextToken() {
    return nextToken;
  }

  public void setNextToken(String nextToken) {
    this.nextToken = nextToken;
  }

  public ListPackageUsageDetailsRequest resourceType(ResourceTypeEnum resourceType) {
    this.resourceType = resourceType;
    return this;
  }

   /**
   * Get resourceType
   * @return resourceType
  **/
  @NotNull
  @Schema(required = true, description = "")
  public ResourceTypeEnum getResourceType() {
    return resourceType;
  }

  public void setResourceType(ResourceTypeEnum resourceType) {
    this.resourceType = resourceType;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ListPackageUsageDetailsRequest listPackageUsageDetailsRequest = (ListPackageUsageDetailsRequest) o;
    return Objects.equals(this.deductBeginTime, listPackageUsageDetailsRequest.deductBeginTime) &&
        Objects.equals(this.deductEndTime, listPackageUsageDetailsRequest.deductEndTime) &&
        Objects.equals(this.instanceNo, listPackageUsageDetailsRequest.instanceNo) &&
        Objects.equals(this.maxResults, listPackageUsageDetailsRequest.maxResults) &&
        Objects.equals(this.nextToken, listPackageUsageDetailsRequest.nextToken) &&
        Objects.equals(this.resourceType, listPackageUsageDetailsRequest.resourceType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(deductBeginTime, deductEndTime, instanceNo, maxResults, nextToken, resourceType);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ListPackageUsageDetailsRequest {\n");
    
    sb.append("    deductBeginTime: ").append(toIndentedString(deductBeginTime)).append("\n");
    sb.append("    deductEndTime: ").append(toIndentedString(deductEndTime)).append("\n");
    sb.append("    instanceNo: ").append(toIndentedString(instanceNo)).append("\n");
    sb.append("    maxResults: ").append(toIndentedString(maxResults)).append("\n");
    sb.append("    nextToken: ").append(toIndentedString(nextToken)).append("\n");
    sb.append("    resourceType: ").append(toIndentedString(resourceType)).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