Record Class ServicePortSecureResolver.Input
java.lang.Object
java.lang.Record
org.springframework.cloud.kubernetes.commons.discovery.ServicePortSecureResolver.Input
- Enclosing class:
- ServicePortSecureResolver
public static record ServicePortSecureResolver.Input(ServicePortNameAndNumber portData, String serviceName, Map<String,String> serviceLabels, Map<String,String> serviceAnnotations)
extends Record
- Author:
- wind57
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.portData()Returns the value of theportDatarecord component.Returns the value of theserviceAnnotationsrecord component.Returns the value of theserviceLabelsrecord component.Returns the value of theserviceNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Input
public Input(ServicePortNameAndNumber portData, String serviceName, Map<String, String> serviceLabels, Map<String, String> serviceAnnotations) Creates an instance of aInputrecord class.- Parameters:
portData- the value for theportDatarecord componentserviceName- the value for theserviceNamerecord componentserviceLabels- the value for theserviceLabelsrecord componentserviceAnnotations- the value for theserviceAnnotationsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
portData
Returns the value of theportDatarecord component.- Returns:
- the value of the
portDatarecord component
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
serviceLabels
Returns the value of theserviceLabelsrecord component.- Returns:
- the value of the
serviceLabelsrecord component
-
serviceAnnotations
Returns the value of theserviceAnnotationsrecord component.- Returns:
- the value of the
serviceAnnotationsrecord component
-