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

com.pulumi.azurenative.storagecache.outputs.CacheNetworkSettingsResponse 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.storagecache.outputs;

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

@CustomType
public final class CacheNetworkSettingsResponse {
    /**
     * @return DNS search domain
     * 
     */
    private @Nullable String dnsSearchDomain;
    /**
     * @return DNS servers for the cache to use.  It will be set from the network configuration if no value is provided.
     * 
     */
    private @Nullable List dnsServers;
    /**
     * @return The IPv4 maximum transmission unit configured for the subnet.
     * 
     */
    private @Nullable Integer mtu;
    /**
     * @return NTP server IP Address or FQDN for the cache to use. The default is time.windows.com.
     * 
     */
    private @Nullable String ntpServer;
    /**
     * @return Array of additional IP addresses used by this cache.
     * 
     */
    private List utilityAddresses;

    private CacheNetworkSettingsResponse() {}
    /**
     * @return DNS search domain
     * 
     */
    public Optional dnsSearchDomain() {
        return Optional.ofNullable(this.dnsSearchDomain);
    }
    /**
     * @return DNS servers for the cache to use.  It will be set from the network configuration if no value is provided.
     * 
     */
    public List dnsServers() {
        return this.dnsServers == null ? List.of() : this.dnsServers;
    }
    /**
     * @return The IPv4 maximum transmission unit configured for the subnet.
     * 
     */
    public Optional mtu() {
        return Optional.ofNullable(this.mtu);
    }
    /**
     * @return NTP server IP Address or FQDN for the cache to use. The default is time.windows.com.
     * 
     */
    public Optional ntpServer() {
        return Optional.ofNullable(this.ntpServer);
    }
    /**
     * @return Array of additional IP addresses used by this cache.
     * 
     */
    public List utilityAddresses() {
        return this.utilityAddresses;
    }

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

    public static Builder builder(CacheNetworkSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String dnsSearchDomain;
        private @Nullable List dnsServers;
        private @Nullable Integer mtu;
        private @Nullable String ntpServer;
        private List utilityAddresses;
        public Builder() {}
        public Builder(CacheNetworkSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dnsSearchDomain = defaults.dnsSearchDomain;
    	      this.dnsServers = defaults.dnsServers;
    	      this.mtu = defaults.mtu;
    	      this.ntpServer = defaults.ntpServer;
    	      this.utilityAddresses = defaults.utilityAddresses;
        }

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

            this.dnsSearchDomain = dnsSearchDomain;
            return this;
        }
        @CustomType.Setter
        public Builder dnsServers(@Nullable List dnsServers) {

            this.dnsServers = dnsServers;
            return this;
        }
        public Builder dnsServers(String... dnsServers) {
            return dnsServers(List.of(dnsServers));
        }
        @CustomType.Setter
        public Builder mtu(@Nullable Integer mtu) {

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

            this.ntpServer = ntpServer;
            return this;
        }
        @CustomType.Setter
        public Builder utilityAddresses(List utilityAddresses) {
            if (utilityAddresses == null) {
              throw new MissingRequiredPropertyException("CacheNetworkSettingsResponse", "utilityAddresses");
            }
            this.utilityAddresses = utilityAddresses;
            return this;
        }
        public Builder utilityAddresses(String... utilityAddresses) {
            return utilityAddresses(List.of(utilityAddresses));
        }
        public CacheNetworkSettingsResponse build() {
            final var _resultValue = new CacheNetworkSettingsResponse();
            _resultValue.dnsSearchDomain = dnsSearchDomain;
            _resultValue.dnsServers = dnsServers;
            _resultValue.mtu = mtu;
            _resultValue.ntpServer = ntpServer;
            _resultValue.utilityAddresses = utilityAddresses;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy