Class ServiceReference

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class ServiceReference
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    ServiceReference holds a reference to Service.legacy.k8s.io
    • Constructor Detail

      • ServiceReference

        public ServiceReference​(java.lang.String name,
                                java.lang.String namespace,
                                java.lang.Number port)
      • ServiceReference

        public ServiceReference()
    • Method Detail

      • getName

        public java.lang.String getName()
        Name is the name of the service
      • getNamespace

        public java.lang.String getNamespace()
        Namespace is the namespace of the service
      • getPort

        public java.lang.Number 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).
      • setName

        public void setName​(java.lang.String name)
        Name is the name of the service
      • setNamespace

        public void setNamespace​(java.lang.String namespace)
        Namespace is the namespace of the service
      • setPort

        public void setPort​(java.lang.Number 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).
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object