com.tencentcloudapi.gaap.v20180529.models.CreateRuleRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.gaap.v20180529.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateRuleRequest extends AbstractModel{
/**
* Layer-7 listener ID
*/
@SerializedName("ListenerId")
@Expose
private String ListenerId;
/**
* Domain name of the forwarding rule
*/
@SerializedName("Domain")
@Expose
private String Domain;
/**
* Path of the forwarding rule
*/
@SerializedName("Path")
@Expose
private String Path;
/**
* The origin server type of the forwarding rule, which supports IP and DOMAIN types.
*/
@SerializedName("RealServerType")
@Expose
private String RealServerType;
/**
* Forwarding rules of origin server, which supports round robin (rr), weighted round robin (wrr), and least connections (lc).
*/
@SerializedName("Scheduler")
@Expose
private String Scheduler;
/**
* Whether the health check is enabled for rules. 1: enabled; 0: disabled.
*/
@SerializedName("HealthCheck")
@Expose
private Long HealthCheck;
/**
* Parameters related to origin server health check
*/
@SerializedName("CheckParams")
@Expose
private RuleCheckParams CheckParams;
/**
* Protocol types of the forwarding from acceleration connection to origin server, which supports HTTP or HTTPS.
If this field is not passed in, it indicates that the ForwardProtocol of the corresponding listener will be used.
*/
@SerializedName("ForwardProtocol")
@Expose
private String ForwardProtocol;
/**
* Remote host to which the acceleration connection forwards. If this parameter is not specified, the default host will be used, i.e., the host with which the client initiates HTTP requests.
*/
@SerializedName("ForwardHost")
@Expose
private String ForwardHost;
/**
* Get Layer-7 listener ID
* @return ListenerId Layer-7 listener ID
*/
public String getListenerId() {
return this.ListenerId;
}
/**
* Set Layer-7 listener ID
* @param ListenerId Layer-7 listener ID
*/
public void setListenerId(String ListenerId) {
this.ListenerId = ListenerId;
}
/**
* Get Domain name of the forwarding rule
* @return Domain Domain name of the forwarding rule
*/
public String getDomain() {
return this.Domain;
}
/**
* Set Domain name of the forwarding rule
* @param Domain Domain name of the forwarding rule
*/
public void setDomain(String Domain) {
this.Domain = Domain;
}
/**
* Get Path of the forwarding rule
* @return Path Path of the forwarding rule
*/
public String getPath() {
return this.Path;
}
/**
* Set Path of the forwarding rule
* @param Path Path of the forwarding rule
*/
public void setPath(String Path) {
this.Path = Path;
}
/**
* Get The origin server type of the forwarding rule, which supports IP and DOMAIN types.
* @return RealServerType The origin server type of the forwarding rule, which supports IP and DOMAIN types.
*/
public String getRealServerType() {
return this.RealServerType;
}
/**
* Set The origin server type of the forwarding rule, which supports IP and DOMAIN types.
* @param RealServerType The origin server type of the forwarding rule, which supports IP and DOMAIN types.
*/
public void setRealServerType(String RealServerType) {
this.RealServerType = RealServerType;
}
/**
* Get Forwarding rules of origin server, which supports round robin (rr), weighted round robin (wrr), and least connections (lc).
* @return Scheduler Forwarding rules of origin server, which supports round robin (rr), weighted round robin (wrr), and least connections (lc).
*/
public String getScheduler() {
return this.Scheduler;
}
/**
* Set Forwarding rules of origin server, which supports round robin (rr), weighted round robin (wrr), and least connections (lc).
* @param Scheduler Forwarding rules of origin server, which supports round robin (rr), weighted round robin (wrr), and least connections (lc).
*/
public void setScheduler(String Scheduler) {
this.Scheduler = Scheduler;
}
/**
* Get Whether the health check is enabled for rules. 1: enabled; 0: disabled.
* @return HealthCheck Whether the health check is enabled for rules. 1: enabled; 0: disabled.
*/
public Long getHealthCheck() {
return this.HealthCheck;
}
/**
* Set Whether the health check is enabled for rules. 1: enabled; 0: disabled.
* @param HealthCheck Whether the health check is enabled for rules. 1: enabled; 0: disabled.
*/
public void setHealthCheck(Long HealthCheck) {
this.HealthCheck = HealthCheck;
}
/**
* Get Parameters related to origin server health check
* @return CheckParams Parameters related to origin server health check
*/
public RuleCheckParams getCheckParams() {
return this.CheckParams;
}
/**
* Set Parameters related to origin server health check
* @param CheckParams Parameters related to origin server health check
*/
public void setCheckParams(RuleCheckParams CheckParams) {
this.CheckParams = CheckParams;
}
/**
* Get Protocol types of the forwarding from acceleration connection to origin server, which supports HTTP or HTTPS.
If this field is not passed in, it indicates that the ForwardProtocol of the corresponding listener will be used.
* @return ForwardProtocol Protocol types of the forwarding from acceleration connection to origin server, which supports HTTP or HTTPS.
If this field is not passed in, it indicates that the ForwardProtocol of the corresponding listener will be used.
*/
public String getForwardProtocol() {
return this.ForwardProtocol;
}
/**
* Set Protocol types of the forwarding from acceleration connection to origin server, which supports HTTP or HTTPS.
If this field is not passed in, it indicates that the ForwardProtocol of the corresponding listener will be used.
* @param ForwardProtocol Protocol types of the forwarding from acceleration connection to origin server, which supports HTTP or HTTPS.
If this field is not passed in, it indicates that the ForwardProtocol of the corresponding listener will be used.
*/
public void setForwardProtocol(String ForwardProtocol) {
this.ForwardProtocol = ForwardProtocol;
}
/**
* Get Remote host to which the acceleration connection forwards. If this parameter is not specified, the default host will be used, i.e., the host with which the client initiates HTTP requests.
* @return ForwardHost Remote host to which the acceleration connection forwards. If this parameter is not specified, the default host will be used, i.e., the host with which the client initiates HTTP requests.
*/
public String getForwardHost() {
return this.ForwardHost;
}
/**
* Set Remote host to which the acceleration connection forwards. If this parameter is not specified, the default host will be used, i.e., the host with which the client initiates HTTP requests.
* @param ForwardHost Remote host to which the acceleration connection forwards. If this parameter is not specified, the default host will be used, i.e., the host with which the client initiates HTTP requests.
*/
public void setForwardHost(String ForwardHost) {
this.ForwardHost = ForwardHost;
}
public CreateRuleRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public CreateRuleRequest(CreateRuleRequest source) {
if (source.ListenerId != null) {
this.ListenerId = new String(source.ListenerId);
}
if (source.Domain != null) {
this.Domain = new String(source.Domain);
}
if (source.Path != null) {
this.Path = new String(source.Path);
}
if (source.RealServerType != null) {
this.RealServerType = new String(source.RealServerType);
}
if (source.Scheduler != null) {
this.Scheduler = new String(source.Scheduler);
}
if (source.HealthCheck != null) {
this.HealthCheck = new Long(source.HealthCheck);
}
if (source.CheckParams != null) {
this.CheckParams = new RuleCheckParams(source.CheckParams);
}
if (source.ForwardProtocol != null) {
this.ForwardProtocol = new String(source.ForwardProtocol);
}
if (source.ForwardHost != null) {
this.ForwardHost = new String(source.ForwardHost);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ListenerId", this.ListenerId);
this.setParamSimple(map, prefix + "Domain", this.Domain);
this.setParamSimple(map, prefix + "Path", this.Path);
this.setParamSimple(map, prefix + "RealServerType", this.RealServerType);
this.setParamSimple(map, prefix + "Scheduler", this.Scheduler);
this.setParamSimple(map, prefix + "HealthCheck", this.HealthCheck);
this.setParamObj(map, prefix + "CheckParams.", this.CheckParams);
this.setParamSimple(map, prefix + "ForwardProtocol", this.ForwardProtocol);
this.setParamSimple(map, prefix + "ForwardHost", this.ForwardHost);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy