Class EndpointSlice.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.discovery.v1beta1.EndpointSlice.Builder
-
- Enclosing class:
- EndpointSlice
public static class EndpointSlice.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointSlice.Builder
addressType(@NonNull java.lang.String addressType)
addressType specifies the type of address carried by this EndpointSlice.EndpointSlice.Builder
addToEndpoints(Endpoint addToEndpoints)
EndpointSlice.Builder
addToPorts(EndpointPort addToPorts)
EndpointSlice.Builder
apiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.EndpointSlice
build()
EndpointSlice.Builder
clearEndpoints()
EndpointSlice.Builder
clearPorts()
EndpointSlice.Builder
endpoints(java.util.Collection<? extends Endpoint> endpoints)
EndpointSlice.Builder
kind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.EndpointSlice.Builder
metadata(ObjectMeta metadata)
EndpointSlice.Builder
ports(java.util.Collection<? extends EndpointPort> ports)
java.lang.String
toString()
-
-
-
Method Detail
-
addressType
public EndpointSlice.Builder addressType(@NonNull @NonNull java.lang.String addressType)
addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.- Returns:
this
.
-
apiVersion
public EndpointSlice.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
.
-
addToEndpoints
public EndpointSlice.Builder addToEndpoints(Endpoint addToEndpoints)
-
endpoints
public EndpointSlice.Builder endpoints(java.util.Collection<? extends Endpoint> endpoints)
-
clearEndpoints
public EndpointSlice.Builder clearEndpoints()
-
kind
public EndpointSlice.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 EndpointSlice.Builder metadata(ObjectMeta metadata)
- Returns:
this
.
-
addToPorts
public EndpointSlice.Builder addToPorts(EndpointPort addToPorts)
-
ports
public EndpointSlice.Builder ports(java.util.Collection<? extends EndpointPort> ports)
-
clearPorts
public EndpointSlice.Builder clearPorts()
-
build
public EndpointSlice build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-