public class ServiceSetting extends AbstractModel
header, skipSign
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
Long |
getAccessType()
Get 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问
注意:此字段可能返回 null,表示取不到有效值。
|
Boolean |
getAllowDeleteService()
Get 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getClusterIp()
Get k8s负载均衡内网vip
注意:此字段可能返回 null,表示取不到有效值。
|
Boolean |
getDisableService()
Get 是否创建 k8s service,默认为 false
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getDisableServiceInt()
Get 禁用服务Int记录
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getExternalTrafficPolicy()
Get 外部流量策略
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getExternalTrafficStrategy()
Get 外部流量策略
注意:此字段可能返回 null,表示取不到有效值。
|
Boolean |
getHeadlessService()
Get service 是否为 headless 类型
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getHeadlessServiceInt()
Get 开启HeadlessService int记录
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getLoadBalancerId()
Get 负载均衡id
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getLoadBalancerProvisioner()
Get 负载均衡提供者
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getLoadBalancingIp()
Get 负载均衡VIP
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getLoadBalancingType()
Get 负载均衡类型
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getName()
Get 服务名称
注意:此字段可能返回 null,表示取不到有效值。
|
Boolean |
getOpenSessionAffinity()
Get 开启SessionAffinity,true为开启,false为不开启,默认为false
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getOpenSessionAffinityInt()
Get 开启SessionAffinity Int记录
注意:此字段可能返回 null,表示取不到有效值。
|
ProtocolPort[] |
getProtocolPorts()
Get 容器端口映射
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getServiceName()
Get 服务名称
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getSessionAffinityTimeoutSeconds()
Get SessionAffinity会话时间,默认10800
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getSubnetId()
Get 子网ID
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getVpcId()
Get VPC网络ID
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAccessType(Long AccessType)
Set 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAllowDeleteService(Boolean AllowDeleteService)
Set 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setClusterIp(String ClusterIp)
Set k8s负载均衡内网vip
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDisableService(Boolean DisableService)
Set 是否创建 k8s service,默认为 false
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDisableServiceInt(Long DisableServiceInt)
Set 禁用服务Int记录
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setExternalTrafficPolicy(String ExternalTrafficPolicy)
Set 外部流量策略
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setExternalTrafficStrategy(String ExternalTrafficStrategy)
Set 外部流量策略
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setHeadlessService(Boolean HeadlessService)
Set service 是否为 headless 类型
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setHeadlessServiceInt(Long HeadlessServiceInt)
Set 开启HeadlessService int记录
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setLoadBalancerId(String LoadBalancerId)
Set 负载均衡id
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setLoadBalancerProvisioner(String LoadBalancerProvisioner)
Set 负载均衡提供者
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setLoadBalancingIp(String LoadBalancingIp)
Set 负载均衡VIP
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setLoadBalancingType(String LoadBalancingType)
Set 负载均衡类型
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setName(String Name)
Set 服务名称
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setOpenSessionAffinity(Boolean OpenSessionAffinity)
Set 开启SessionAffinity,true为开启,false为不开启,默认为false
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setOpenSessionAffinityInt(Long OpenSessionAffinityInt)
Set 开启SessionAffinity Int记录
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setProtocolPorts(ProtocolPort[] ProtocolPorts)
Set 容器端口映射
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setServiceName(String ServiceName)
Set 服务名称
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setSessionAffinityTimeoutSeconds(Long SessionAffinityTimeoutSeconds)
Set SessionAffinity会话时间,默认10800
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setSubnetId(String SubnetId)
Set 子网ID
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setVpcId(String VpcId)
Set VPC网络ID
注意:此字段可能返回 null,表示取不到有效值。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ServiceSetting()
public ServiceSetting(ServiceSetting source)
public Long getAccessType()
public void setAccessType(Long AccessType)
AccessType
- 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问
注意:此字段可能返回 null,表示取不到有效值。public ProtocolPort[] getProtocolPorts()
public void setProtocolPorts(ProtocolPort[] ProtocolPorts)
ProtocolPorts
- 容器端口映射
注意:此字段可能返回 null,表示取不到有效值。public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- 子网ID
注意:此字段可能返回 null,表示取不到有效值。public Boolean getDisableService()
public void setDisableService(Boolean DisableService)
DisableService
- 是否创建 k8s service,默认为 false
注意:此字段可能返回 null,表示取不到有效值。public Boolean getHeadlessService()
public void setHeadlessService(Boolean HeadlessService)
HeadlessService
- service 是否为 headless 类型
注意:此字段可能返回 null,表示取不到有效值。public Boolean getAllowDeleteService()
public void setAllowDeleteService(Boolean AllowDeleteService)
AllowDeleteService
- 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用
注意:此字段可能返回 null,表示取不到有效值。public Boolean getOpenSessionAffinity()
public void setOpenSessionAffinity(Boolean OpenSessionAffinity)
OpenSessionAffinity
- 开启SessionAffinity,true为开启,false为不开启,默认为false
注意:此字段可能返回 null,表示取不到有效值。public Long getSessionAffinityTimeoutSeconds()
public void setSessionAffinityTimeoutSeconds(Long SessionAffinityTimeoutSeconds)
SessionAffinityTimeoutSeconds
- SessionAffinity会话时间,默认10800
注意:此字段可能返回 null,表示取不到有效值。public String getServiceName()
public void setServiceName(String ServiceName)
ServiceName
- 服务名称
注意:此字段可能返回 null,表示取不到有效值。public String getExternalTrafficStrategy()
public void setExternalTrafficStrategy(String ExternalTrafficStrategy)
ExternalTrafficStrategy
- 外部流量策略
注意:此字段可能返回 null,表示取不到有效值。public String getExternalTrafficPolicy()
public void setExternalTrafficPolicy(String ExternalTrafficPolicy)
ExternalTrafficPolicy
- 外部流量策略
注意:此字段可能返回 null,表示取不到有效值。public String getLoadBalancerProvisioner()
public void setLoadBalancerProvisioner(String LoadBalancerProvisioner)
LoadBalancerProvisioner
- 负载均衡提供者
注意:此字段可能返回 null,表示取不到有效值。public String getLoadBalancingType()
public void setLoadBalancingType(String LoadBalancingType)
LoadBalancingType
- 负载均衡类型
注意:此字段可能返回 null,表示取不到有效值。public String getClusterIp()
public void setClusterIp(String ClusterIp)
ClusterIp
- k8s负载均衡内网vip
注意:此字段可能返回 null,表示取不到有效值。public Long getDisableServiceInt()
public void setDisableServiceInt(Long DisableServiceInt)
DisableServiceInt
- 禁用服务Int记录
注意:此字段可能返回 null,表示取不到有效值。public Long getOpenSessionAffinityInt()
public void setOpenSessionAffinityInt(Long OpenSessionAffinityInt)
OpenSessionAffinityInt
- 开启SessionAffinity Int记录
注意:此字段可能返回 null,表示取不到有效值。public Long getHeadlessServiceInt()
public void setHeadlessServiceInt(Long HeadlessServiceInt)
HeadlessServiceInt
- 开启HeadlessService int记录
注意:此字段可能返回 null,表示取不到有效值。public String getName()
public void setName(String Name)
Name
- 服务名称
注意:此字段可能返回 null,表示取不到有效值。public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC网络ID
注意:此字段可能返回 null,表示取不到有效值。public String getLoadBalancingIp()
public void setLoadBalancingIp(String LoadBalancingIp)
LoadBalancingIp
- 负载均衡VIP
注意:此字段可能返回 null,表示取不到有效值。public String getLoadBalancerId()
public void setLoadBalancerId(String LoadBalancerId)
LoadBalancerId
- 负载均衡id
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.