Class RuntimeClass.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.node.v1.RuntimeClass.Builder
-
- Enclosing class:
- RuntimeClass
public static class RuntimeClass.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeClass.Builder
apiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.RuntimeClass
build()
RuntimeClass.Builder
handler(@NonNull java.lang.String handler)
handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class.RuntimeClass.Builder
kind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.RuntimeClass.Builder
metadata(ObjectMeta metadata)
RuntimeClass.Builder
overhead(Overhead overhead)
RuntimeClass.Builder
scheduling(Scheduling scheduling)
java.lang.String
toString()
-
-
-
Method Detail
-
apiVersion
public RuntimeClass.Builder apiVersion(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- Returns:
this
.
-
handler
public RuntimeClass.Builder handler(@NonNull @NonNull java.lang.String handler)
handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.- Returns:
this
.
-
kind
public RuntimeClass.Builder kind(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- Returns:
this
.
-
metadata
public RuntimeClass.Builder metadata(ObjectMeta metadata)
- Returns:
this
.
-
overhead
public RuntimeClass.Builder overhead(Overhead overhead)
- Returns:
this
.
-
scheduling
public RuntimeClass.Builder scheduling(Scheduling scheduling)
- Returns:
this
.
-
build
public RuntimeClass build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-