// *** 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.DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigCloudRun;
import com.pulumi.gcp.clouddeploy.outputs.DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigKubernetes;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfig {
    /**
     * @return Cloud Run runtime configuration.
     * 
     */
    private @Nullable DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigCloudRun cloudRun;
    /**
     * @return Kubernetes runtime configuration.
     * 
     */
    private @Nullable DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigKubernetes kubernetes;

    private DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfig() {}
    /**
     * @return Cloud Run runtime configuration.
     * 
     */
    public Optional<DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigCloudRun> cloudRun() {
        return Optional.ofNullable(this.cloudRun);
    }
    /**
     * @return Kubernetes runtime configuration.
     * 
     */
    public Optional<DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigKubernetes> kubernetes() {
        return Optional.ofNullable(this.kubernetes);
    }

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

    public static Builder builder(DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigCloudRun cloudRun;
        private @Nullable DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigKubernetes kubernetes;
        public Builder() {}
        public Builder(DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cloudRun = defaults.cloudRun;
    	      this.kubernetes = defaults.kubernetes;
        }

        @CustomType.Setter
        public Builder cloudRun(@Nullable DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigCloudRun cloudRun) {
            this.cloudRun = cloudRun;
            return this;
        }
        @CustomType.Setter
        public Builder kubernetes(@Nullable DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfigKubernetes kubernetes) {
            this.kubernetes = kubernetes;
            return this;
        }
        public DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfig build() {
            final var o = new DeliveryPipelineSerialPipelineStageStrategyCanaryRuntimeConfig();
            o.cloudRun = cloudRun;
            o.kubernetes = kubernetes;
            return o;
        }
    }
}
