
com.pulumi.aws.ssm.outputs.DocumentParameter 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.ssm.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DocumentParameter {
/**
* @return If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.
*
*/
private @Nullable String defaultValue;
/**
* @return A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.
*
*/
private @Nullable String description;
/**
* @return The name of the document.
*
*/
private @Nullable String name;
/**
* @return The type of parameter. Valid values: `String`, `StringList`.
*
*/
private @Nullable String type;
private DocumentParameter() {}
/**
* @return If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.
*
*/
public Optional defaultValue() {
return Optional.ofNullable(this.defaultValue);
}
/**
* @return A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The name of the document.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The type of parameter. Valid values: `String`, `StringList`.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DocumentParameter defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String defaultValue;
private @Nullable String description;
private @Nullable String name;
private @Nullable String type;
public Builder() {}
public Builder(DocumentParameter defaults) {
Objects.requireNonNull(defaults);
this.defaultValue = defaults.defaultValue;
this.description = defaults.description;
this.name = defaults.name;
this.type = defaults.type;
}
@CustomType.Setter
public Builder defaultValue(@Nullable String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public DocumentParameter build() {
final var _resultValue = new DocumentParameter();
_resultValue.defaultValue = defaultValue;
_resultValue.description = description;
_resultValue.name = name;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy