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

com.volcengine.cdn.model.CreateUsageReportRequest Maven / Gradle / Ivy

There is a newer version: 0.1.144
Show newest version
/*
 * cdn
 * 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.cdn.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;
/**
 * CreateUsageReportRequest
 */



public class CreateUsageReportRequest {
  @SerializedName("Aggregate")
  private String aggregate = null;

  @SerializedName("BillingCode")
  private String billingCode = null;

  @SerializedName("BillingRegion")
  private String billingRegion = null;

  @SerializedName("CalculationMethod")
  private String calculationMethod = null;

  @SerializedName("Domain")
  private String domain = null;

  @SerializedName("EndTime")
  private Long endTime = null;

  @SerializedName("ExportType")
  private String exportType = null;

  @SerializedName("FreeTimeTrafficCompute")
  private Boolean freeTimeTrafficCompute = null;

  @SerializedName("Metric")
  private String metric = null;

  @SerializedName("StartTime")
  private Long startTime = null;

  @SerializedName("TaskName")
  private String taskName = null;

  @SerializedName("TimeZone")
  private String timeZone = null;

  @SerializedName("TlsTopic")
  private String tlsTopic = null;

  public CreateUsageReportRequest aggregate(String aggregate) {
    this.aggregate = aggregate;
    return this;
  }

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

  public void setAggregate(String aggregate) {
    this.aggregate = aggregate;
  }

  public CreateUsageReportRequest billingCode(String billingCode) {
    this.billingCode = billingCode;
    return this;
  }

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

  public void setBillingCode(String billingCode) {
    this.billingCode = billingCode;
  }

  public CreateUsageReportRequest billingRegion(String billingRegion) {
    this.billingRegion = billingRegion;
    return this;
  }

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

  public void setBillingRegion(String billingRegion) {
    this.billingRegion = billingRegion;
  }

  public CreateUsageReportRequest calculationMethod(String calculationMethod) {
    this.calculationMethod = calculationMethod;
    return this;
  }

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

  public void setCalculationMethod(String calculationMethod) {
    this.calculationMethod = calculationMethod;
  }

  public CreateUsageReportRequest domain(String domain) {
    this.domain = domain;
    return this;
  }

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

  public void setDomain(String domain) {
    this.domain = domain;
  }

  public CreateUsageReportRequest endTime(Long endTime) {
    this.endTime = endTime;
    return this;
  }

   /**
   * Get endTime
   * @return endTime
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Long getEndTime() {
    return endTime;
  }

  public void setEndTime(Long endTime) {
    this.endTime = endTime;
  }

  public CreateUsageReportRequest exportType(String exportType) {
    this.exportType = exportType;
    return this;
  }

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

  public void setExportType(String exportType) {
    this.exportType = exportType;
  }

  public CreateUsageReportRequest freeTimeTrafficCompute(Boolean freeTimeTrafficCompute) {
    this.freeTimeTrafficCompute = freeTimeTrafficCompute;
    return this;
  }

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

  public void setFreeTimeTrafficCompute(Boolean freeTimeTrafficCompute) {
    this.freeTimeTrafficCompute = freeTimeTrafficCompute;
  }

  public CreateUsageReportRequest metric(String metric) {
    this.metric = metric;
    return this;
  }

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

  public void setMetric(String metric) {
    this.metric = metric;
  }

  public CreateUsageReportRequest startTime(Long startTime) {
    this.startTime = startTime;
    return this;
  }

   /**
   * Get startTime
   * @return startTime
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Long getStartTime() {
    return startTime;
  }

  public void setStartTime(Long startTime) {
    this.startTime = startTime;
  }

  public CreateUsageReportRequest taskName(String taskName) {
    this.taskName = taskName;
    return this;
  }

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

  public void setTaskName(String taskName) {
    this.taskName = taskName;
  }

  public CreateUsageReportRequest timeZone(String timeZone) {
    this.timeZone = timeZone;
    return this;
  }

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

  public void setTimeZone(String timeZone) {
    this.timeZone = timeZone;
  }

  public CreateUsageReportRequest tlsTopic(String tlsTopic) {
    this.tlsTopic = tlsTopic;
    return this;
  }

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

  public void setTlsTopic(String tlsTopic) {
    this.tlsTopic = tlsTopic;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreateUsageReportRequest createUsageReportRequest = (CreateUsageReportRequest) o;
    return Objects.equals(this.aggregate, createUsageReportRequest.aggregate) &&
        Objects.equals(this.billingCode, createUsageReportRequest.billingCode) &&
        Objects.equals(this.billingRegion, createUsageReportRequest.billingRegion) &&
        Objects.equals(this.calculationMethod, createUsageReportRequest.calculationMethod) &&
        Objects.equals(this.domain, createUsageReportRequest.domain) &&
        Objects.equals(this.endTime, createUsageReportRequest.endTime) &&
        Objects.equals(this.exportType, createUsageReportRequest.exportType) &&
        Objects.equals(this.freeTimeTrafficCompute, createUsageReportRequest.freeTimeTrafficCompute) &&
        Objects.equals(this.metric, createUsageReportRequest.metric) &&
        Objects.equals(this.startTime, createUsageReportRequest.startTime) &&
        Objects.equals(this.taskName, createUsageReportRequest.taskName) &&
        Objects.equals(this.timeZone, createUsageReportRequest.timeZone) &&
        Objects.equals(this.tlsTopic, createUsageReportRequest.tlsTopic);
  }

  @Override
  public int hashCode() {
    return Objects.hash(aggregate, billingCode, billingRegion, calculationMethod, domain, endTime, exportType, freeTimeTrafficCompute, metric, startTime, taskName, timeZone, tlsTopic);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateUsageReportRequest {\n");
    
    sb.append("    aggregate: ").append(toIndentedString(aggregate)).append("\n");
    sb.append("    billingCode: ").append(toIndentedString(billingCode)).append("\n");
    sb.append("    billingRegion: ").append(toIndentedString(billingRegion)).append("\n");
    sb.append("    calculationMethod: ").append(toIndentedString(calculationMethod)).append("\n");
    sb.append("    domain: ").append(toIndentedString(domain)).append("\n");
    sb.append("    endTime: ").append(toIndentedString(endTime)).append("\n");
    sb.append("    exportType: ").append(toIndentedString(exportType)).append("\n");
    sb.append("    freeTimeTrafficCompute: ").append(toIndentedString(freeTimeTrafficCompute)).append("\n");
    sb.append("    metric: ").append(toIndentedString(metric)).append("\n");
    sb.append("    startTime: ").append(toIndentedString(startTime)).append("\n");
    sb.append("    taskName: ").append(toIndentedString(taskName)).append("\n");
    sb.append("    timeZone: ").append(toIndentedString(timeZone)).append("\n");
    sb.append("    tlsTopic: ").append(toIndentedString(tlsTopic)).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