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

com.pulumi.azurenative.cognitiveservices.outputs.MultiRegionSettingsResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.cognitiveservices.outputs.RegionSettingResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MultiRegionSettingsResponse {
    private @Nullable List regions;
    /**
     * @return Multiregion routing methods.
     * 
     */
    private @Nullable String routingMethod;

    private MultiRegionSettingsResponse() {}
    public List regions() {
        return this.regions == null ? List.of() : this.regions;
    }
    /**
     * @return Multiregion routing methods.
     * 
     */
    public Optional routingMethod() {
        return Optional.ofNullable(this.routingMethod);
    }

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

    public static Builder builder(MultiRegionSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List regions;
        private @Nullable String routingMethod;
        public Builder() {}
        public Builder(MultiRegionSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.regions = defaults.regions;
    	      this.routingMethod = defaults.routingMethod;
        }

        @CustomType.Setter
        public Builder regions(@Nullable List regions) {

            this.regions = regions;
            return this;
        }
        public Builder regions(RegionSettingResponse... regions) {
            return regions(List.of(regions));
        }
        @CustomType.Setter
        public Builder routingMethod(@Nullable String routingMethod) {

            this.routingMethod = routingMethod;
            return this;
        }
        public MultiRegionSettingsResponse build() {
            final var _resultValue = new MultiRegionSettingsResponse();
            _resultValue.regions = regions;
            _resultValue.routingMethod = routingMethod;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy