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 Summary

      Constructors 
      Constructor Description
      ServiceReference()  
      ServiceReference​(@NonNull java.lang.String name, @NonNull java.lang.String namespace, java.lang.String path, java.lang.Number port)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ServiceReference.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      @NonNull java.lang.String getName()
      `name` is the name of the service.
      @NonNull java.lang.String getNamespace()
      `namespace` is the namespace of the service.
      java.lang.String getPath()
      `path` is an optional URL path which will be sent in any request to this service.
      java.lang.Number getPort()
      If specified, the port on the service that hosting webhook.
      int hashCode()  
      void setName​(@NonNull java.lang.String name)
      `name` is the name of the service.
      void setNamespace​(@NonNull java.lang.String namespace)
      `namespace` is the namespace of the service.
      void setPath​(java.lang.String path)
      `path` is an optional URL path which will be sent in any request to this service.
      void setPort​(java.lang.Number port)
      If specified, the port on the service that hosting webhook.
      ServiceReference.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ServiceReference

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

        public ServiceReference()
    • Method Detail

      • getName

        @NonNull
        public @NonNull java.lang.String getName()
        `name` is the name of the service. Required
      • getNamespace

        @NonNull
        public @NonNull java.lang.String getNamespace()
        `namespace` is the namespace of the service. Required
      • getPath

        public java.lang.String getPath()
        `path` is an optional URL path which will be sent in any request to this 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​(@NonNull
                            @NonNull java.lang.String name)
        `name` is the name of the service. Required
      • setNamespace

        public void setNamespace​(@NonNull
                                 @NonNull java.lang.String namespace)
        `namespace` is the namespace of the service. Required
      • setPath

        public void setPath​(java.lang.String path)
        `path` is an optional URL path which will be sent in any request to this 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