Class ServiceSetting
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tsf.v20180326.models.ServiceSetting
-
public class ServiceSetting extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ServiceSetting()ServiceSetting(ServiceSetting source)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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetAccessType()Get 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问 注意:此字段可能返回 null,表示取不到有效值。BooleangetAllowDeleteService()Get 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用 注意:此字段可能返回 null,表示取不到有效值。BooleangetDisableService()Get 是否创建 k8s service,默认为 false 注意:此字段可能返回 null,表示取不到有效值。BooleangetHeadlessService()Get service 是否为 headless 类型 注意:此字段可能返回 null,表示取不到有效值。BooleangetOpenSessionAffinity()Get 开启SessionAffinity,true为开启,false为不开启,默认为false 注意:此字段可能返回 null,表示取不到有效值。ProtocolPort[]getProtocolPorts()Get 容器端口映射 注意:此字段可能返回 null,表示取不到有效值。LonggetSessionAffinityTimeoutSeconds()Get SessionAffinity会话时间,默认10800 注意:此字段可能返回 null,表示取不到有效值。StringgetSubnetId()Get 子网ID 注意:此字段可能返回 null,表示取不到有效值。voidsetAccessType(Long AccessType)Set 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问 注意:此字段可能返回 null,表示取不到有效值。voidsetAllowDeleteService(Boolean AllowDeleteService)Set 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用 注意:此字段可能返回 null,表示取不到有效值。voidsetDisableService(Boolean DisableService)Set 是否创建 k8s service,默认为 false 注意:此字段可能返回 null,表示取不到有效值。voidsetHeadlessService(Boolean HeadlessService)Set service 是否为 headless 类型 注意:此字段可能返回 null,表示取不到有效值。voidsetOpenSessionAffinity(Boolean OpenSessionAffinity)Set 开启SessionAffinity,true为开启,false为不开启,默认为false 注意:此字段可能返回 null,表示取不到有效值。voidsetProtocolPorts(ProtocolPort[] ProtocolPorts)Set 容器端口映射 注意:此字段可能返回 null,表示取不到有效值。voidsetSessionAffinityTimeoutSeconds(Long SessionAffinityTimeoutSeconds)Set SessionAffinity会话时间,默认10800 注意:此字段可能返回 null,表示取不到有效值。voidsetSubnetId(String SubnetId)Set 子网ID 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ServiceSetting
public ServiceSetting()
-
ServiceSetting
public ServiceSetting(ServiceSetting source)
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.
-
-
Method Detail
-
getAccessType
public Long getAccessType()
Get 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- AccessType 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问 注意:此字段可能返回 null,表示取不到有效值。
-
setAccessType
public void setAccessType(Long AccessType)
Set 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
AccessType- 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问 注意:此字段可能返回 null,表示取不到有效值。
-
getProtocolPorts
public ProtocolPort[] getProtocolPorts()
Get 容器端口映射 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- ProtocolPorts 容器端口映射 注意:此字段可能返回 null,表示取不到有效值。
-
setProtocolPorts
public void setProtocolPorts(ProtocolPort[] ProtocolPorts)
Set 容器端口映射 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
ProtocolPorts- 容器端口映射 注意:此字段可能返回 null,表示取不到有效值。
-
getSubnetId
public String getSubnetId()
Get 子网ID 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- SubnetId 子网ID 注意:此字段可能返回 null,表示取不到有效值。
-
setSubnetId
public void setSubnetId(String SubnetId)
Set 子网ID 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
SubnetId- 子网ID 注意:此字段可能返回 null,表示取不到有效值。
-
getDisableService
public Boolean getDisableService()
Get 是否创建 k8s service,默认为 false 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- DisableService 是否创建 k8s service,默认为 false 注意:此字段可能返回 null,表示取不到有效值。
-
setDisableService
public void setDisableService(Boolean DisableService)
Set 是否创建 k8s service,默认为 false 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
DisableService- 是否创建 k8s service,默认为 false 注意:此字段可能返回 null,表示取不到有效值。
-
getHeadlessService
public Boolean getHeadlessService()
Get service 是否为 headless 类型 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- HeadlessService service 是否为 headless 类型 注意:此字段可能返回 null,表示取不到有效值。
-
setHeadlessService
public void setHeadlessService(Boolean HeadlessService)
Set service 是否为 headless 类型 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
HeadlessService- service 是否为 headless 类型 注意:此字段可能返回 null,表示取不到有效值。
-
getAllowDeleteService
public Boolean getAllowDeleteService()
Get 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- AllowDeleteService 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用 注意:此字段可能返回 null,表示取不到有效值。
-
setAllowDeleteService
public void setAllowDeleteService(Boolean AllowDeleteService)
Set 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
AllowDeleteService- 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用 注意:此字段可能返回 null,表示取不到有效值。
-
getOpenSessionAffinity
public Boolean getOpenSessionAffinity()
Get 开启SessionAffinity,true为开启,false为不开启,默认为false 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- OpenSessionAffinity 开启SessionAffinity,true为开启,false为不开启,默认为false 注意:此字段可能返回 null,表示取不到有效值。
-
setOpenSessionAffinity
public void setOpenSessionAffinity(Boolean OpenSessionAffinity)
Set 开启SessionAffinity,true为开启,false为不开启,默认为false 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
OpenSessionAffinity- 开启SessionAffinity,true为开启,false为不开启,默认为false 注意:此字段可能返回 null,表示取不到有效值。
-
getSessionAffinityTimeoutSeconds
public Long getSessionAffinityTimeoutSeconds()
Get SessionAffinity会话时间,默认10800 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- SessionAffinityTimeoutSeconds SessionAffinity会话时间,默认10800 注意:此字段可能返回 null,表示取不到有效值。
-
setSessionAffinityTimeoutSeconds
public void setSessionAffinityTimeoutSeconds(Long SessionAffinityTimeoutSeconds)
Set SessionAffinity会话时间,默认10800 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
SessionAffinityTimeoutSeconds- SessionAffinity会话时间,默认10800 注意:此字段可能返回 null,表示取不到有效值。
-
-