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

com.pulumi.azure.privatedns.outputs.GetMxRecordResult Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.privatedns.outputs;

import com.pulumi.azure.privatedns.outputs.GetMxRecordRecord;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetMxRecordResult {
    /**
     * @return The FQDN of the Private DNS MX Record.
     * 
     */
    private String fqdn;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private @Nullable String name;
    /**
     * @return A list of values that make up the MX record. Each `record` block supports fields documented below.
     * 
     */
    private List records;
    private String resourceGroupName;
    /**
     * @return A mapping of tags assigned to the resource.
     * 
     */
    private Map tags;
    /**
     * @return The Time To Live (TTL) of the Private DNS record in seconds.
     * 
     */
    private Integer ttl;
    private String zoneName;

    private GetMxRecordResult() {}
    /**
     * @return The FQDN of the Private DNS MX Record.
     * 
     */
    public String fqdn() {
        return this.fqdn;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return A list of values that make up the MX record. Each `record` block supports fields documented below.
     * 
     */
    public List records() {
        return this.records;
    }
    public String resourceGroupName() {
        return this.resourceGroupName;
    }
    /**
     * @return A mapping of tags assigned to the resource.
     * 
     */
    public Map tags() {
        return this.tags;
    }
    /**
     * @return The Time To Live (TTL) of the Private DNS record in seconds.
     * 
     */
    public Integer ttl() {
        return this.ttl;
    }
    public String zoneName() {
        return this.zoneName;
    }

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

    public static Builder builder(GetMxRecordResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String fqdn;
        private String id;
        private @Nullable String name;
        private List records;
        private String resourceGroupName;
        private Map tags;
        private Integer ttl;
        private String zoneName;
        public Builder() {}
        public Builder(GetMxRecordResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.fqdn = defaults.fqdn;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.records = defaults.records;
    	      this.resourceGroupName = defaults.resourceGroupName;
    	      this.tags = defaults.tags;
    	      this.ttl = defaults.ttl;
    	      this.zoneName = defaults.zoneName;
        }

        @CustomType.Setter
        public Builder fqdn(String fqdn) {
            if (fqdn == null) {
              throw new MissingRequiredPropertyException("GetMxRecordResult", "fqdn");
            }
            this.fqdn = fqdn;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetMxRecordResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder records(List records) {
            if (records == null) {
              throw new MissingRequiredPropertyException("GetMxRecordResult", "records");
            }
            this.records = records;
            return this;
        }
        public Builder records(GetMxRecordRecord... records) {
            return records(List.of(records));
        }
        @CustomType.Setter
        public Builder resourceGroupName(String resourceGroupName) {
            if (resourceGroupName == null) {
              throw new MissingRequiredPropertyException("GetMxRecordResult", "resourceGroupName");
            }
            this.resourceGroupName = resourceGroupName;
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetMxRecordResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder ttl(Integer ttl) {
            if (ttl == null) {
              throw new MissingRequiredPropertyException("GetMxRecordResult", "ttl");
            }
            this.ttl = ttl;
            return this;
        }
        @CustomType.Setter
        public Builder zoneName(String zoneName) {
            if (zoneName == null) {
              throw new MissingRequiredPropertyException("GetMxRecordResult", "zoneName");
            }
            this.zoneName = zoneName;
            return this;
        }
        public GetMxRecordResult build() {
            final var _resultValue = new GetMxRecordResult();
            _resultValue.fqdn = fqdn;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.records = records;
            _resultValue.resourceGroupName = resourceGroupName;
            _resultValue.tags = tags;
            _resultValue.ttl = ttl;
            _resultValue.zoneName = zoneName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy