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

com.volcengine.cdn.model.RemoteAuthRuleActionForBatchUpdateCdnConfigInput 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 com.volcengine.cdn.model.AuthModeConfigForBatchUpdateCdnConfigInput;
import com.volcengine.cdn.model.AuthResponseConfigForBatchUpdateCdnConfigInput;
import com.volcengine.cdn.model.QueryStringRulesForBatchUpdateCdnConfigInput;
import com.volcengine.cdn.model.RequestHeaderRulesForBatchUpdateCdnConfigInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * RemoteAuthRuleActionForBatchUpdateCdnConfigInput
 */



public class RemoteAuthRuleActionForBatchUpdateCdnConfigInput {
  @SerializedName("AuthModeConfig")
  private AuthModeConfigForBatchUpdateCdnConfigInput authModeConfig = null;

  @SerializedName("AuthResponseConfig")
  private AuthResponseConfigForBatchUpdateCdnConfigInput authResponseConfig = null;

  @SerializedName("QueryStringRules")
  private QueryStringRulesForBatchUpdateCdnConfigInput queryStringRules = null;

  @SerializedName("RequestBodyRules")
  private String requestBodyRules = null;

  @SerializedName("RequestHeaderRules")
  private RequestHeaderRulesForBatchUpdateCdnConfigInput requestHeaderRules = null;

  public RemoteAuthRuleActionForBatchUpdateCdnConfigInput authModeConfig(AuthModeConfigForBatchUpdateCdnConfigInput authModeConfig) {
    this.authModeConfig = authModeConfig;
    return this;
  }

   /**
   * Get authModeConfig
   * @return authModeConfig
  **/
  @Valid
  @Schema(description = "")
  public AuthModeConfigForBatchUpdateCdnConfigInput getAuthModeConfig() {
    return authModeConfig;
  }

  public void setAuthModeConfig(AuthModeConfigForBatchUpdateCdnConfigInput authModeConfig) {
    this.authModeConfig = authModeConfig;
  }

  public RemoteAuthRuleActionForBatchUpdateCdnConfigInput authResponseConfig(AuthResponseConfigForBatchUpdateCdnConfigInput authResponseConfig) {
    this.authResponseConfig = authResponseConfig;
    return this;
  }

   /**
   * Get authResponseConfig
   * @return authResponseConfig
  **/
  @Valid
  @Schema(description = "")
  public AuthResponseConfigForBatchUpdateCdnConfigInput getAuthResponseConfig() {
    return authResponseConfig;
  }

  public void setAuthResponseConfig(AuthResponseConfigForBatchUpdateCdnConfigInput authResponseConfig) {
    this.authResponseConfig = authResponseConfig;
  }

  public RemoteAuthRuleActionForBatchUpdateCdnConfigInput queryStringRules(QueryStringRulesForBatchUpdateCdnConfigInput queryStringRules) {
    this.queryStringRules = queryStringRules;
    return this;
  }

   /**
   * Get queryStringRules
   * @return queryStringRules
  **/
  @Valid
  @Schema(description = "")
  public QueryStringRulesForBatchUpdateCdnConfigInput getQueryStringRules() {
    return queryStringRules;
  }

  public void setQueryStringRules(QueryStringRulesForBatchUpdateCdnConfigInput queryStringRules) {
    this.queryStringRules = queryStringRules;
  }

  public RemoteAuthRuleActionForBatchUpdateCdnConfigInput requestBodyRules(String requestBodyRules) {
    this.requestBodyRules = requestBodyRules;
    return this;
  }

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

  public void setRequestBodyRules(String requestBodyRules) {
    this.requestBodyRules = requestBodyRules;
  }

  public RemoteAuthRuleActionForBatchUpdateCdnConfigInput requestHeaderRules(RequestHeaderRulesForBatchUpdateCdnConfigInput requestHeaderRules) {
    this.requestHeaderRules = requestHeaderRules;
    return this;
  }

   /**
   * Get requestHeaderRules
   * @return requestHeaderRules
  **/
  @Valid
  @Schema(description = "")
  public RequestHeaderRulesForBatchUpdateCdnConfigInput getRequestHeaderRules() {
    return requestHeaderRules;
  }

  public void setRequestHeaderRules(RequestHeaderRulesForBatchUpdateCdnConfigInput requestHeaderRules) {
    this.requestHeaderRules = requestHeaderRules;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RemoteAuthRuleActionForBatchUpdateCdnConfigInput remoteAuthRuleActionForBatchUpdateCdnConfigInput = (RemoteAuthRuleActionForBatchUpdateCdnConfigInput) o;
    return Objects.equals(this.authModeConfig, remoteAuthRuleActionForBatchUpdateCdnConfigInput.authModeConfig) &&
        Objects.equals(this.authResponseConfig, remoteAuthRuleActionForBatchUpdateCdnConfigInput.authResponseConfig) &&
        Objects.equals(this.queryStringRules, remoteAuthRuleActionForBatchUpdateCdnConfigInput.queryStringRules) &&
        Objects.equals(this.requestBodyRules, remoteAuthRuleActionForBatchUpdateCdnConfigInput.requestBodyRules) &&
        Objects.equals(this.requestHeaderRules, remoteAuthRuleActionForBatchUpdateCdnConfigInput.requestHeaderRules);
  }

  @Override
  public int hashCode() {
    return Objects.hash(authModeConfig, authResponseConfig, queryStringRules, requestBodyRules, requestHeaderRules);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RemoteAuthRuleActionForBatchUpdateCdnConfigInput {\n");
    
    sb.append("    authModeConfig: ").append(toIndentedString(authModeConfig)).append("\n");
    sb.append("    authResponseConfig: ").append(toIndentedString(authResponseConfig)).append("\n");
    sb.append("    queryStringRules: ").append(toIndentedString(queryStringRules)).append("\n");
    sb.append("    requestBodyRules: ").append(toIndentedString(requestBodyRules)).append("\n");
    sb.append("    requestHeaderRules: ").append(toIndentedString(requestHeaderRules)).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