Package io.fabric8.kubernetes.api.model
Class ServiceReference
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ServiceReference
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ServiceReferenceBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ServiceReference extends Object implements io.fabric8.kubernetes.api.builder.Editable<ServiceReferenceBuilder>, 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, 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 serviceStringgetNamespace()Namespace is the namespace of the serviceIntegergetPort()If specified, the port on the service that hosting webhook.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)Name is the name of the servicevoidsetNamespace(String namespace)Namespace is the namespace of the servicevoidsetPort(Integer port)If specified, the port on the service that hosting webhook.ServiceReferenceBuildertoBuilder()
-
-
-
Method Detail
-
getName
public String getName()
Name is the name of the service
-
setName
public void setName(String name)
Name is the name of the service
-
getNamespace
public String getNamespace()
Namespace is the namespace of the service
-
setNamespace
public void setNamespace(String namespace)
Namespace is the namespace of the service
-
getPort
public Integer getPort()
If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
-
setPort
public void setPort(Integer port)
If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
-
edit
public ServiceReferenceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ServiceReferenceBuilder>
-
toBuilder
public ServiceReferenceBuilder toBuilder()
-
-