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

com.pulumi.aws.servicediscovery.outputs.GetServiceDnsConfig 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.aws.servicediscovery.outputs;

import com.pulumi.aws.servicediscovery.outputs.GetServiceDnsConfigDnsRecord;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetServiceDnsConfig {
    /**
     * @return An array that contains one DnsRecord object for each resource record set. See `dns_records` Block for details.
     * 
     */
    private List dnsRecords;
    /**
     * @return ID of the namespace that the service belongs to.
     * 
     */
    private String namespaceId;
    /**
     * @return Routing policy that you want to apply to all records that Route 53 creates when you register an instance and specify the service. Valid Values: MULTIVALUE, WEIGHTED
     * 
     */
    private String routingPolicy;

    private GetServiceDnsConfig() {}
    /**
     * @return An array that contains one DnsRecord object for each resource record set. See `dns_records` Block for details.
     * 
     */
    public List dnsRecords() {
        return this.dnsRecords;
    }
    /**
     * @return ID of the namespace that the service belongs to.
     * 
     */
    public String namespaceId() {
        return this.namespaceId;
    }
    /**
     * @return Routing policy that you want to apply to all records that Route 53 creates when you register an instance and specify the service. Valid Values: MULTIVALUE, WEIGHTED
     * 
     */
    public String routingPolicy() {
        return this.routingPolicy;
    }

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

    public static Builder builder(GetServiceDnsConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List dnsRecords;
        private String namespaceId;
        private String routingPolicy;
        public Builder() {}
        public Builder(GetServiceDnsConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dnsRecords = defaults.dnsRecords;
    	      this.namespaceId = defaults.namespaceId;
    	      this.routingPolicy = defaults.routingPolicy;
        }

        @CustomType.Setter
        public Builder dnsRecords(List dnsRecords) {
            if (dnsRecords == null) {
              throw new MissingRequiredPropertyException("GetServiceDnsConfig", "dnsRecords");
            }
            this.dnsRecords = dnsRecords;
            return this;
        }
        public Builder dnsRecords(GetServiceDnsConfigDnsRecord... dnsRecords) {
            return dnsRecords(List.of(dnsRecords));
        }
        @CustomType.Setter
        public Builder namespaceId(String namespaceId) {
            if (namespaceId == null) {
              throw new MissingRequiredPropertyException("GetServiceDnsConfig", "namespaceId");
            }
            this.namespaceId = namespaceId;
            return this;
        }
        @CustomType.Setter
        public Builder routingPolicy(String routingPolicy) {
            if (routingPolicy == null) {
              throw new MissingRequiredPropertyException("GetServiceDnsConfig", "routingPolicy");
            }
            this.routingPolicy = routingPolicy;
            return this;
        }
        public GetServiceDnsConfig build() {
            final var _resultValue = new GetServiceDnsConfig();
            _resultValue.dnsRecords = dnsRecords;
            _resultValue.namespaceId = namespaceId;
            _resultValue.routingPolicy = routingPolicy;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy