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

com.pulumi.azurenative.web.outputs.RampUpRuleResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show 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.azurenative.web.outputs;

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

@CustomType
public final class RampUpRuleResponse {
    /**
     * @return Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net.
     * 
     */
    private @Nullable String actionHostName;
    /**
     * @return Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts.
     * https://www.siteextensions.net/packages/TiPCallback/
     * 
     */
    private @Nullable String changeDecisionCallbackUrl;
    /**
     * @return Specifies interval in minutes to reevaluate ReroutePercentage.
     * 
     */
    private @Nullable Integer changeIntervalInMinutes;
    /**
     * @return In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches \n<code>MinReroutePercentage</code> or
     * <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>.\nCustom decision algorithm
     * can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>.
     * 
     */
    private @Nullable Double changeStep;
    /**
     * @return Specifies upper boundary below which ReroutePercentage will stay.
     * 
     */
    private @Nullable Double maxReroutePercentage;
    /**
     * @return Specifies lower boundary above which ReroutePercentage will stay.
     * 
     */
    private @Nullable Double minReroutePercentage;
    /**
     * @return Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment.
     * 
     */
    private @Nullable String name;
    /**
     * @return Percentage of the traffic which will be redirected to <code>ActionHostName</code>.
     * 
     */
    private @Nullable Double reroutePercentage;

    private RampUpRuleResponse() {}
    /**
     * @return Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net.
     * 
     */
    public Optional actionHostName() {
        return Optional.ofNullable(this.actionHostName);
    }
    /**
     * @return Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts.
     * https://www.siteextensions.net/packages/TiPCallback/
     * 
     */
    public Optional changeDecisionCallbackUrl() {
        return Optional.ofNullable(this.changeDecisionCallbackUrl);
    }
    /**
     * @return Specifies interval in minutes to reevaluate ReroutePercentage.
     * 
     */
    public Optional changeIntervalInMinutes() {
        return Optional.ofNullable(this.changeIntervalInMinutes);
    }
    /**
     * @return In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches \n<code>MinReroutePercentage</code> or
     * <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>.\nCustom decision algorithm
     * can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>.
     * 
     */
    public Optional changeStep() {
        return Optional.ofNullable(this.changeStep);
    }
    /**
     * @return Specifies upper boundary below which ReroutePercentage will stay.
     * 
     */
    public Optional maxReroutePercentage() {
        return Optional.ofNullable(this.maxReroutePercentage);
    }
    /**
     * @return Specifies lower boundary above which ReroutePercentage will stay.
     * 
     */
    public Optional minReroutePercentage() {
        return Optional.ofNullable(this.minReroutePercentage);
    }
    /**
     * @return Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Percentage of the traffic which will be redirected to <code>ActionHostName</code>.
     * 
     */
    public Optional reroutePercentage() {
        return Optional.ofNullable(this.reroutePercentage);
    }

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

    public static Builder builder(RampUpRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String actionHostName;
        private @Nullable String changeDecisionCallbackUrl;
        private @Nullable Integer changeIntervalInMinutes;
        private @Nullable Double changeStep;
        private @Nullable Double maxReroutePercentage;
        private @Nullable Double minReroutePercentage;
        private @Nullable String name;
        private @Nullable Double reroutePercentage;
        public Builder() {}
        public Builder(RampUpRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actionHostName = defaults.actionHostName;
    	      this.changeDecisionCallbackUrl = defaults.changeDecisionCallbackUrl;
    	      this.changeIntervalInMinutes = defaults.changeIntervalInMinutes;
    	      this.changeStep = defaults.changeStep;
    	      this.maxReroutePercentage = defaults.maxReroutePercentage;
    	      this.minReroutePercentage = defaults.minReroutePercentage;
    	      this.name = defaults.name;
    	      this.reroutePercentage = defaults.reroutePercentage;
        }

        @CustomType.Setter
        public Builder actionHostName(@Nullable String actionHostName) {

            this.actionHostName = actionHostName;
            return this;
        }
        @CustomType.Setter
        public Builder changeDecisionCallbackUrl(@Nullable String changeDecisionCallbackUrl) {

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

            this.changeIntervalInMinutes = changeIntervalInMinutes;
            return this;
        }
        @CustomType.Setter
        public Builder changeStep(@Nullable Double changeStep) {

            this.changeStep = changeStep;
            return this;
        }
        @CustomType.Setter
        public Builder maxReroutePercentage(@Nullable Double maxReroutePercentage) {

            this.maxReroutePercentage = maxReroutePercentage;
            return this;
        }
        @CustomType.Setter
        public Builder minReroutePercentage(@Nullable Double minReroutePercentage) {

            this.minReroutePercentage = minReroutePercentage;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder reroutePercentage(@Nullable Double reroutePercentage) {

            this.reroutePercentage = reroutePercentage;
            return this;
        }
        public RampUpRuleResponse build() {
            final var _resultValue = new RampUpRuleResponse();
            _resultValue.actionHostName = actionHostName;
            _resultValue.changeDecisionCallbackUrl = changeDecisionCallbackUrl;
            _resultValue.changeIntervalInMinutes = changeIntervalInMinutes;
            _resultValue.changeStep = changeStep;
            _resultValue.maxReroutePercentage = maxReroutePercentage;
            _resultValue.minReroutePercentage = minReroutePercentage;
            _resultValue.name = name;
            _resultValue.reroutePercentage = reroutePercentage;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy