Class ApiregistrationV1ServiceReference
java.lang.Object
io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class ApiregistrationV1ServiceReference
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 ApiregistrationV1ServiceReference given an JSON stringgetName()
Name is the name of the serviceNamespace is the namespace of the servicegetPort()
If specified, the port on the service that hosting webhook.int
hashCode()
void
void
setNamespace
(String namespace) void
toJson()
Convert an instance of ApiregistrationV1ServiceReference to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACE
- See Also:
-
SERIALIZED_NAME_PORT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ApiregistrationV1ServiceReference
public ApiregistrationV1ServiceReference()
-
-
Method Details
-
name
-
getName
Name is the name of the service- Returns:
- name
-
setName
-
namespace
-
getNamespace
Namespace is the namespace of the service- Returns:
- namespace
-
setNamespace
-
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
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to ApiregistrationV1ServiceReference
-
fromJson
Create an instance of ApiregistrationV1ServiceReference given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of ApiregistrationV1ServiceReference
- Throws:
IOException
- if the JSON string is invalid with respect to ApiregistrationV1ServiceReference
-
toJson
Convert an instance of ApiregistrationV1ServiceReference to an JSON string- Returns:
- JSON string
-