com.tencentcloudapi.gaap.v20180529.models.ModifyRuleAttributeRequest 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 ModifyRuleAttributeRequest extends AbstractModel{
/**
* Listener ID
*/
@SerializedName("ListenerId")
@Expose
private String ListenerId;
/**
* Forwarding rule ID
*/
@SerializedName("RuleId")
@Expose
private String RuleId;
/**
* The strategy used by the listener to access the origin server. Values: `rr` (round-robin), `wrr` (weighted round-robin), `lc` (the least-connections strategy), `lrtt` (the least-response-time strategy).
*/
@SerializedName("Scheduler")
@Expose
private String Scheduler;
/**
* Whether to enable the origin server health check:
1: enable;
0: disable.
*/
@SerializedName("HealthCheck")
@Expose
private Long HealthCheck;
/**
* Health check configuration parameters
*/
@SerializedName("CheckParams")
@Expose
private RuleCheckParams CheckParams;
/**
* Forwarding rule path
*/
@SerializedName("Path")
@Expose
private String Path;
/**
* Protocol types of the forwarding from acceleration connection to origin server, which supports default, HTTP and HTTPS.
If `ForwardProtocol=default`, the `ForwardProtocol` of the listener will be used.
*/
@SerializedName("ForwardProtocol")
@Expose
private String ForwardProtocol;
/**
* The forwarding host, which is carried in the request forwarded from the acceleration connection to the origin server.
If `ForwardHost=default`, the domain name configured with the forwarding rule will be used. For other cases, the value set in this field will be used.
*/
@SerializedName("ForwardHost")
@Expose
private String ForwardHost;
/**
* Specifies whether to enable Server Name Indication (SNI). Valid values: `ON` (enable) and `OFF` (disable).
*/
@SerializedName("ServerNameIndicationSwitch")
@Expose
private String ServerNameIndicationSwitch;
/**
* Server Name Indication (SNI). This field is required when `ServerNameIndicationSwitch` is `ON`.
*/
@SerializedName("ServerNameIndication")
@Expose
private String ServerNameIndication;
/**
* Enables HTTP-to-HTTPS force redirect for a forwarding rule. Enter a hostname and path of the current forwarding rule.
*/
@SerializedName("ForcedRedirect")
@Expose
private String ForcedRedirect;
/**
* Get Listener ID
* @return ListenerId Listener ID
*/
public String getListenerId() {
return this.ListenerId;
}
/**
* Set Listener ID
* @param ListenerId Listener ID
*/
public void setListenerId(String ListenerId) {
this.ListenerId = ListenerId;
}
/**
* Get Forwarding rule ID
* @return RuleId Forwarding rule ID
*/
public String getRuleId() {
return this.RuleId;
}
/**
* Set Forwarding rule ID
* @param RuleId Forwarding rule ID
*/
public void setRuleId(String RuleId) {
this.RuleId = RuleId;
}
/**
* Get The strategy used by the listener to access the origin server. Values: `rr` (round-robin), `wrr` (weighted round-robin), `lc` (the least-connections strategy), `lrtt` (the least-response-time strategy).
* @return Scheduler The strategy used by the listener to access the origin server. Values: `rr` (round-robin), `wrr` (weighted round-robin), `lc` (the least-connections strategy), `lrtt` (the least-response-time strategy).
*/
public String getScheduler() {
return this.Scheduler;
}
/**
* Set The strategy used by the listener to access the origin server. Values: `rr` (round-robin), `wrr` (weighted round-robin), `lc` (the least-connections strategy), `lrtt` (the least-response-time strategy).
* @param Scheduler The strategy used by the listener to access the origin server. Values: `rr` (round-robin), `wrr` (weighted round-robin), `lc` (the least-connections strategy), `lrtt` (the least-response-time strategy).
*/
public void setScheduler(String Scheduler) {
this.Scheduler = Scheduler;
}
/**
* Get Whether to enable the origin server health check:
1: enable;
0: disable.
* @return HealthCheck Whether to enable the origin server health check:
1: enable;
0: disable.
*/
public Long getHealthCheck() {
return this.HealthCheck;
}
/**
* Set Whether to enable the origin server health check:
1: enable;
0: disable.
* @param HealthCheck Whether to enable the origin server health check:
1: enable;
0: disable.
*/
public void setHealthCheck(Long HealthCheck) {
this.HealthCheck = HealthCheck;
}
/**
* Get Health check configuration parameters
* @return CheckParams Health check configuration parameters
*/
public RuleCheckParams getCheckParams() {
return this.CheckParams;
}
/**
* Set Health check configuration parameters
* @param CheckParams Health check configuration parameters
*/
public void setCheckParams(RuleCheckParams CheckParams) {
this.CheckParams = CheckParams;
}
/**
* Get Forwarding rule path
* @return Path Forwarding rule path
*/
public String getPath() {
return this.Path;
}
/**
* Set Forwarding rule path
* @param Path Forwarding rule path
*/
public void setPath(String Path) {
this.Path = Path;
}
/**
* Get Protocol types of the forwarding from acceleration connection to origin server, which supports default, HTTP and HTTPS.
If `ForwardProtocol=default`, the `ForwardProtocol` of the listener will be used.
* @return ForwardProtocol Protocol types of the forwarding from acceleration connection to origin server, which supports default, HTTP and HTTPS.
If `ForwardProtocol=default`, the `ForwardProtocol` of the listener will be used.
*/
public String getForwardProtocol() {
return this.ForwardProtocol;
}
/**
* Set Protocol types of the forwarding from acceleration connection to origin server, which supports default, HTTP and HTTPS.
If `ForwardProtocol=default`, the `ForwardProtocol` of the listener will be used.
* @param ForwardProtocol Protocol types of the forwarding from acceleration connection to origin server, which supports default, HTTP and HTTPS.
If `ForwardProtocol=default`, the `ForwardProtocol` of the listener will be used.
*/
public void setForwardProtocol(String ForwardProtocol) {
this.ForwardProtocol = ForwardProtocol;
}
/**
* Get The forwarding host, which is carried in the request forwarded from the acceleration connection to the origin server.
If `ForwardHost=default`, the domain name configured with the forwarding rule will be used. For other cases, the value set in this field will be used.
* @return ForwardHost The forwarding host, which is carried in the request forwarded from the acceleration connection to the origin server.
If `ForwardHost=default`, the domain name configured with the forwarding rule will be used. For other cases, the value set in this field will be used.
*/
public String getForwardHost() {
return this.ForwardHost;
}
/**
* Set The forwarding host, which is carried in the request forwarded from the acceleration connection to the origin server.
If `ForwardHost=default`, the domain name configured with the forwarding rule will be used. For other cases, the value set in this field will be used.
* @param ForwardHost The forwarding host, which is carried in the request forwarded from the acceleration connection to the origin server.
If `ForwardHost=default`, the domain name configured with the forwarding rule will be used. For other cases, the value set in this field will be used.
*/
public void setForwardHost(String ForwardHost) {
this.ForwardHost = ForwardHost;
}
/**
* Get Specifies whether to enable Server Name Indication (SNI). Valid values: `ON` (enable) and `OFF` (disable).
* @return ServerNameIndicationSwitch Specifies whether to enable Server Name Indication (SNI). Valid values: `ON` (enable) and `OFF` (disable).
*/
public String getServerNameIndicationSwitch() {
return this.ServerNameIndicationSwitch;
}
/**
* Set Specifies whether to enable Server Name Indication (SNI). Valid values: `ON` (enable) and `OFF` (disable).
* @param ServerNameIndicationSwitch Specifies whether to enable Server Name Indication (SNI). Valid values: `ON` (enable) and `OFF` (disable).
*/
public void setServerNameIndicationSwitch(String ServerNameIndicationSwitch) {
this.ServerNameIndicationSwitch = ServerNameIndicationSwitch;
}
/**
* Get Server Name Indication (SNI). This field is required when `ServerNameIndicationSwitch` is `ON`.
* @return ServerNameIndication Server Name Indication (SNI). This field is required when `ServerNameIndicationSwitch` is `ON`.
*/
public String getServerNameIndication() {
return this.ServerNameIndication;
}
/**
* Set Server Name Indication (SNI). This field is required when `ServerNameIndicationSwitch` is `ON`.
* @param ServerNameIndication Server Name Indication (SNI). This field is required when `ServerNameIndicationSwitch` is `ON`.
*/
public void setServerNameIndication(String ServerNameIndication) {
this.ServerNameIndication = ServerNameIndication;
}
/**
* Get Enables HTTP-to-HTTPS force redirect for a forwarding rule. Enter a hostname and path of the current forwarding rule.
* @return ForcedRedirect Enables HTTP-to-HTTPS force redirect for a forwarding rule. Enter a hostname and path of the current forwarding rule.
*/
public String getForcedRedirect() {
return this.ForcedRedirect;
}
/**
* Set Enables HTTP-to-HTTPS force redirect for a forwarding rule. Enter a hostname and path of the current forwarding rule.
* @param ForcedRedirect Enables HTTP-to-HTTPS force redirect for a forwarding rule. Enter a hostname and path of the current forwarding rule.
*/
public void setForcedRedirect(String ForcedRedirect) {
this.ForcedRedirect = ForcedRedirect;
}
public ModifyRuleAttributeRequest() {
}
/**
* 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 ModifyRuleAttributeRequest(ModifyRuleAttributeRequest source) {
if (source.ListenerId != null) {
this.ListenerId = new String(source.ListenerId);
}
if (source.RuleId != null) {
this.RuleId = new String(source.RuleId);
}
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.Path != null) {
this.Path = new String(source.Path);
}
if (source.ForwardProtocol != null) {
this.ForwardProtocol = new String(source.ForwardProtocol);
}
if (source.ForwardHost != null) {
this.ForwardHost = new String(source.ForwardHost);
}
if (source.ServerNameIndicationSwitch != null) {
this.ServerNameIndicationSwitch = new String(source.ServerNameIndicationSwitch);
}
if (source.ServerNameIndication != null) {
this.ServerNameIndication = new String(source.ServerNameIndication);
}
if (source.ForcedRedirect != null) {
this.ForcedRedirect = new String(source.ForcedRedirect);
}
}
/**
* 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 + "RuleId", this.RuleId);
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 + "Path", this.Path);
this.setParamSimple(map, prefix + "ForwardProtocol", this.ForwardProtocol);
this.setParamSimple(map, prefix + "ForwardHost", this.ForwardHost);
this.setParamSimple(map, prefix + "ServerNameIndicationSwitch", this.ServerNameIndicationSwitch);
this.setParamSimple(map, prefix + "ServerNameIndication", this.ServerNameIndication);
this.setParamSimple(map, prefix + "ForcedRedirect", this.ForcedRedirect);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy