Class V1EndpointSlice
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1EndpointSlice
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1EndpointSlice
extends Object
EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddendpointsItem
(V1Endpoint endpointsItem) Add an item to the endpoints property in a chainable fashion.addportsItem
(DiscoveryV1EndpointPort portsItem) Add an item to the ports property in a chainable fashion.addressType
(String addressType) Set addressType in a chainable fashion.apiVersion
(String apiVersion) Set apiVersion in a chainable fashion.endpoints
(List<@Valid V1Endpoint> endpoints) Set endpoints in a chainable fashion.boolean
addressType specifies the type of address carried by this EndpointSlice.APIVersion defines the versioned schema of this representation of an object.List<@Valid V1Endpoint>
endpoints is a list of unique endpoints in this slice.getKind()
Kind is a string value representing the REST resource this object represents.List<@Valid DiscoveryV1EndpointPort>
getPorts()
ports specifies the list of network ports exposed by each endpoint in this slice.int
hashCode()
Set kind in a chainable fashion.metadata
(V1ObjectMeta metadata) Set metadata in a chainable fashion.ports
(List<@Valid DiscoveryV1EndpointPort> ports) Set ports in a chainable fashion.void
setAddressType
(String addressType) Set the addressType property valuevoid
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
setEndpoints
(List<@Valid V1Endpoint> endpoints) Set the endpoints property valuevoid
Set the kind property valuevoid
setMetadata
(V1ObjectMeta metadata) Set the metadata property valuevoid
setPorts
(List<@Valid DiscoveryV1EndpointPort> ports) Set the ports property valuetoString()
-
Field Details
-
JSON_PROPERTY_ADDRESS_TYPE
- See Also:
-
JSON_PROPERTY_ENDPOINTS
- See Also:
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_PORTS
- See Also:
-
-
Constructor Details
-
V1EndpointSlice
-
-
Method Details
-
getAddressType
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:
- the addressType property value
-
setAddressType
Set the addressType property value- Parameters:
addressType
- property value to set
-
addressType
Set addressType in a chainable fashion.- Returns:
- The same instance of V1EndpointSlice for chaining.
-
getEndpoints
endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.- Returns:
- the endpoints property value
-
setEndpoints
Set the endpoints property value- Parameters:
endpoints
- property value to set
-
endpoints
Set endpoints in a chainable fashion.- Returns:
- The same instance of V1EndpointSlice for chaining.
-
addendpointsItem
Add an item to the endpoints property in a chainable fashion.- Returns:
- The same instance of V1EndpointSlice for chaining.
-
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- Returns:
- the apiVersion property value
-
setApiVersion
Set the apiVersion property value- Parameters:
apiVersion
- property value to set
-
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of V1EndpointSlice for chaining.
-
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- Returns:
- the kind property value
-
setKind
Set the kind property value- Parameters:
kind
- property value to set
-
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1EndpointSlice for chaining.
-
getMetadata
- Returns:
- the metadata property value
-
setMetadata
Set the metadata property value- Parameters:
metadata
- property value to set
-
metadata
Set metadata in a chainable fashion.- Returns:
- The same instance of V1EndpointSlice for chaining.
-
getPorts
ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.- Returns:
- the ports property value
-
setPorts
Set the ports property value- Parameters:
ports
- property value to set
-
ports
Set ports in a chainable fashion.- Returns:
- The same instance of V1EndpointSlice for chaining.
-
addportsItem
Add an item to the ports property in a chainable fashion.- Returns:
- The same instance of V1EndpointSlice for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-