Record Class KubernetesClientConfigContext
java.lang.Object
java.lang.Record
org.springframework.cloud.kubernetes.client.config.KubernetesClientConfigContext
public record KubernetesClientConfigContext(io.kubernetes.client.openapi.apis.CoreV1Api client, org.springframework.cloud.kubernetes.commons.config.NormalizedSource normalizedSource, String namespace, org.springframework.core.env.Environment environment, boolean includeDefaultProfileData, org.springframework.cloud.kubernetes.commons.config.ReadType readType)
extends Record
A context/holder for various data needed to compute property sources.
- Author:
- wind57
-
Constructor Summary
ConstructorsConstructorDescriptionKubernetesClientConfigContext(io.kubernetes.client.openapi.apis.CoreV1Api client, org.springframework.cloud.kubernetes.commons.config.NormalizedSource normalizedSource, String namespace, org.springframework.core.env.Environment environment, boolean includeDefaultProfileData, org.springframework.cloud.kubernetes.commons.config.ReadType readType) Creates an instance of aKubernetesClientConfigContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.kubernetes.client.openapi.apis.CoreV1Apiclient()Returns the value of theclientrecord component.org.springframework.core.env.EnvironmentReturns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeDefaultProfileDatarecord component.Returns the value of thenamespacerecord component.org.springframework.cloud.kubernetes.commons.config.NormalizedSourceReturns the value of thenormalizedSourcerecord component.org.springframework.cloud.kubernetes.commons.config.ReadTypereadType()Returns the value of thereadTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KubernetesClientConfigContext
public KubernetesClientConfigContext(io.kubernetes.client.openapi.apis.CoreV1Api client, org.springframework.cloud.kubernetes.commons.config.NormalizedSource normalizedSource, String namespace, org.springframework.core.env.Environment environment, boolean includeDefaultProfileData, org.springframework.cloud.kubernetes.commons.config.ReadType readType) Creates an instance of aKubernetesClientConfigContextrecord class.- Parameters:
client- the value for theclientrecord componentnormalizedSource- the value for thenormalizedSourcerecord componentnamespace- the value for thenamespacerecord componentenvironment- the value for theenvironmentrecord componentincludeDefaultProfileData- the value for theincludeDefaultProfileDatarecord componentreadType- the value for thereadTyperecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
client
public io.kubernetes.client.openapi.apis.CoreV1Api client()Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
normalizedSource
public org.springframework.cloud.kubernetes.commons.config.NormalizedSource normalizedSource()Returns the value of thenormalizedSourcerecord component.- Returns:
- the value of the
normalizedSourcerecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
environment
public org.springframework.core.env.Environment environment()Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
includeDefaultProfileData
public boolean includeDefaultProfileData()Returns the value of theincludeDefaultProfileDatarecord component.- Returns:
- the value of the
includeDefaultProfileDatarecord component
-
readType
public org.springframework.cloud.kubernetes.commons.config.ReadType readType()Returns the value of thereadTyperecord component.- Returns:
- the value of the
readTyperecord component
-