com.pulumi.azurenative.network.outputs.DnsConfigResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DnsConfigResponse {
/**
* @return The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager.
*
*/
private String fqdn;
/**
* @return The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile.
*
*/
private @Nullable String relativeName;
/**
* @return The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile.
*
*/
private @Nullable Double ttl;
private DnsConfigResponse() {}
/**
* @return The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager.
*
*/
public String fqdn() {
return this.fqdn;
}
/**
* @return The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile.
*
*/
public Optional relativeName() {
return Optional.ofNullable(this.relativeName);
}
/**
* @return The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile.
*
*/
public Optional ttl() {
return Optional.ofNullable(this.ttl);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DnsConfigResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String fqdn;
private @Nullable String relativeName;
private @Nullable Double ttl;
public Builder() {}
public Builder(DnsConfigResponse defaults) {
Objects.requireNonNull(defaults);
this.fqdn = defaults.fqdn;
this.relativeName = defaults.relativeName;
this.ttl = defaults.ttl;
}
@CustomType.Setter
public Builder fqdn(String fqdn) {
if (fqdn == null) {
throw new MissingRequiredPropertyException("DnsConfigResponse", "fqdn");
}
this.fqdn = fqdn;
return this;
}
@CustomType.Setter
public Builder relativeName(@Nullable String relativeName) {
this.relativeName = relativeName;
return this;
}
@CustomType.Setter
public Builder ttl(@Nullable Double ttl) {
this.ttl = ttl;
return this;
}
public DnsConfigResponse build() {
final var _resultValue = new DnsConfigResponse();
_resultValue.fqdn = fqdn;
_resultValue.relativeName = relativeName;
_resultValue.ttl = ttl;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy