com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.VariableArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** 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.kubernetes.admissionregistration.v1beta1.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
*
*/
public final class VariableArgs extends com.pulumi.resources.ResourceArgs {
public static final VariableArgs Empty = new VariableArgs();
/**
* Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
*
*/
@Import(name="expression", required=true)
private Output expression;
/**
* @return Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
*
*/
public Output expression() {
return this.expression;
}
/**
* Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
*
*/
public Output name() {
return this.name;
}
private VariableArgs() {}
private VariableArgs(VariableArgs $) {
this.expression = $.expression;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VariableArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private VariableArgs $;
public Builder() {
$ = new VariableArgs();
}
public Builder(VariableArgs defaults) {
$ = new VariableArgs(Objects.requireNonNull(defaults));
}
/**
* @param expression Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
*
* @return builder
*
*/
public Builder expression(Output expression) {
$.expression = expression;
return this;
}
/**
* @param expression Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
*
* @return builder
*
*/
public Builder expression(String expression) {
return expression(Output.of(expression));
}
/**
* @param name Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
public VariableArgs build() {
if ($.expression == null) {
throw new MissingRequiredPropertyException("VariableArgs", "expression");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("VariableArgs", "name");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy