// *** 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 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<PipelineDefinitionParameterObjectAttribute> 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<PipelineDefinitionParameterObjectAttribute> 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<PipelineDefinitionParameterObjectAttribute> 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<PipelineDefinitionParameterObjectAttribute> attributes) {
            this.attributes = attributes;
            return this;
        }
        public Builder attributes(PipelineDefinitionParameterObjectAttribute... attributes) {
            return attributes(List.of(attributes));
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        public PipelineDefinitionParameterObject build() {
            final var o = new PipelineDefinitionParameterObject();
            o.attributes = attributes;
            o.id = id;
            return o;
        }
    }
}
