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

com.volcengine.dcdn.model.CacheRuleForCreateDomainConfigsInput Maven / Gradle / Ivy

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


public class CacheRuleForCreateDomainConfigsInput {
  @SerializedName("CacheTime")
  private Integer cacheTime = null;

  @SerializedName("CacheTimeUnit")
  private String cacheTimeUnit = null;

  @SerializedName("Contents")
  private String contents = null;

  @SerializedName("IgnoreCase")
  private Boolean ignoreCase = null;

  @SerializedName("ParamsFilterType")
  private String paramsFilterType = null;

  @SerializedName("ParamsReserveList")
  private String paramsReserveList = null;

  @SerializedName("Policy")
  private String policy = null;

  @SerializedName("Type")
  private String type = null;

  public CacheRuleForCreateDomainConfigsInput cacheTime(Integer cacheTime) {
    this.cacheTime = cacheTime;
    return this;
  }

   /**
   * Get cacheTime
   * @return cacheTime
  **/
  @Schema(description = "")
  public Integer getCacheTime() {
    return cacheTime;
  }

  public void setCacheTime(Integer cacheTime) {
    this.cacheTime = cacheTime;
  }

  public CacheRuleForCreateDomainConfigsInput cacheTimeUnit(String cacheTimeUnit) {
    this.cacheTimeUnit = cacheTimeUnit;
    return this;
  }

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

  public void setCacheTimeUnit(String cacheTimeUnit) {
    this.cacheTimeUnit = cacheTimeUnit;
  }

  public CacheRuleForCreateDomainConfigsInput contents(String contents) {
    this.contents = contents;
    return this;
  }

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

  public void setContents(String contents) {
    this.contents = contents;
  }

  public CacheRuleForCreateDomainConfigsInput ignoreCase(Boolean ignoreCase) {
    this.ignoreCase = ignoreCase;
    return this;
  }

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

  public void setIgnoreCase(Boolean ignoreCase) {
    this.ignoreCase = ignoreCase;
  }

  public CacheRuleForCreateDomainConfigsInput paramsFilterType(String paramsFilterType) {
    this.paramsFilterType = paramsFilterType;
    return this;
  }

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

  public void setParamsFilterType(String paramsFilterType) {
    this.paramsFilterType = paramsFilterType;
  }

  public CacheRuleForCreateDomainConfigsInput paramsReserveList(String paramsReserveList) {
    this.paramsReserveList = paramsReserveList;
    return this;
  }

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

  public void setParamsReserveList(String paramsReserveList) {
    this.paramsReserveList = paramsReserveList;
  }

  public CacheRuleForCreateDomainConfigsInput policy(String policy) {
    this.policy = policy;
    return this;
  }

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

  public void setPolicy(String policy) {
    this.policy = policy;
  }

  public CacheRuleForCreateDomainConfigsInput type(String type) {
    this.type = type;
    return this;
  }

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

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CacheRuleForCreateDomainConfigsInput cacheRuleForCreateDomainConfigsInput = (CacheRuleForCreateDomainConfigsInput) o;
    return Objects.equals(this.cacheTime, cacheRuleForCreateDomainConfigsInput.cacheTime) &&
        Objects.equals(this.cacheTimeUnit, cacheRuleForCreateDomainConfigsInput.cacheTimeUnit) &&
        Objects.equals(this.contents, cacheRuleForCreateDomainConfigsInput.contents) &&
        Objects.equals(this.ignoreCase, cacheRuleForCreateDomainConfigsInput.ignoreCase) &&
        Objects.equals(this.paramsFilterType, cacheRuleForCreateDomainConfigsInput.paramsFilterType) &&
        Objects.equals(this.paramsReserveList, cacheRuleForCreateDomainConfigsInput.paramsReserveList) &&
        Objects.equals(this.policy, cacheRuleForCreateDomainConfigsInput.policy) &&
        Objects.equals(this.type, cacheRuleForCreateDomainConfigsInput.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cacheTime, cacheTimeUnit, contents, ignoreCase, paramsFilterType, paramsReserveList, policy, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CacheRuleForCreateDomainConfigsInput {\n");
    
    sb.append("    cacheTime: ").append(toIndentedString(cacheTime)).append("\n");
    sb.append("    cacheTimeUnit: ").append(toIndentedString(cacheTimeUnit)).append("\n");
    sb.append("    contents: ").append(toIndentedString(contents)).append("\n");
    sb.append("    ignoreCase: ").append(toIndentedString(ignoreCase)).append("\n");
    sb.append("    paramsFilterType: ").append(toIndentedString(paramsFilterType)).append("\n");
    sb.append("    paramsReserveList: ").append(toIndentedString(paramsReserveList)).append("\n");
    sb.append("    policy: ").append(toIndentedString(policy)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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