Class AdmissionregistrationV1ServiceReference
java.lang.Object
io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class AdmissionregistrationV1ServiceReference
extends Object
ServiceReference holds a reference to Service.legacy.k8s.io
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of AdmissionregistrationV1ServiceReference given an JSON stringgetName()
`name` is the name of the service.`namespace` is the namespace of the service.getPath()
`path` is an optional URL path which will be sent in any request to this service.getPort()
If specified, the port on the service that hosting webhook.int
hashCode()
void
void
setNamespace
(String namespace) void
void
toJson()
Convert an instance of AdmissionregistrationV1ServiceReference to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACE
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_PORT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AdmissionregistrationV1ServiceReference
public AdmissionregistrationV1ServiceReference()
-
-
Method Details
-
name
-
getName
`name` is the name of the service. Required- Returns:
- name
-
setName
-
namespace
-
getNamespace
`namespace` is the namespace of the service. Required- Returns:
- namespace
-
setNamespace
-
path
-
getPath
`path` is an optional URL path which will be sent in any request to this service.- Returns:
- path
-
setPath
-
port
-
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).- Returns:
- port
-
setPort
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to AdmissionregistrationV1ServiceReference
-
fromJson
public static AdmissionregistrationV1ServiceReference fromJson(String jsonString) throws IOException Create an instance of AdmissionregistrationV1ServiceReference given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of AdmissionregistrationV1ServiceReference
- Throws:
IOException
- if the JSON string is invalid with respect to AdmissionregistrationV1ServiceReference
-
toJson
Convert an instance of AdmissionregistrationV1ServiceReference to an JSON string- Returns:
- JSON string
-