
com.tencentcloudapi.tem.v20210701.models.EksService Maven / Gradle / Ivy
/*
* 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.v20210701.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class EksService extends AbstractModel{
/**
* Service name
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Available ports
*/
@SerializedName("Ports")
@Expose
private Long [] Ports;
/**
* Yaml contents
*/
@SerializedName("Yaml")
@Expose
private String Yaml;
/**
* Service name
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("ApplicationName")
@Expose
private String ApplicationName;
/**
* Version name
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("VersionName")
@Expose
private String VersionName;
/**
* Private IP
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("ClusterIp")
@Expose
private String [] ClusterIp;
/**
* Public IP
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("ExternalIp")
@Expose
private String ExternalIp;
/**
* The access type. Valid values:
- EXTERNAL (internet access)
- VPC (Intra-VPC access)
- CLUSTER (Intra-cluster access)
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* Subnet ID. It is filled when the access type is `VPC`.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("SubnetId")
@Expose
private String SubnetId;
/**
* Load balancer ID. It is filled when the access type is `EXTERNAL` or `CLUSTER`. It’s created automatically by default.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("LoadBalanceId")
@Expose
private String LoadBalanceId;
/**
* Port mapping
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("PortMappings")
@Expose
private PortMapping [] PortMappings;
/**
* Get Service name
* @return Name Service name
*/
public String getName() {
return this.Name;
}
/**
* Set Service name
* @param Name Service name
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Available ports
* @return Ports Available ports
*/
public Long [] getPorts() {
return this.Ports;
}
/**
* Set Available ports
* @param Ports Available ports
*/
public void setPorts(Long [] Ports) {
this.Ports = Ports;
}
/**
* Get Yaml contents
* @return Yaml Yaml contents
*/
public String getYaml() {
return this.Yaml;
}
/**
* Set Yaml contents
* @param Yaml Yaml contents
*/
public void setYaml(String Yaml) {
this.Yaml = Yaml;
}
/**
* Get Service name
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return ApplicationName Service name
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getApplicationName() {
return this.ApplicationName;
}
/**
* Set Service name
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param ApplicationName Service name
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setApplicationName(String ApplicationName) {
this.ApplicationName = ApplicationName;
}
/**
* Get Version name
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return VersionName Version name
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getVersionName() {
return this.VersionName;
}
/**
* Set Version name
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param VersionName Version name
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setVersionName(String VersionName) {
this.VersionName = VersionName;
}
/**
* Get Private IP
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return ClusterIp Private IP
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String [] getClusterIp() {
return this.ClusterIp;
}
/**
* Set Private IP
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param ClusterIp Private IP
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setClusterIp(String [] ClusterIp) {
this.ClusterIp = ClusterIp;
}
/**
* Get Public IP
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return ExternalIp Public IP
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getExternalIp() {
return this.ExternalIp;
}
/**
* Set Public IP
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param ExternalIp Public IP
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setExternalIp(String ExternalIp) {
this.ExternalIp = ExternalIp;
}
/**
* Get The access type. Valid values:
- EXTERNAL (internet access)
- VPC (Intra-VPC access)
- CLUSTER (Intra-cluster access)
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return Type The access type. Valid values:
- EXTERNAL (internet access)
- VPC (Intra-VPC access)
- CLUSTER (Intra-cluster access)
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getType() {
return this.Type;
}
/**
* Set The access type. Valid values:
- EXTERNAL (internet access)
- VPC (Intra-VPC access)
- CLUSTER (Intra-cluster access)
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param Type The access type. Valid values:
- EXTERNAL (internet access)
- VPC (Intra-VPC access)
- CLUSTER (Intra-cluster access)
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get Subnet ID. It is filled when the access type is `VPC`.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return SubnetId Subnet ID. It is filled when the access type is `VPC`.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getSubnetId() {
return this.SubnetId;
}
/**
* Set Subnet ID. It is filled when the access type is `VPC`.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param SubnetId Subnet ID. It is filled when the access type is `VPC`.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setSubnetId(String SubnetId) {
this.SubnetId = SubnetId;
}
/**
* Get Load balancer ID. It is filled when the access type is `EXTERNAL` or `CLUSTER`. It’s created automatically by default.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return LoadBalanceId Load balancer ID. It is filled when the access type is `EXTERNAL` or `CLUSTER`. It’s created automatically by default.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getLoadBalanceId() {
return this.LoadBalanceId;
}
/**
* Set Load balancer ID. It is filled when the access type is `EXTERNAL` or `CLUSTER`. It’s created automatically by default.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param LoadBalanceId Load balancer ID. It is filled when the access type is `EXTERNAL` or `CLUSTER`. It’s created automatically by default.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setLoadBalanceId(String LoadBalanceId) {
this.LoadBalanceId = LoadBalanceId;
}
/**
* Get Port mapping
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return PortMappings Port mapping
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public PortMapping [] getPortMappings() {
return this.PortMappings;
}
/**
* Set Port mapping
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param PortMappings Port mapping
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setPortMappings(PortMapping [] PortMappings) {
this.PortMappings = PortMappings;
}
public EksService() {
}
/**
* 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 EksService(EksService source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.Ports != null) {
this.Ports = new Long[source.Ports.length];
for (int i = 0; i < source.Ports.length; i++) {
this.Ports[i] = new Long(source.Ports[i]);
}
}
if (source.Yaml != null) {
this.Yaml = new String(source.Yaml);
}
if (source.ApplicationName != null) {
this.ApplicationName = new String(source.ApplicationName);
}
if (source.VersionName != null) {
this.VersionName = new String(source.VersionName);
}
if (source.ClusterIp != null) {
this.ClusterIp = new String[source.ClusterIp.length];
for (int i = 0; i < source.ClusterIp.length; i++) {
this.ClusterIp[i] = new String(source.ClusterIp[i]);
}
}
if (source.ExternalIp != null) {
this.ExternalIp = new String(source.ExternalIp);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.SubnetId != null) {
this.SubnetId = new String(source.SubnetId);
}
if (source.LoadBalanceId != null) {
this.LoadBalanceId = new String(source.LoadBalanceId);
}
if (source.PortMappings != null) {
this.PortMappings = new PortMapping[source.PortMappings.length];
for (int i = 0; i < source.PortMappings.length; i++) {
this.PortMappings[i] = new PortMapping(source.PortMappings[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamArraySimple(map, prefix + "Ports.", this.Ports);
this.setParamSimple(map, prefix + "Yaml", this.Yaml);
this.setParamSimple(map, prefix + "ApplicationName", this.ApplicationName);
this.setParamSimple(map, prefix + "VersionName", this.VersionName);
this.setParamArraySimple(map, prefix + "ClusterIp.", this.ClusterIp);
this.setParamSimple(map, prefix + "ExternalIp", this.ExternalIp);
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.setParamSimple(map, prefix + "LoadBalanceId", this.LoadBalanceId);
this.setParamArrayObj(map, prefix + "PortMappings.", this.PortMappings);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy