
com.pulumi.azurenative.videoanalyzer.outputs.ParameterDeclarationResponse 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.azurenative.videoanalyzer.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ParameterDeclarationResponse {
/**
* @return The default value for the parameter to be used if the pipeline does not specify a value.
*
*/
private @Nullable String default_;
/**
* @return Description of the parameter.
*
*/
private @Nullable String description;
/**
* @return Name of the parameter.
*
*/
private String name;
/**
* @return Type of the parameter.
*
*/
private String type;
private ParameterDeclarationResponse() {}
/**
* @return The default value for the parameter to be used if the pipeline does not specify a value.
*
*/
public Optional default_() {
return Optional.ofNullable(this.default_);
}
/**
* @return Description of the parameter.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Name of the parameter.
*
*/
public String name() {
return this.name;
}
/**
* @return Type of the parameter.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ParameterDeclarationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String default_;
private @Nullable String description;
private String name;
private String type;
public Builder() {}
public Builder(ParameterDeclarationResponse defaults) {
Objects.requireNonNull(defaults);
this.default_ = defaults.default_;
this.description = defaults.description;
this.name = defaults.name;
this.type = defaults.type;
}
@CustomType.Setter("default")
public Builder default_(@Nullable String default_) {
this.default_ = default_;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ParameterDeclarationResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ParameterDeclarationResponse", "type");
}
this.type = type;
return this;
}
public ParameterDeclarationResponse build() {
final var _resultValue = new ParameterDeclarationResponse();
_resultValue.default_ = default_;
_resultValue.description = description;
_resultValue.name = name;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy