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

com.pulumi.azurenative.network.outputs.LoadBalancingSettingsModelResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.network.outputs;

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

@CustomType
public final class LoadBalancingSettingsModelResponse {
    /**
     * @return The additional latency in milliseconds for probes to fall into the lowest latency bucket
     * 
     */
    private @Nullable Integer additionalLatencyMilliseconds;
    /**
     * @return Resource ID.
     * 
     */
    private @Nullable String id;
    /**
     * @return Resource name.
     * 
     */
    private @Nullable String name;
    /**
     * @return Resource status.
     * 
     */
    private String resourceState;
    /**
     * @return The number of samples to consider for load balancing decisions
     * 
     */
    private @Nullable Integer sampleSize;
    /**
     * @return The number of samples within the sample period that must succeed
     * 
     */
    private @Nullable Integer successfulSamplesRequired;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private LoadBalancingSettingsModelResponse() {}
    /**
     * @return The additional latency in milliseconds for probes to fall into the lowest latency bucket
     * 
     */
    public Optional additionalLatencyMilliseconds() {
        return Optional.ofNullable(this.additionalLatencyMilliseconds);
    }
    /**
     * @return Resource ID.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Resource name.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Resource status.
     * 
     */
    public String resourceState() {
        return this.resourceState;
    }
    /**
     * @return The number of samples to consider for load balancing decisions
     * 
     */
    public Optional sampleSize() {
        return Optional.ofNullable(this.sampleSize);
    }
    /**
     * @return The number of samples within the sample period that must succeed
     * 
     */
    public Optional successfulSamplesRequired() {
        return Optional.ofNullable(this.successfulSamplesRequired);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(LoadBalancingSettingsModelResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer additionalLatencyMilliseconds;
        private @Nullable String id;
        private @Nullable String name;
        private String resourceState;
        private @Nullable Integer sampleSize;
        private @Nullable Integer successfulSamplesRequired;
        private String type;
        public Builder() {}
        public Builder(LoadBalancingSettingsModelResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalLatencyMilliseconds = defaults.additionalLatencyMilliseconds;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.resourceState = defaults.resourceState;
    	      this.sampleSize = defaults.sampleSize;
    	      this.successfulSamplesRequired = defaults.successfulSamplesRequired;
    	      this.type = defaults.type;
        }

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

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

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

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder resourceState(String resourceState) {
            if (resourceState == null) {
              throw new MissingRequiredPropertyException("LoadBalancingSettingsModelResponse", "resourceState");
            }
            this.resourceState = resourceState;
            return this;
        }
        @CustomType.Setter
        public Builder sampleSize(@Nullable Integer sampleSize) {

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

            this.successfulSamplesRequired = successfulSamplesRequired;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("LoadBalancingSettingsModelResponse", "type");
            }
            this.type = type;
            return this;
        }
        public LoadBalancingSettingsModelResponse build() {
            final var _resultValue = new LoadBalancingSettingsModelResponse();
            _resultValue.additionalLatencyMilliseconds = additionalLatencyMilliseconds;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.resourceState = resourceState;
            _resultValue.sampleSize = sampleSize;
            _resultValue.successfulSamplesRequired = successfulSamplesRequired;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy