software.amazon.awscdk.services.codebuild.BuildEnvironmentVariable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild Show documentation
Show all versions of codebuild Show documentation
CDK Constructs for AWS CodeBuild
package software.amazon.awscdk.services.codebuild;
@javax.annotation.Generated(value = "jsii-pacmak/0.7.11 (build 44c3b9b)", date = "2018-12-04T12:25:05.435Z")
public interface BuildEnvironmentVariable extends software.amazon.jsii.JsiiSerializable {
/**
* The value of the environment variable (or the name of the parameter in
* the SSM parameter store.)
*/
java.lang.Object getValue();
/**
* The value of the environment variable (or the name of the parameter in
* the SSM parameter store.)
*/
void setValue(final java.lang.Object value);
/**
* The type of environment variable.
* @default PlainText
*/
software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType getType();
/**
* The type of environment variable.
* @default PlainText
*/
void setType(final software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType value);
/**
* @return a {@link Builder} of {@link BuildEnvironmentVariable}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link BuildEnvironmentVariable}
*/
final class Builder {
private java.lang.Object _value;
@javax.annotation.Nullable
private software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType _type;
/**
* Sets the value of Value
* @param value The value of the environment variable (or the name of the parameter in
the SSM parameter store.)
* @return {@code this}
*/
public Builder withValue(final java.lang.Object value) {
this._value = java.util.Objects.requireNonNull(value, "value is required");
return this;
}
/**
* Sets the value of Type
* @param value The type of environment variable.
* @return {@code this}
*/
public Builder withType(@javax.annotation.Nullable final software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType value) {
this._type = value;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link BuildEnvironmentVariable}
* @throws NullPointerException if any required attribute was not provided
*/
public BuildEnvironmentVariable build() {
return new BuildEnvironmentVariable() {
private java.lang.Object $value = java.util.Objects.requireNonNull(_value, "value is required");
@javax.annotation.Nullable
private software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType $type = _type;
@Override
public java.lang.Object getValue() {
return this.$value;
}
@Override
public void setValue(final java.lang.Object value) {
this.$value = java.util.Objects.requireNonNull(value, "value is required");
}
@Override
public software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType getType() {
return this.$type;
}
@Override
public void setType(@javax.annotation.Nullable final software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType value) {
this.$type = value;
}
};
}
}
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.codebuild.BuildEnvironmentVariable {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* The value of the environment variable (or the name of the parameter in
* the SSM parameter store.)
*/
@Override
public java.lang.Object getValue() {
return this.jsiiGet("value", java.lang.Object.class);
}
/**
* The value of the environment variable (or the name of the parameter in
* the SSM parameter store.)
*/
@Override
public void setValue(final java.lang.Object value) {
this.jsiiSet("value", java.util.Objects.requireNonNull(value, "value is required"));
}
/**
* The type of environment variable.
* @default PlainText
*/
@Override
@javax.annotation.Nullable
public software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType getType() {
return this.jsiiGet("type", software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType.class);
}
/**
* The type of environment variable.
* @default PlainText
*/
@Override
public void setType(@javax.annotation.Nullable final software.amazon.awscdk.services.codebuild.BuildEnvironmentVariableType value) {
this.jsiiSet("type", value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy