Record Class SourceConfigProperties.Source
java.lang.Object
java.lang.Record
org.springframework.cloud.kubernetes.commons.config.SourceConfigProperties.Source
- Record Components:
name- The name of the ConfigMap.namespace- The namespace where the ConfigMap is found.labels- labels of the config map to look for against.explicitPrefix- An explicit prefix to be used for properties.useNameAsPrefix- Use config map name as prefix for properties.includeProfileSpecificSources- Use profile name to append to a config map name.
- Enclosing class:
SourceConfigProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplicitPrefixrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theincludeProfileSpecificSourcesrecord component.labels()Returns the value of thelabelsrecord component.name()Returns the value of thenamerecord component.Returns the value of thenamespacerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuseNameAsPrefixrecord component.
-
Constructor Details
-
Source
public Source(String name, String namespace, @DefaultValue Map<String, String> labels, String explicitPrefix, Boolean useNameAsPrefix, Boolean includeProfileSpecificSources) Creates an instance of aSourcerecord class.- Parameters:
name- the value for thenamerecord componentnamespace- the value for thenamespacerecord componentlabels- the value for thelabelsrecord componentexplicitPrefix- the value for theexplicitPrefixrecord componentuseNameAsPrefix- the value for theuseNameAsPrefixrecord componentincludeProfileSpecificSources- the value for theincludeProfileSpecificSourcesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
namespace
-
labels
-
explicitPrefix
Returns the value of theexplicitPrefixrecord component.- Returns:
- the value of the
explicitPrefixrecord component
-
useNameAsPrefix
Returns the value of theuseNameAsPrefixrecord component.- Returns:
- the value of the
useNameAsPrefixrecord component
-
includeProfileSpecificSources
Returns the value of theincludeProfileSpecificSourcesrecord component.- Returns:
- the value of the
includeProfileSpecificSourcesrecord component
-