Class PortStatus

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

    public class PortStatus
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PortStatus.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      PortStatus()  
      PortStatus​(java.lang.String error, @NonNull java.lang.Number port, @NonNull java.lang.String protocol)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PortStatus.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getError()
      Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use
      @NonNull java.lang.Number getPort()
      Port is the port number of the service port of which status is recorded here
      @NonNull java.lang.String getProtocol()
      Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"
      int hashCode()  
      void setError​(java.lang.String error)
      Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use
      void setPort​(@NonNull java.lang.Number port)
      Port is the port number of the service port of which status is recorded here
      void setProtocol​(@NonNull java.lang.String protocol)
      Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"
      PortStatus.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • PortStatus

        public PortStatus​(java.lang.String error,
                          @NonNull
                          @NonNull java.lang.Number port,
                          @NonNull
                          @NonNull java.lang.String protocol)
      • PortStatus

        public PortStatus()
    • Method Detail

      • getError

        public java.lang.String getError()
        Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use

        CamelCase names

        - cloud provider specific error values must have names that comply with the

        format foo.example.com/CamelCase.

      • getPort

        @NonNull
        public @NonNull java.lang.Number getPort()
        Port is the port number of the service port of which status is recorded here
      • getProtocol

        @NonNull
        public @NonNull java.lang.String getProtocol()
        Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"
      • setError

        public void setError​(java.lang.String error)
        Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use

        CamelCase names

        - cloud provider specific error values must have names that comply with the

        format foo.example.com/CamelCase.

      • setPort

        public void setPort​(@NonNull
                            @NonNull java.lang.Number port)
        Port is the port number of the service port of which status is recorded here
      • setProtocol

        public void setProtocol​(@NonNull
                                @NonNull java.lang.String protocol)
        Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"
      • 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