com.volcengine.cdn.model.RemoteAuthRuleActionForUpdateCdnConfigInput Maven / Gradle / Ivy
/*
* 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.AuthModeConfigForUpdateCdnConfigInput;
import com.volcengine.cdn.model.AuthResponseConfigForUpdateCdnConfigInput;
import com.volcengine.cdn.model.QueryStringRulesForUpdateCdnConfigInput;
import com.volcengine.cdn.model.RequestHeaderRulesForUpdateCdnConfigInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* RemoteAuthRuleActionForUpdateCdnConfigInput
*/
public class RemoteAuthRuleActionForUpdateCdnConfigInput {
@SerializedName("AuthModeConfig")
private AuthModeConfigForUpdateCdnConfigInput authModeConfig = null;
@SerializedName("AuthResponseConfig")
private AuthResponseConfigForUpdateCdnConfigInput authResponseConfig = null;
@SerializedName("QueryStringRules")
private QueryStringRulesForUpdateCdnConfigInput queryStringRules = null;
@SerializedName("RequestBodyRules")
private String requestBodyRules = null;
@SerializedName("RequestHeaderRules")
private RequestHeaderRulesForUpdateCdnConfigInput requestHeaderRules = null;
public RemoteAuthRuleActionForUpdateCdnConfigInput authModeConfig(AuthModeConfigForUpdateCdnConfigInput authModeConfig) {
this.authModeConfig = authModeConfig;
return this;
}
/**
* Get authModeConfig
* @return authModeConfig
**/
@Valid
@Schema(description = "")
public AuthModeConfigForUpdateCdnConfigInput getAuthModeConfig() {
return authModeConfig;
}
public void setAuthModeConfig(AuthModeConfigForUpdateCdnConfigInput authModeConfig) {
this.authModeConfig = authModeConfig;
}
public RemoteAuthRuleActionForUpdateCdnConfigInput authResponseConfig(AuthResponseConfigForUpdateCdnConfigInput authResponseConfig) {
this.authResponseConfig = authResponseConfig;
return this;
}
/**
* Get authResponseConfig
* @return authResponseConfig
**/
@Valid
@Schema(description = "")
public AuthResponseConfigForUpdateCdnConfigInput getAuthResponseConfig() {
return authResponseConfig;
}
public void setAuthResponseConfig(AuthResponseConfigForUpdateCdnConfigInput authResponseConfig) {
this.authResponseConfig = authResponseConfig;
}
public RemoteAuthRuleActionForUpdateCdnConfigInput queryStringRules(QueryStringRulesForUpdateCdnConfigInput queryStringRules) {
this.queryStringRules = queryStringRules;
return this;
}
/**
* Get queryStringRules
* @return queryStringRules
**/
@Valid
@Schema(description = "")
public QueryStringRulesForUpdateCdnConfigInput getQueryStringRules() {
return queryStringRules;
}
public void setQueryStringRules(QueryStringRulesForUpdateCdnConfigInput queryStringRules) {
this.queryStringRules = queryStringRules;
}
public RemoteAuthRuleActionForUpdateCdnConfigInput 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 RemoteAuthRuleActionForUpdateCdnConfigInput requestHeaderRules(RequestHeaderRulesForUpdateCdnConfigInput requestHeaderRules) {
this.requestHeaderRules = requestHeaderRules;
return this;
}
/**
* Get requestHeaderRules
* @return requestHeaderRules
**/
@Valid
@Schema(description = "")
public RequestHeaderRulesForUpdateCdnConfigInput getRequestHeaderRules() {
return requestHeaderRules;
}
public void setRequestHeaderRules(RequestHeaderRulesForUpdateCdnConfigInput 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;
}
RemoteAuthRuleActionForUpdateCdnConfigInput remoteAuthRuleActionForUpdateCdnConfigInput = (RemoteAuthRuleActionForUpdateCdnConfigInput) o;
return Objects.equals(this.authModeConfig, remoteAuthRuleActionForUpdateCdnConfigInput.authModeConfig) &&
Objects.equals(this.authResponseConfig, remoteAuthRuleActionForUpdateCdnConfigInput.authResponseConfig) &&
Objects.equals(this.queryStringRules, remoteAuthRuleActionForUpdateCdnConfigInput.queryStringRules) &&
Objects.equals(this.requestBodyRules, remoteAuthRuleActionForUpdateCdnConfigInput.requestBodyRules) &&
Objects.equals(this.requestHeaderRules, remoteAuthRuleActionForUpdateCdnConfigInput.requestHeaderRules);
}
@Override
public int hashCode() {
return Objects.hash(authModeConfig, authResponseConfig, queryStringRules, requestBodyRules, requestHeaderRules);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RemoteAuthRuleActionForUpdateCdnConfigInput {\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