Class TCPRouteRule
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1alpha2.TCPRouteRule
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<TCPRouteRuleBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TCPRouteRule extends Object implements io.fabric8.kubernetes.api.builder.Editable<TCPRouteRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
TCPRouteRule is the configuration for a given rule.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TCPRouteRule()No args constructor for use in serializationTCPRouteRule(List<BackendRef> backendRefs, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TCPRouteRuleBuilderedit()Map<String,Object>getAdditionalProperties()List<BackendRef>getBackendRefs()BackendRefs defines the backend(s) where matching requests should be sent.StringgetName()Name is the name of the route rule.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetBackendRefs(List<BackendRef> backendRefs)BackendRefs defines the backend(s) where matching requests should be sent.voidsetName(String name)Name is the name of the route rule.TCPRouteRuleBuildertoBuilder()
-
-
-
Constructor Detail
-
TCPRouteRule
public TCPRouteRule()
No args constructor for use in serialization
-
TCPRouteRule
public TCPRouteRule(List<BackendRef> backendRefs, String name)
-
-
Method Detail
-
getBackendRefs
public List<BackendRef> getBackendRefs()
BackendRefs defines the backend(s) where matching requests should be sent. If unspecified or invalid (refers to a non-existent resource or a Service with no endpoints), the underlying implementation MUST actively reject connection attempts to this backend. Connection rejections must respect weight; if an invalid backend is requested to have 80% of connections, then 80% of connections must be rejected instead.Support: Core for Kubernetes Service
Support: Extended for Kubernetes ServiceImport
Support: Implementation-specific for any other resource
Support for weight: Extended
-
setBackendRefs
public void setBackendRefs(List<BackendRef> backendRefs)
BackendRefs defines the backend(s) where matching requests should be sent. If unspecified or invalid (refers to a non-existent resource or a Service with no endpoints), the underlying implementation MUST actively reject connection attempts to this backend. Connection rejections must respect weight; if an invalid backend is requested to have 80% of connections, then 80% of connections must be rejected instead.Support: Core for Kubernetes Service
Support: Extended for Kubernetes ServiceImport
Support: Implementation-specific for any other resource
Support for weight: Extended
-
getName
public String getName()
Name is the name of the route rule. This name MUST be unique within a Route if it is set.Support: Extended
-
setName
public void setName(String name)
Name is the name of the route rule. This name MUST be unique within a Route if it is set.Support: Extended
-
edit
public TCPRouteRuleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<TCPRouteRuleBuilder>
-
toBuilder
public TCPRouteRuleBuilder toBuilder()
-
-