![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.apigateway.v20180808.models.ModifySubDomainRequest 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.apigateway.v20180808.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifySubDomainRequest extends AbstractModel {
/**
* Unique service ID.
*/
@SerializedName("ServiceId")
@Expose
private String ServiceId;
/**
* Custom domain name whose path mapping is to be modified.
*/
@SerializedName("SubDomain")
@Expose
private String SubDomain;
/**
* Whether to change to the default path mapping. true: use the default path mapping; false: use the custom path mapping.
*/
@SerializedName("IsDefaultMapping")
@Expose
private Boolean IsDefaultMapping;
/**
* Certificate ID, which is required if the HTTPS protocol is included.
*/
@SerializedName("CertificateId")
@Expose
private String CertificateId;
/**
* Custom domain name protocol type after modification. Valid values: http, https, http&https.
*/
@SerializedName("Protocol")
@Expose
private String Protocol;
/**
* Path mapping list after modification.
*/
@SerializedName("PathMappingSet")
@Expose
private PathMapping [] PathMappingSet;
/**
* Network type. Valid values: INNER, OUTER.
*/
@SerializedName("NetType")
@Expose
private String NetType;
/**
* Whether to force HTTP requests to redirect to HTTPS. Default value: `false`. When this parameter is `true`, API Gateway will redirect all requests using the custom domain name over the HTTP protocol to the HTTPS protocol for forwarding.
*/
@SerializedName("IsForcedHttps")
@Expose
private Boolean IsForcedHttps;
/**
* Get Unique service ID.
* @return ServiceId Unique service ID.
*/
public String getServiceId() {
return this.ServiceId;
}
/**
* Set Unique service ID.
* @param ServiceId Unique service ID.
*/
public void setServiceId(String ServiceId) {
this.ServiceId = ServiceId;
}
/**
* Get Custom domain name whose path mapping is to be modified.
* @return SubDomain Custom domain name whose path mapping is to be modified.
*/
public String getSubDomain() {
return this.SubDomain;
}
/**
* Set Custom domain name whose path mapping is to be modified.
* @param SubDomain Custom domain name whose path mapping is to be modified.
*/
public void setSubDomain(String SubDomain) {
this.SubDomain = SubDomain;
}
/**
* Get Whether to change to the default path mapping. true: use the default path mapping; false: use the custom path mapping.
* @return IsDefaultMapping Whether to change to the default path mapping. true: use the default path mapping; false: use the custom path mapping.
*/
public Boolean getIsDefaultMapping() {
return this.IsDefaultMapping;
}
/**
* Set Whether to change to the default path mapping. true: use the default path mapping; false: use the custom path mapping.
* @param IsDefaultMapping Whether to change to the default path mapping. true: use the default path mapping; false: use the custom path mapping.
*/
public void setIsDefaultMapping(Boolean IsDefaultMapping) {
this.IsDefaultMapping = IsDefaultMapping;
}
/**
* Get Certificate ID, which is required if the HTTPS protocol is included.
* @return CertificateId Certificate ID, which is required if the HTTPS protocol is included.
*/
public String getCertificateId() {
return this.CertificateId;
}
/**
* Set Certificate ID, which is required if the HTTPS protocol is included.
* @param CertificateId Certificate ID, which is required if the HTTPS protocol is included.
*/
public void setCertificateId(String CertificateId) {
this.CertificateId = CertificateId;
}
/**
* Get Custom domain name protocol type after modification. Valid values: http, https, http&https.
* @return Protocol Custom domain name protocol type after modification. Valid values: http, https, http&https.
*/
public String getProtocol() {
return this.Protocol;
}
/**
* Set Custom domain name protocol type after modification. Valid values: http, https, http&https.
* @param Protocol Custom domain name protocol type after modification. Valid values: http, https, http&https.
*/
public void setProtocol(String Protocol) {
this.Protocol = Protocol;
}
/**
* Get Path mapping list after modification.
* @return PathMappingSet Path mapping list after modification.
*/
public PathMapping [] getPathMappingSet() {
return this.PathMappingSet;
}
/**
* Set Path mapping list after modification.
* @param PathMappingSet Path mapping list after modification.
*/
public void setPathMappingSet(PathMapping [] PathMappingSet) {
this.PathMappingSet = PathMappingSet;
}
/**
* Get Network type. Valid values: INNER, OUTER.
* @return NetType Network type. Valid values: INNER, OUTER.
*/
public String getNetType() {
return this.NetType;
}
/**
* Set Network type. Valid values: INNER, OUTER.
* @param NetType Network type. Valid values: INNER, OUTER.
*/
public void setNetType(String NetType) {
this.NetType = NetType;
}
/**
* Get Whether to force HTTP requests to redirect to HTTPS. Default value: `false`. When this parameter is `true`, API Gateway will redirect all requests using the custom domain name over the HTTP protocol to the HTTPS protocol for forwarding.
* @return IsForcedHttps Whether to force HTTP requests to redirect to HTTPS. Default value: `false`. When this parameter is `true`, API Gateway will redirect all requests using the custom domain name over the HTTP protocol to the HTTPS protocol for forwarding.
*/
public Boolean getIsForcedHttps() {
return this.IsForcedHttps;
}
/**
* Set Whether to force HTTP requests to redirect to HTTPS. Default value: `false`. When this parameter is `true`, API Gateway will redirect all requests using the custom domain name over the HTTP protocol to the HTTPS protocol for forwarding.
* @param IsForcedHttps Whether to force HTTP requests to redirect to HTTPS. Default value: `false`. When this parameter is `true`, API Gateway will redirect all requests using the custom domain name over the HTTP protocol to the HTTPS protocol for forwarding.
*/
public void setIsForcedHttps(Boolean IsForcedHttps) {
this.IsForcedHttps = IsForcedHttps;
}
public ModifySubDomainRequest() {
}
/**
* 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 ModifySubDomainRequest(ModifySubDomainRequest source) {
if (source.ServiceId != null) {
this.ServiceId = new String(source.ServiceId);
}
if (source.SubDomain != null) {
this.SubDomain = new String(source.SubDomain);
}
if (source.IsDefaultMapping != null) {
this.IsDefaultMapping = new Boolean(source.IsDefaultMapping);
}
if (source.CertificateId != null) {
this.CertificateId = new String(source.CertificateId);
}
if (source.Protocol != null) {
this.Protocol = new String(source.Protocol);
}
if (source.PathMappingSet != null) {
this.PathMappingSet = new PathMapping[source.PathMappingSet.length];
for (int i = 0; i < source.PathMappingSet.length; i++) {
this.PathMappingSet[i] = new PathMapping(source.PathMappingSet[i]);
}
}
if (source.NetType != null) {
this.NetType = new String(source.NetType);
}
if (source.IsForcedHttps != null) {
this.IsForcedHttps = new Boolean(source.IsForcedHttps);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ServiceId", this.ServiceId);
this.setParamSimple(map, prefix + "SubDomain", this.SubDomain);
this.setParamSimple(map, prefix + "IsDefaultMapping", this.IsDefaultMapping);
this.setParamSimple(map, prefix + "CertificateId", this.CertificateId);
this.setParamSimple(map, prefix + "Protocol", this.Protocol);
this.setParamArrayObj(map, prefix + "PathMappingSet.", this.PathMappingSet);
this.setParamSimple(map, prefix + "NetType", this.NetType);
this.setParamSimple(map, prefix + "IsForcedHttps", this.IsForcedHttps);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy