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

com.volcengine.billing.model.ListResourcePackagesRequest 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;
/**
 * ListResourcePackagesRequest
 */



public class ListResourcePackagesRequest {
  @SerializedName("EffectiveTimeBegin")
  private String effectiveTimeBegin = null;

  @SerializedName("EffectiveTimeEnd")
  private String effectiveTimeEnd = null;

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

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

  @SerializedName("Product")
  private String product = 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;

  /**
   * Gets or Sets status
   */
  @JsonAdapter(StatusEnum.Adapter.class)
  public enum StatusEnum {
    @SerializedName("Effective")
    EFFECTIVE("Effective"),
    @SerializedName("NotEffective")
    NOTEFFECTIVE("NotEffective"),
    @SerializedName("FailedToCreate")
    FAILEDTOCREATE("FailedToCreate"),
    @SerializedName("UsedUp")
    USEDUP("UsedUp"),
    @SerializedName("Expired")
    EXPIRED("Expired"),
    @SerializedName("Refunded")
    REFUNDED("Refunded");

    private String value;

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

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

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

  public ListResourcePackagesRequest effectiveTimeBegin(String effectiveTimeBegin) {
    this.effectiveTimeBegin = effectiveTimeBegin;
    return this;
  }

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

  public void setEffectiveTimeBegin(String effectiveTimeBegin) {
    this.effectiveTimeBegin = effectiveTimeBegin;
  }

  public ListResourcePackagesRequest effectiveTimeEnd(String effectiveTimeEnd) {
    this.effectiveTimeEnd = effectiveTimeEnd;
    return this;
  }

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

  public void setEffectiveTimeEnd(String effectiveTimeEnd) {
    this.effectiveTimeEnd = effectiveTimeEnd;
  }

  public ListResourcePackagesRequest 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 ListResourcePackagesRequest 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 ListResourcePackagesRequest product(String product) {
    this.product = product;
    return this;
  }

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

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

  public ListResourcePackagesRequest 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;
  }

  public ListResourcePackagesRequest status(StatusEnum status) {
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @Schema(description = "")
  public StatusEnum getStatus() {
    return status;
  }

  public void setStatus(StatusEnum status) {
    this.status = status;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ListResourcePackagesRequest listResourcePackagesRequest = (ListResourcePackagesRequest) o;
    return Objects.equals(this.effectiveTimeBegin, listResourcePackagesRequest.effectiveTimeBegin) &&
        Objects.equals(this.effectiveTimeEnd, listResourcePackagesRequest.effectiveTimeEnd) &&
        Objects.equals(this.maxResults, listResourcePackagesRequest.maxResults) &&
        Objects.equals(this.nextToken, listResourcePackagesRequest.nextToken) &&
        Objects.equals(this.product, listResourcePackagesRequest.product) &&
        Objects.equals(this.resourceType, listResourcePackagesRequest.resourceType) &&
        Objects.equals(this.status, listResourcePackagesRequest.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(effectiveTimeBegin, effectiveTimeEnd, maxResults, nextToken, product, resourceType, status);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ListResourcePackagesRequest {\n");
    
    sb.append("    effectiveTimeBegin: ").append(toIndentedString(effectiveTimeBegin)).append("\n");
    sb.append("    effectiveTimeEnd: ").append(toIndentedString(effectiveTimeEnd)).append("\n");
    sb.append("    maxResults: ").append(toIndentedString(maxResults)).append("\n");
    sb.append("    nextToken: ").append(toIndentedString(nextToken)).append("\n");
    sb.append("    product: ").append(toIndentedString(product)).append("\n");
    sb.append("    resourceType: ").append(toIndentedString(resourceType)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).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