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

com.pulumi.aws.codedeploy.outputs.DeploymentConfigTrafficRoutingConfigTimeBasedCanary Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** 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.codedeploy.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DeploymentConfigTrafficRoutingConfigTimeBasedCanary {
    /**
     * @return The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` deployment.
     * 
     */
    private @Nullable Integer interval;
    /**
     * @return The percentage of traffic to shift in the first increment of a `TimeBasedCanary` deployment.
     * 
     */
    private @Nullable Integer percentage;

    private DeploymentConfigTrafficRoutingConfigTimeBasedCanary() {}
    /**
     * @return The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` deployment.
     * 
     */
    public Optional interval() {
        return Optional.ofNullable(this.interval);
    }
    /**
     * @return The percentage of traffic to shift in the first increment of a `TimeBasedCanary` deployment.
     * 
     */
    public Optional percentage() {
        return Optional.ofNullable(this.percentage);
    }

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

    public static Builder builder(DeploymentConfigTrafficRoutingConfigTimeBasedCanary defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer interval;
        private @Nullable Integer percentage;
        public Builder() {}
        public Builder(DeploymentConfigTrafficRoutingConfigTimeBasedCanary defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.interval = defaults.interval;
    	      this.percentage = defaults.percentage;
        }

        @CustomType.Setter
        public Builder interval(@Nullable Integer interval) {

            this.interval = interval;
            return this;
        }
        @CustomType.Setter
        public Builder percentage(@Nullable Integer percentage) {

            this.percentage = percentage;
            return this;
        }
        public DeploymentConfigTrafficRoutingConfigTimeBasedCanary build() {
            final var _resultValue = new DeploymentConfigTrafficRoutingConfigTimeBasedCanary();
            _resultValue.interval = interval;
            _resultValue.percentage = percentage;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy