com.pulumi.azure.privatedns.outputs.GetSrvRecordResult 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.GetSrvRecordRecord;
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 GetSrvRecordResult {
/**
* @return The FQDN of the Private DNS SRV 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 SRV 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 GetSrvRecordResult() {}
/**
* @return The FQDN of the Private DNS SRV 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 SRV 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(GetSrvRecordResult 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(GetSrvRecordResult 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("GetSrvRecordResult", "fqdn");
}
this.fqdn = fqdn;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSrvRecordResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetSrvRecordResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder records(List records) {
if (records == null) {
throw new MissingRequiredPropertyException("GetSrvRecordResult", "records");
}
this.records = records;
return this;
}
public Builder records(GetSrvRecordRecord... records) {
return records(List.of(records));
}
@CustomType.Setter
public Builder resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetSrvRecordResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetSrvRecordResult", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder ttl(Integer ttl) {
if (ttl == null) {
throw new MissingRequiredPropertyException("GetSrvRecordResult", "ttl");
}
this.ttl = ttl;
return this;
}
@CustomType.Setter
public Builder zoneName(String zoneName) {
if (zoneName == null) {
throw new MissingRequiredPropertyException("GetSrvRecordResult", "zoneName");
}
this.zoneName = zoneName;
return this;
}
public GetSrvRecordResult build() {
final var _resultValue = new GetSrvRecordResult();
_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;
}
}
}