Class 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 Detail

      • RouteTargetReference

        public RouteTargetReference()
        No args constructor for use in serialization
      • RouteTargetReference

        public RouteTargetReference​(String kind,
                                    String name,
                                    Integer weight)
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)