Record Class ImportDeclaration
java.lang.Object
java.lang.Record
io.micronaut.kubernetes.client.openapi.configuration.imports.ImportDeclaration
- Record Components:
type- The Kubernetes resource type, eitherconfig-maporsecretname- The resource name to query directlylabels- The label selector used to match resourcespodLabels- Pod label keys used to derive a selector from the current podwatch- Whether property source should be recreated when kubernetes resource gets modifiedexceptionOnPodLabelsMissing- Whether missing pod labels should raise an exceptionterminateStartupOnException- Whether import failures should terminate application startup
public record ImportDeclaration(@NonNull String type, @Nullable String name, @Nullable Map<String,String> labels, @Nullable List<String> podLabels, boolean watch, boolean exceptionOnPodLabelsMissing, boolean terminateStartupOnException)
extends Record
Describes a single Kubernetes config import declaration.
- Since:
- 8.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionImportDeclaration(@NonNull String type, @Nullable String name, @Nullable Map<String, String> labels, @Nullable List<String> podLabels, boolean watch, boolean exceptionOnPodLabelsMissing, boolean terminateStartupOnException) Creates an instance of aImportDeclarationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexceptionOnPodLabelsMissingrecord component.final inthashCode()Returns a hash code value for this object.labels()Returns the value of thelabelsrecord component.@Nullable Stringname()Returns the value of thenamerecord component.Returns the value of thepodLabelsrecord component.booleanReturns the value of theterminateStartupOnExceptionrecord component.final StringtoString()Returns a string representation of this record class.@NonNull Stringtype()Returns the value of thetyperecord component.booleanwatch()Returns the value of thewatchrecord component.
-
Constructor Details
-
ImportDeclaration
public ImportDeclaration(@NonNull String type, @Nullable String name, @Nullable Map<String, String> labels, @Nullable List<String> podLabels, boolean watch, boolean exceptionOnPodLabelsMissing, boolean terminateStartupOnException) Creates an instance of aImportDeclarationrecord class.- Parameters:
type- the value for thetyperecord componentname- the value for thenamerecord componentlabels- the value for thelabelsrecord componentpodLabels- the value for thepodLabelsrecord componentwatch- the value for thewatchrecord componentexceptionOnPodLabelsMissing- the value for theexceptionOnPodLabelsMissingrecord componentterminateStartupOnException- the value for theterminateStartupOnExceptionrecord 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. -
type
-
name
-
labels
-
podLabels
-
watch
-
exceptionOnPodLabelsMissing
public boolean exceptionOnPodLabelsMissing()Returns the value of theexceptionOnPodLabelsMissingrecord component.- Returns:
- the value of the
exceptionOnPodLabelsMissingrecord component
-
terminateStartupOnException
public boolean terminateStartupOnException()Returns the value of theterminateStartupOnExceptionrecord component.- Returns:
- the value of the
terminateStartupOnExceptionrecord component
-