Package io.fabric8.openshift.api.model
Class RouteTargetReference
- java.lang.Object
-
- io.fabric8.openshift.api.model.RouteTargetReference
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RouteTargetReferenceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RouteTargetReference extends Object implements io.fabric8.kubernetes.api.builder.Editable<RouteTargetReferenceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RouteTargetReference specifies the target that resolve into endpoints. Only the 'Service' kind is allowed. Use 'weight' field to emphasize one over others.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RouteTargetReference()No args constructor for use in serializationRouteTargetReference(String kind, String name, Integer weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteTargetReferenceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetKind()The kind of target that the route is referring to.StringgetName()name of the service/target that is being referred to. e.g. name of the serviceIntegergetWeight()weight as an integer between 0 and 256, default 100, that specifies the target's relative weight against other target reference objects. 0 suppresses requests to this backend.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetKind(String kind)The kind of target that the route is referring to.voidsetName(String name)name of the service/target that is being referred to. e.g. name of the servicevoidsetWeight(Integer weight)weight as an integer between 0 and 256, default 100, that specifies the target's relative weight against other target reference objects. 0 suppresses requests to this backend.RouteTargetReferenceBuildertoBuilder()
-
-
-
Method Detail
-
getKind
public String getKind()
The kind of target that the route is referring to. Currently, only 'Service' is allowed
-
setKind
public void setKind(String kind)
The kind of target that the route is referring to. Currently, only 'Service' is allowed
-
getName
public String getName()
name of the service/target that is being referred to. e.g. name of the service
-
setName
public void setName(String name)
name of the service/target that is being referred to. e.g. name of the service
-
getWeight
public Integer getWeight()
weight as an integer between 0 and 256, default 100, that specifies the target's relative weight against other target reference objects. 0 suppresses requests to this backend.
-
setWeight
public void setWeight(Integer weight)
weight as an integer between 0 and 256, default 100, that specifies the target's relative weight against other target reference objects. 0 suppresses requests to this backend.
-
edit
public RouteTargetReferenceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RouteTargetReferenceBuilder>
-
toBuilder
public RouteTargetReferenceBuilder toBuilder()
-
-