com.pulumi.aws.ecs.inputs.GetTaskExecutionOverridesContainerOverrideEnvironment Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ecs.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetTaskExecutionOverridesContainerOverrideEnvironment extends com.pulumi.resources.InvokeArgs {
public static final GetTaskExecutionOverridesContainerOverrideEnvironment Empty = new GetTaskExecutionOverridesContainerOverrideEnvironment();
/**
* The name of the key-value pair. For environment variables, this is the name of the environment variable.
*
*/
@Import(name="key", required=true)
private String key;
/**
* @return The name of the key-value pair. For environment variables, this is the name of the environment variable.
*
*/
public String key() {
return this.key;
}
/**
* The value of the key-value pair. For environment variables, this is the value of the environment variable.
*
*/
@Import(name="value", required=true)
private String value;
/**
* @return The value of the key-value pair. For environment variables, this is the value of the environment variable.
*
*/
public String value() {
return this.value;
}
private GetTaskExecutionOverridesContainerOverrideEnvironment() {}
private GetTaskExecutionOverridesContainerOverrideEnvironment(GetTaskExecutionOverridesContainerOverrideEnvironment $) {
this.key = $.key;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTaskExecutionOverridesContainerOverrideEnvironment defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetTaskExecutionOverridesContainerOverrideEnvironment $;
public Builder() {
$ = new GetTaskExecutionOverridesContainerOverrideEnvironment();
}
public Builder(GetTaskExecutionOverridesContainerOverrideEnvironment defaults) {
$ = new GetTaskExecutionOverridesContainerOverrideEnvironment(Objects.requireNonNull(defaults));
}
/**
* @param key The name of the key-value pair. For environment variables, this is the name of the environment variable.
*
* @return builder
*
*/
public Builder key(String key) {
$.key = key;
return this;
}
/**
* @param value The value of the key-value pair. For environment variables, this is the value of the environment variable.
*
* @return builder
*
*/
public Builder value(String value) {
$.value = value;
return this;
}
public GetTaskExecutionOverridesContainerOverrideEnvironment build() {
if ($.key == null) {
throw new MissingRequiredPropertyException("GetTaskExecutionOverridesContainerOverrideEnvironment", "key");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("GetTaskExecutionOverridesContainerOverrideEnvironment", "value");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy