Record Class ExecConfig
java.lang.Object
java.lang.Record
io.micronaut.kubernetes.client.openapi.config.model.ExecConfig
- Record Components:
apiVersion
- the preferred input version of the ExecInfocommand
- the command to executeargs
- the arguments to pass to the command when executing itenv
- the additional environment variables to expose to the process
public record ExecConfig(@NonNull String apiVersion, @NonNull String command, @Nullable List<String> args, @Nullable List<ExecEnvVar> env)
extends Record
ExecConfig specifies a command to provide client credentials.
-
Constructor Summary
ConstructorDescriptionExecConfig
(@NonNull String apiVersion, @NonNull String command, @Nullable List<String> args, @Nullable List<ExecEnvVar> env) Creates an instance of aExecConfig
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull String
Returns the value of theapiVersion
record component.args()
Returns the value of theargs
record component.@NonNull String
command()
Returns the value of thecommand
record component.@Nullable List<ExecEnvVar>
env()
Returns the value of theenv
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ExecConfig
public ExecConfig(@NonNull @NonNull String apiVersion, @NonNull @NonNull String command, @Nullable @Nullable List<String> args, @Nullable @Nullable List<ExecEnvVar> env) Creates an instance of aExecConfig
record class.- Parameters:
apiVersion
- the value for theapiVersion
record componentcommand
- the value for thecommand
record componentargs
- the value for theargs
record componentenv
- the value for theenv
record 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)
. -
apiVersion
Returns the value of theapiVersion
record component.- Returns:
- the value of the
apiVersion
record component
-
command
Returns the value of thecommand
record component.- Returns:
- the value of the
command
record component
-
args
Returns the value of theargs
record component.- Returns:
- the value of the
args
record component
-
env
Returns the value of theenv
record component.- Returns:
- the value of the
env
record component
-