// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.clouddeploy.inputs.DeliveryPipelineSerialPipelineStageDeployParameterArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeliveryPipelineSerialPipelineStageStrategyArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DeliveryPipelineSerialPipelineStageArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeliveryPipelineSerialPipelineStageArgs Empty = new DeliveryPipelineSerialPipelineStageArgs();

    /**
     * Optional. The deploy parameters to use for the target in this stage.
     * 
     */
    @Import(name="deployParameters")
    private @Nullable Output<List<DeliveryPipelineSerialPipelineStageDeployParameterArgs>> deployParameters;

    /**
     * @return Optional. The deploy parameters to use for the target in this stage.
     * 
     */
    public Optional<Output<List<DeliveryPipelineSerialPipelineStageDeployParameterArgs>>> deployParameters() {
        return Optional.ofNullable(this.deployParameters);
    }

    /**
     * Skaffold profiles to use when rendering the manifest for this stage&#39;s `Target`.
     * 
     */
    @Import(name="profiles")
    private @Nullable Output<List<String>> profiles;

    /**
     * @return Skaffold profiles to use when rendering the manifest for this stage&#39;s `Target`.
     * 
     */
    public Optional<Output<List<String>>> profiles() {
        return Optional.ofNullable(this.profiles);
    }

    /**
     * Optional. The strategy to use for a `Rollout` to this stage.
     * 
     */
    @Import(name="strategy")
    private @Nullable Output<DeliveryPipelineSerialPipelineStageStrategyArgs> strategy;

    /**
     * @return Optional. The strategy to use for a `Rollout` to this stage.
     * 
     */
    public Optional<Output<DeliveryPipelineSerialPipelineStageStrategyArgs>> strategy() {
        return Optional.ofNullable(this.strategy);
    }

    /**
     * The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`). The location of the `Target` is inferred to be the same as the location of the `DeliveryPipeline` that contains this `Stage`.
     * 
     */
    @Import(name="targetId")
    private @Nullable Output<String> targetId;

    /**
     * @return The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`). The location of the `Target` is inferred to be the same as the location of the `DeliveryPipeline` that contains this `Stage`.
     * 
     */
    public Optional<Output<String>> targetId() {
        return Optional.ofNullable(this.targetId);
    }

    private DeliveryPipelineSerialPipelineStageArgs() {}

    private DeliveryPipelineSerialPipelineStageArgs(DeliveryPipelineSerialPipelineStageArgs $) {
        this.deployParameters = $.deployParameters;
        this.profiles = $.profiles;
        this.strategy = $.strategy;
        this.targetId = $.targetId;
    }

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

    public static final class Builder {
        private DeliveryPipelineSerialPipelineStageArgs $;

        public Builder() {
            $ = new DeliveryPipelineSerialPipelineStageArgs();
        }

        public Builder(DeliveryPipelineSerialPipelineStageArgs defaults) {
            $ = new DeliveryPipelineSerialPipelineStageArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param deployParameters Optional. The deploy parameters to use for the target in this stage.
         * 
         * @return builder
         * 
         */
        public Builder deployParameters(@Nullable Output<List<DeliveryPipelineSerialPipelineStageDeployParameterArgs>> deployParameters) {
            $.deployParameters = deployParameters;
            return this;
        }

        /**
         * @param deployParameters Optional. The deploy parameters to use for the target in this stage.
         * 
         * @return builder
         * 
         */
        public Builder deployParameters(List<DeliveryPipelineSerialPipelineStageDeployParameterArgs> deployParameters) {
            return deployParameters(Output.of(deployParameters));
        }

        /**
         * @param deployParameters Optional. The deploy parameters to use for the target in this stage.
         * 
         * @return builder
         * 
         */
        public Builder deployParameters(DeliveryPipelineSerialPipelineStageDeployParameterArgs... deployParameters) {
            return deployParameters(List.of(deployParameters));
        }

        /**
         * @param profiles Skaffold profiles to use when rendering the manifest for this stage&#39;s `Target`.
         * 
         * @return builder
         * 
         */
        public Builder profiles(@Nullable Output<List<String>> profiles) {
            $.profiles = profiles;
            return this;
        }

        /**
         * @param profiles Skaffold profiles to use when rendering the manifest for this stage&#39;s `Target`.
         * 
         * @return builder
         * 
         */
        public Builder profiles(List<String> profiles) {
            return profiles(Output.of(profiles));
        }

        /**
         * @param profiles Skaffold profiles to use when rendering the manifest for this stage&#39;s `Target`.
         * 
         * @return builder
         * 
         */
        public Builder profiles(String... profiles) {
            return profiles(List.of(profiles));
        }

        /**
         * @param strategy Optional. The strategy to use for a `Rollout` to this stage.
         * 
         * @return builder
         * 
         */
        public Builder strategy(@Nullable Output<DeliveryPipelineSerialPipelineStageStrategyArgs> strategy) {
            $.strategy = strategy;
            return this;
        }

        /**
         * @param strategy Optional. The strategy to use for a `Rollout` to this stage.
         * 
         * @return builder
         * 
         */
        public Builder strategy(DeliveryPipelineSerialPipelineStageStrategyArgs strategy) {
            return strategy(Output.of(strategy));
        }

        /**
         * @param targetId The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`). The location of the `Target` is inferred to be the same as the location of the `DeliveryPipeline` that contains this `Stage`.
         * 
         * @return builder
         * 
         */
        public Builder targetId(@Nullable Output<String> targetId) {
            $.targetId = targetId;
            return this;
        }

        /**
         * @param targetId The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`). The location of the `Target` is inferred to be the same as the location of the `DeliveryPipeline` that contains this `Stage`.
         * 
         * @return builder
         * 
         */
        public Builder targetId(String targetId) {
            return targetId(Output.of(targetId));
        }

        public DeliveryPipelineSerialPipelineStageArgs build() {
            return $;
        }
    }

}
