com.pulumi.azure.privatedns.outputs.GetTxtRecordResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.GetTxtRecordRecord;
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;
@CustomType
public final class GetTxtRecordResult {
/**
* @return The FQDN of the Private DNS TXT Record.
*
*/
private String fqdn;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String name;
/**
* @return A list of values that make up the txt 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 GetTxtRecordResult() {}
/**
* @return The FQDN of the Private DNS TXT Record.
*
*/
public String fqdn() {
return this.fqdn;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String name() {
return this.name;
}
/**
* @return A list of values that make up the txt 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(GetTxtRecordResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String fqdn;
private String id;
private String name;
private List records;
private String resourceGroupName;
private Map tags;
private Integer ttl;
private String zoneName;
public Builder() {}
public Builder(GetTxtRecordResult 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("GetTxtRecordResult", "fqdn");
}
this.fqdn = fqdn;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetTxtRecordResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetTxtRecordResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder records(List records) {
if (records == null) {
throw new MissingRequiredPropertyException("GetTxtRecordResult", "records");
}
this.records = records;
return this;
}
public Builder records(GetTxtRecordRecord... records) {
return records(List.of(records));
}
@CustomType.Setter
public Builder resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetTxtRecordResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetTxtRecordResult", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder ttl(Integer ttl) {
if (ttl == null) {
throw new MissingRequiredPropertyException("GetTxtRecordResult", "ttl");
}
this.ttl = ttl;
return this;
}
@CustomType.Setter
public Builder zoneName(String zoneName) {
if (zoneName == null) {
throw new MissingRequiredPropertyException("GetTxtRecordResult", "zoneName");
}
this.zoneName = zoneName;
return this;
}
public GetTxtRecordResult build() {
final var _resultValue = new GetTxtRecordResult();
_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;
}
}
}