Class ServiceReference
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.apiextensions.v1.ServiceReference
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ServiceReferenceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ServiceReference extends Object implements io.fabric8.kubernetes.api.builder.Editable<ServiceReferenceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ServiceReference holds a reference to Service.legacy.k8s.io- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceReference()No args constructor for use in serializationServiceReference(String name, String namespace, String path, Integer port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceReferenceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetName()name is the name of the service.StringgetNamespace()namespace is the namespace of the service.StringgetPath()path is an optional URL path at which the webhook will be contacted.IntegergetPort()port is an optional service port at which the webhook will be contacted.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)name is the name of the service.voidsetNamespace(String namespace)namespace is the namespace of the service.voidsetPath(String path)path is an optional URL path at which the webhook will be contacted.voidsetPort(Integer port)port is an optional service port at which the webhook will be contacted.ServiceReferenceBuildertoBuilder()
-
-
-
Method Detail
-
getName
public String getName()
name is the name of the service. Required
-
setName
public void setName(String name)
name is the name of the service. Required
-
getNamespace
public String getNamespace()
namespace is the namespace of the service. Required
-
setNamespace
public void setNamespace(String namespace)
namespace is the namespace of the service. Required
-
getPath
public String getPath()
path is an optional URL path at which the webhook will be contacted.
-
setPath
public void setPath(String path)
path is an optional URL path at which the webhook will be contacted.
-
getPort
public Integer getPort()
port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.
-
setPort
public void setPort(Integer port)
port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.
-
edit
public ServiceReferenceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ServiceReferenceBuilder>
-
toBuilder
public ServiceReferenceBuilder toBuilder()
-
-