Class ApiextensionsV1ServiceReference
java.lang.Object
io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class ApiextensionsV1ServiceReference
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 ApiextensionsV1ServiceReference 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 at which the webhook will be contacted.getPort()
port is an optional service port at which the webhook will be contacted.int
hashCode()
void
void
setNamespace
(String namespace) void
void
toJson()
Convert an instance of ApiextensionsV1ServiceReference 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
-
ApiextensionsV1ServiceReference
public ApiextensionsV1ServiceReference()
-
-
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 at which the webhook will be contacted.- Returns:
- path
-
setPath
-
port
-
getPort
port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.- 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 ApiextensionsV1ServiceReference
-
fromJson
Create an instance of ApiextensionsV1ServiceReference given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of ApiextensionsV1ServiceReference
- Throws:
IOException
- if the JSON string is invalid with respect to ApiextensionsV1ServiceReference
-
toJson
Convert an instance of ApiextensionsV1ServiceReference to an JSON string- Returns:
- JSON string
-