Record Class SpringCloudPropertySourceImporter.SpringCloudImport
java.lang.Object
java.lang.Record
io.micronaut.discovery.spring.imports.SpringCloudPropertySourceImporter.SpringCloudImport
- Record Components:
connectionString- The parsed import connection string, if availableproperties- The importer child-context propertiesapplicationName- The target application nameprofiles- The target profile listlabel- The optional Config Server labeloptional- Whether the import is optionalretryPolicy- The resolved import retry policy
- Enclosing class:
SpringCloudPropertySourceImporter
public static record SpringCloudPropertySourceImporter.SpringCloudImport(@Nullable io.micronaut.core.util.ConnectionString connectionString, Map<String,Object> properties, String applicationName, String profiles, @Nullable String label, boolean optional, io.micronaut.retry.RetryPolicy retryPolicy)
extends Record
Typed Spring Cloud Config import declaration.
-
Constructor Summary
ConstructorsConstructorDescriptionSpringCloudImport(@Nullable io.micronaut.core.util.ConnectionString connectionString, Map<String, Object> properties, String applicationName, String profiles, @Nullable String label, boolean optional, io.micronaut.retry.RetryPolicy retryPolicy) Creates an instance of aSpringCloudImportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationNamerecord component.@Nullable io.micronaut.core.util.ConnectionStringReturns the value of theconnectionStringrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringlabel()Returns the value of thelabelrecord component.booleanoptional()Returns the value of theoptionalrecord component.profiles()Returns the value of theprofilesrecord component.Returns the value of thepropertiesrecord component.io.micronaut.retry.RetryPolicyReturns the value of theretryPolicyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpringCloudImport
public SpringCloudImport(@Nullable io.micronaut.core.util.ConnectionString connectionString, Map<String, Object> properties, String applicationName, String profiles, @Nullable String label, boolean optional, io.micronaut.retry.RetryPolicy retryPolicy) Creates an instance of aSpringCloudImportrecord class.- Parameters:
connectionString- the value for theconnectionStringrecord componentproperties- the value for thepropertiesrecord componentapplicationName- the value for theapplicationNamerecord componentprofiles- the value for theprofilesrecord componentlabel- the value for thelabelrecord componentoptional- the value for theoptionalrecord componentretryPolicy- the value for theretryPolicyrecord 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. -
connectionString
public @Nullable io.micronaut.core.util.ConnectionString connectionString()Returns the value of theconnectionStringrecord component.- Returns:
- the value of the
connectionStringrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
applicationName
Returns the value of theapplicationNamerecord component.- Returns:
- the value of the
applicationNamerecord component
-
profiles
-
label
-
optional
-
retryPolicy
public io.micronaut.retry.RetryPolicy retryPolicy()Returns the value of theretryPolicyrecord component.- Returns:
- the value of the
retryPolicyrecord component
-