Package net.stickycode.kuuty.model.v18
Class IoK8sApiDiscoveryV1beta1EndpointSlice
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiDiscoveryV1beta1EndpointSlice
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiDiscoveryV1beta1EndpointSlice 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
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESS_TYPEstatic StringJSON_PROPERTY_API_VERSIONstatic StringJSON_PROPERTY_ENDPOINTSstatic StringJSON_PROPERTY_KINDstatic StringJSON_PROPERTY_METADATAstatic StringJSON_PROPERTY_PORTS
-
Constructor Summary
Constructors Constructor Description IoK8sApiDiscoveryV1beta1EndpointSlice()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS_TYPE
public static final String JSON_PROPERTY_ADDRESS_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_API_VERSION
public static final String JSON_PROPERTY_API_VERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENDPOINTS
public static final String JSON_PROPERTY_ENDPOINTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_KIND
public static final String JSON_PROPERTY_KIND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_METADATA
public static final String JSON_PROPERTY_METADATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PORTS
public static final String JSON_PROPERTY_PORTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
addressType
public IoK8sApiDiscoveryV1beta1EndpointSlice addressType(String addressType)
-
getAddressType
public String 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:
- addressType
-
setAddressType
public void setAddressType(String addressType)
-
apiVersion
public IoK8sApiDiscoveryV1beta1EndpointSlice apiVersion(String apiVersion)
-
getApiVersion
@Nullable public 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- Returns:
- apiVersion
-
setApiVersion
public void setApiVersion(String apiVersion)
-
endpoints
public IoK8sApiDiscoveryV1beta1EndpointSlice endpoints(List<IoK8sApiDiscoveryV1beta1Endpoint> endpoints)
-
addEndpointsItem
public IoK8sApiDiscoveryV1beta1EndpointSlice addEndpointsItem(IoK8sApiDiscoveryV1beta1Endpoint endpointsItem)
-
getEndpoints
public List<IoK8sApiDiscoveryV1beta1Endpoint> getEndpoints()
endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.- Returns:
- endpoints
-
setEndpoints
public void setEndpoints(List<IoK8sApiDiscoveryV1beta1Endpoint> endpoints)
-
kind
public IoK8sApiDiscoveryV1beta1EndpointSlice kind(String kind)
-
getKind
@Nullable public 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- Returns:
- kind
-
setKind
public void setKind(String kind)
-
metadata
public IoK8sApiDiscoveryV1beta1EndpointSlice metadata(IoK8sApimachineryPkgApisMetaV1ObjectMeta metadata)
-
getMetadata
@Nullable public IoK8sApimachineryPkgApisMetaV1ObjectMeta getMetadata()
Get metadata- Returns:
- metadata
-
setMetadata
public void setMetadata(IoK8sApimachineryPkgApisMetaV1ObjectMeta metadata)
-
ports
public IoK8sApiDiscoveryV1beta1EndpointSlice ports(List<IoK8sApiDiscoveryV1beta1EndpointPort> ports)
-
addPortsItem
public IoK8sApiDiscoveryV1beta1EndpointSlice addPortsItem(IoK8sApiDiscoveryV1beta1EndpointPort portsItem)
-
getPorts
@Nullable public List<IoK8sApiDiscoveryV1beta1EndpointPort> 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:
- ports
-
setPorts
public void setPorts(List<IoK8sApiDiscoveryV1beta1EndpointPort> ports)
-
-