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
ConstructorsConstructorDescriptionExecConfig(@NonNull String apiVersion, @NonNull String command, @Nullable List<String> args, @Nullable List<ExecEnvVar> env) Creates an instance of aExecConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull StringReturns the value of theapiVersionrecord component.args()Returns the value of theargsrecord component.@NonNull Stringcommand()Returns the value of thecommandrecord component.@Nullable List<ExecEnvVar>env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()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 aExecConfigrecord class.- Parameters:
apiVersion- the value for theapiVersionrecord componentcommand- the value for thecommandrecord componentargs- the value for theargsrecord componentenv- the value for theenvrecord 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 theapiVersionrecord component.- Returns:
- the value of the
apiVersionrecord component
-
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-