// *** 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.gcp.clouddeploy.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.clouddeploy.outputs.DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeploymentPhaseConfig;
import java.util.List;
import java.util.Objects;

@CustomType
public final class DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeployment {
    /**
     * @return Required. Configuration for each phase in the canary deployment in the order executed.
     * 
     */
    private List<DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeploymentPhaseConfig> phaseConfigs;

    private DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeployment() {}
    /**
     * @return Required. Configuration for each phase in the canary deployment in the order executed.
     * 
     */
    public List<DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeploymentPhaseConfig> phaseConfigs() {
        return this.phaseConfigs;
    }

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

    public static Builder builder(DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeployment defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeploymentPhaseConfig> phaseConfigs;
        public Builder() {}
        public Builder(DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeployment defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.phaseConfigs = defaults.phaseConfigs;
        }

        @CustomType.Setter
        public Builder phaseConfigs(List<DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeploymentPhaseConfig> phaseConfigs) {
            this.phaseConfigs = Objects.requireNonNull(phaseConfigs);
            return this;
        }
        public Builder phaseConfigs(DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeploymentPhaseConfig... phaseConfigs) {
            return phaseConfigs(List.of(phaseConfigs));
        }
        public DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeployment build() {
            final var o = new DeliveryPipelineSerialPipelineStageStrategyCanaryCustomCanaryDeployment();
            o.phaseConfigs = phaseConfigs;
            return o;
        }
    }
}
