Class PortStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.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 usevoid
setPort(@NonNull java.lang.Number port)
Port is the port number of the service port of which status is recorded herevoid
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()
-
-
-
Method Detail
-
builder
public static PortStatus.Builder builder()
-
toBuilder
public PortStatus.Builder toBuilder()
-
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 useCamelCase 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 useCamelCase 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 classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-