com.tencentcloudapi.tem.v20201221.models.IngressTls 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.tem.v20201221.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 IngressTls extends AbstractModel {
/**
* Host array. An empty array indicates the default certificate for all domain names.
*/
@SerializedName("Hosts")
@Expose
private String [] Hosts;
/**
* Secret name. If a certificate is used, this field is left empty.
*/
@SerializedName("SecretName")
@Expose
private String SecretName;
/**
* SSL Certificate Id
*/
@SerializedName("CertificateId")
@Expose
private String CertificateId;
/**
* Get Host array. An empty array indicates the default certificate for all domain names.
* @return Hosts Host array. An empty array indicates the default certificate for all domain names.
*/
public String [] getHosts() {
return this.Hosts;
}
/**
* Set Host array. An empty array indicates the default certificate for all domain names.
* @param Hosts Host array. An empty array indicates the default certificate for all domain names.
*/
public void setHosts(String [] Hosts) {
this.Hosts = Hosts;
}
/**
* Get Secret name. If a certificate is used, this field is left empty.
* @return SecretName Secret name. If a certificate is used, this field is left empty.
*/
public String getSecretName() {
return this.SecretName;
}
/**
* Set Secret name. If a certificate is used, this field is left empty.
* @param SecretName Secret name. If a certificate is used, this field is left empty.
*/
public void setSecretName(String SecretName) {
this.SecretName = SecretName;
}
/**
* Get SSL Certificate Id
* @return CertificateId SSL Certificate Id
*/
public String getCertificateId() {
return this.CertificateId;
}
/**
* Set SSL Certificate Id
* @param CertificateId SSL Certificate Id
*/
public void setCertificateId(String CertificateId) {
this.CertificateId = CertificateId;
}
public IngressTls() {
}
/**
* 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 IngressTls(IngressTls source) {
if (source.Hosts != null) {
this.Hosts = new String[source.Hosts.length];
for (int i = 0; i < source.Hosts.length; i++) {
this.Hosts[i] = new String(source.Hosts[i]);
}
}
if (source.SecretName != null) {
this.SecretName = new String(source.SecretName);
}
if (source.CertificateId != null) {
this.CertificateId = new String(source.CertificateId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "Hosts.", this.Hosts);
this.setParamSimple(map, prefix + "SecretName", this.SecretName);
this.setParamSimple(map, prefix + "CertificateId", this.CertificateId);
}
}