
com.pulumi.aws.datapipeline.outputs.PipelineDefinitionParameterObject 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.datapipeline.outputs;
import com.pulumi.aws.datapipeline.outputs.PipelineDefinitionParameterObjectAttribute;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class PipelineDefinitionParameterObject {
/**
* @return Configuration block for attributes of the parameter object. See below
*
*/
private @Nullable List attributes;
/**
* @return ID of the parameter object.
*
*/
private String id;
private PipelineDefinitionParameterObject() {}
/**
* @return Configuration block for attributes of the parameter object. See below
*
*/
public List attributes() {
return this.attributes == null ? List.of() : this.attributes;
}
/**
* @return ID of the parameter object.
*
*/
public String id() {
return this.id;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PipelineDefinitionParameterObject defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List attributes;
private String id;
public Builder() {}
public Builder(PipelineDefinitionParameterObject defaults) {
Objects.requireNonNull(defaults);
this.attributes = defaults.attributes;
this.id = defaults.id;
}
@CustomType.Setter
public Builder attributes(@Nullable List attributes) {
this.attributes = attributes;
return this;
}
public Builder attributes(PipelineDefinitionParameterObjectAttribute... attributes) {
return attributes(List.of(attributes));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("PipelineDefinitionParameterObject", "id");
}
this.id = id;
return this;
}
public PipelineDefinitionParameterObject build() {
final var _resultValue = new PipelineDefinitionParameterObject();
_resultValue.attributes = attributes;
_resultValue.id = id;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy