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

com.pulumi.azurenative.azurearcdata.outputs.ActiveDirectoryConnectorDNSDetailsResponse 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.azurearcdata.outputs;

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

@CustomType
public final class ActiveDirectoryConnectorDNSDetailsResponse {
    /**
     * @return DNS domain name for which DNS lookups should be forwarded to the Active Directory DNS servers.
     * 
     */
    private @Nullable String domainName;
    /**
     * @return List of Active Directory DNS server IP addresses.
     * 
     */
    private List nameserverIPAddresses;
    /**
     * @return Flag indicating whether to prefer Kubernetes DNS server response over AD DNS server response for IP address lookups.
     * 
     */
    private @Nullable Boolean preferK8sDnsForPtrLookups;
    /**
     * @return Replica count for DNS proxy service. Default value is 1.
     * 
     */
    private @Nullable Double replicas;

    private ActiveDirectoryConnectorDNSDetailsResponse() {}
    /**
     * @return DNS domain name for which DNS lookups should be forwarded to the Active Directory DNS servers.
     * 
     */
    public Optional domainName() {
        return Optional.ofNullable(this.domainName);
    }
    /**
     * @return List of Active Directory DNS server IP addresses.
     * 
     */
    public List nameserverIPAddresses() {
        return this.nameserverIPAddresses;
    }
    /**
     * @return Flag indicating whether to prefer Kubernetes DNS server response over AD DNS server response for IP address lookups.
     * 
     */
    public Optional preferK8sDnsForPtrLookups() {
        return Optional.ofNullable(this.preferK8sDnsForPtrLookups);
    }
    /**
     * @return Replica count for DNS proxy service. Default value is 1.
     * 
     */
    public Optional replicas() {
        return Optional.ofNullable(this.replicas);
    }

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

    public static Builder builder(ActiveDirectoryConnectorDNSDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String domainName;
        private List nameserverIPAddresses;
        private @Nullable Boolean preferK8sDnsForPtrLookups;
        private @Nullable Double replicas;
        public Builder() {}
        public Builder(ActiveDirectoryConnectorDNSDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.domainName = defaults.domainName;
    	      this.nameserverIPAddresses = defaults.nameserverIPAddresses;
    	      this.preferK8sDnsForPtrLookups = defaults.preferK8sDnsForPtrLookups;
    	      this.replicas = defaults.replicas;
        }

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

            this.domainName = domainName;
            return this;
        }
        @CustomType.Setter
        public Builder nameserverIPAddresses(List nameserverIPAddresses) {
            if (nameserverIPAddresses == null) {
              throw new MissingRequiredPropertyException("ActiveDirectoryConnectorDNSDetailsResponse", "nameserverIPAddresses");
            }
            this.nameserverIPAddresses = nameserverIPAddresses;
            return this;
        }
        public Builder nameserverIPAddresses(String... nameserverIPAddresses) {
            return nameserverIPAddresses(List.of(nameserverIPAddresses));
        }
        @CustomType.Setter
        public Builder preferK8sDnsForPtrLookups(@Nullable Boolean preferK8sDnsForPtrLookups) {

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

            this.replicas = replicas;
            return this;
        }
        public ActiveDirectoryConnectorDNSDetailsResponse build() {
            final var _resultValue = new ActiveDirectoryConnectorDNSDetailsResponse();
            _resultValue.domainName = domainName;
            _resultValue.nameserverIPAddresses = nameserverIPAddresses;
            _resultValue.preferK8sDnsForPtrLookups = preferK8sDnsForPtrLookups;
            _resultValue.replicas = replicas;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy