com.pulumi.azure.network.outputs.GetTrafficManagerProfileDnsConfig 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.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetTrafficManagerProfileDnsConfig {
/**
* @return The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below.
*
*/
private String relativeName;
/**
* @return The TTL value of the Profile used by Local DNS resolvers and clients.
*
*/
private Integer ttl;
private GetTrafficManagerProfileDnsConfig() {}
/**
* @return The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below.
*
*/
public String relativeName() {
return this.relativeName;
}
/**
* @return The TTL value of the Profile used by Local DNS resolvers and clients.
*
*/
public Integer ttl() {
return this.ttl;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTrafficManagerProfileDnsConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String relativeName;
private Integer ttl;
public Builder() {}
public Builder(GetTrafficManagerProfileDnsConfig defaults) {
Objects.requireNonNull(defaults);
this.relativeName = defaults.relativeName;
this.ttl = defaults.ttl;
}
@CustomType.Setter
public Builder relativeName(String relativeName) {
if (relativeName == null) {
throw new MissingRequiredPropertyException("GetTrafficManagerProfileDnsConfig", "relativeName");
}
this.relativeName = relativeName;
return this;
}
@CustomType.Setter
public Builder ttl(Integer ttl) {
if (ttl == null) {
throw new MissingRequiredPropertyException("GetTrafficManagerProfileDnsConfig", "ttl");
}
this.ttl = ttl;
return this;
}
public GetTrafficManagerProfileDnsConfig build() {
final var _resultValue = new GetTrafficManagerProfileDnsConfig();
_resultValue.relativeName = relativeName;
_resultValue.ttl = ttl;
return _resultValue;
}
}
}