Class Route
- java.lang.Object
-
- com.marcnuri.yakc.model.com.github.openshift.api.route.v1.Route
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class Route extends java.lang.Object implements com.marcnuri.yakc.model.Model
A route allows developers to expose services through an HTTP(S) aware load balancing and proxy layer via a public DNS entry. The route may further specify TLS options and a certificate, or specify a public CNAME that the router should also accept for HTTP and HTTPS traffic. An administrator typically configures their router to be visible outside the cluster firewall, and may also add additional security, caching, or traffic controls on the service content. Routers usually talk directly to the service endpoints.Once a route is created, the `host` field may not be changed. Generally, routers use the oldest route with a given host when resolving conflicts.
Routers are subject to additional customization and may support additional controls via the annotations field.
Because administrators may configure multiple routers, the route status field is used to return information to clients about the names and states of the route under each router. If a client chooses a duplicate name, for instance, the route status conditions are used to indicate the route cannot be chosen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Route.Builder
-
Constructor Summary
Constructors Constructor Description Route()
Route(java.lang.String apiVersion, java.lang.String kind, com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata, @NonNull RouteSpec spec, RouteStatus status)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Route.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getApiVersion()
APIVersion defines the versioned schema of this representation of an object.java.lang.String
getKind()
Kind is a string value representing the REST resource this object represents.com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta
getMetadata()
@NonNull RouteSpec
getSpec()
RouteStatus
getStatus()
int
hashCode()
void
setApiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.void
setKind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.void
setMetadata(com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata)
void
setSpec(@NonNull RouteSpec spec)
void
setStatus(RouteStatus status)
Route.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Route
public Route(java.lang.String apiVersion, java.lang.String kind, com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata, @NonNull @NonNull RouteSpec spec, RouteStatus status)
-
Route
public Route()
-
-
Method Detail
-
builder
public static Route.Builder builder()
-
toBuilder
public Route.Builder toBuilder()
-
getApiVersion
public java.lang.String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
getKind
public java.lang.String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getMetadata
public com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta getMetadata()
-
getSpec
@NonNull public @NonNull RouteSpec getSpec()
-
getStatus
public RouteStatus getStatus()
-
setApiVersion
public void setApiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
setKind
public void setKind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
setMetadata
public void setMetadata(com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata)
-
setSpec
public void setSpec(@NonNull @NonNull RouteSpec spec)
-
setStatus
public void setStatus(RouteStatus status)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-