All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.clouddeploy.v1.outputs.SerialPipelineResponse 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.googlenative.clouddeploy.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.clouddeploy.v1.outputs.StageResponse;
import java.util.List;
import java.util.Objects;

@CustomType
public final class SerialPipelineResponse {
    /**
     * @return Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
     * 
     */
    private List stages;

    private SerialPipelineResponse() {}
    /**
     * @return Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
     * 
     */
    public List stages() {
        return this.stages;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(SerialPipelineResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List stages;
        public Builder() {}
        public Builder(SerialPipelineResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.stages = defaults.stages;
        }

        @CustomType.Setter
        public Builder stages(List stages) {
            this.stages = Objects.requireNonNull(stages);
            return this;
        }
        public Builder stages(StageResponse... stages) {
            return stages(List.of(stages));
        }
        public SerialPipelineResponse build() {
            final var o = new SerialPipelineResponse();
            o.stages = stages;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy