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

com.pulumi.libvirt.outputs.NetworkDnsSrv Maven / Gradle / Ivy

There is a newer version: 0.6.0-alpha.1732600491
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.libvirt.outputs;

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

@CustomType
public final class NetworkDnsSrv {
    /**
     * @return The domain used by the DNS server.
     * 
     */
    private @Nullable String domain;
    private @Nullable String port;
    private @Nullable String priority;
    private @Nullable String protocol;
    private @Nullable String service;
    private @Nullable String target;
    private @Nullable String weight;

    private NetworkDnsSrv() {}
    /**
     * @return The domain used by the DNS server.
     * 
     */
    public Optional domain() {
        return Optional.ofNullable(this.domain);
    }
    public Optional port() {
        return Optional.ofNullable(this.port);
    }
    public Optional priority() {
        return Optional.ofNullable(this.priority);
    }
    public Optional protocol() {
        return Optional.ofNullable(this.protocol);
    }
    public Optional service() {
        return Optional.ofNullable(this.service);
    }
    public Optional target() {
        return Optional.ofNullable(this.target);
    }
    public Optional weight() {
        return Optional.ofNullable(this.weight);
    }

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

    public static Builder builder(NetworkDnsSrv defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String domain;
        private @Nullable String port;
        private @Nullable String priority;
        private @Nullable String protocol;
        private @Nullable String service;
        private @Nullable String target;
        private @Nullable String weight;
        public Builder() {}
        public Builder(NetworkDnsSrv defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.domain = defaults.domain;
    	      this.port = defaults.port;
    	      this.priority = defaults.priority;
    	      this.protocol = defaults.protocol;
    	      this.service = defaults.service;
    	      this.target = defaults.target;
    	      this.weight = defaults.weight;
        }

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

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

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

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

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

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

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

            this.weight = weight;
            return this;
        }
        public NetworkDnsSrv build() {
            final var _resultValue = new NetworkDnsSrv();
            _resultValue.domain = domain;
            _resultValue.port = port;
            _resultValue.priority = priority;
            _resultValue.protocol = protocol;
            _resultValue.service = service;
            _resultValue.target = target;
            _resultValue.weight = weight;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy