com.pulumi.azurenative.communication.outputs.DnsRecordResponse 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.communication.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 DnsRecordResponse {
/**
* @return Name of the DNS record.
*
*/
private String name;
/**
* @return Represents an expiry time in seconds to represent how long this entry can be cached by the resolver, default = 3600sec.
*
*/
private Integer ttl;
/**
* @return Type of the DNS record. Example: TXT
*
*/
private String type;
/**
* @return Value of the DNS record.
*
*/
private String value;
private DnsRecordResponse() {}
/**
* @return Name of the DNS record.
*
*/
public String name() {
return this.name;
}
/**
* @return Represents an expiry time in seconds to represent how long this entry can be cached by the resolver, default = 3600sec.
*
*/
public Integer ttl() {
return this.ttl;
}
/**
* @return Type of the DNS record. Example: TXT
*
*/
public String type() {
return this.type;
}
/**
* @return Value of the DNS record.
*
*/
public String value() {
return this.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DnsRecordResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private Integer ttl;
private String type;
private String value;
public Builder() {}
public Builder(DnsRecordResponse defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.ttl = defaults.ttl;
this.type = defaults.type;
this.value = defaults.value;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("DnsRecordResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder ttl(Integer ttl) {
if (ttl == null) {
throw new MissingRequiredPropertyException("DnsRecordResponse", "ttl");
}
this.ttl = ttl;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("DnsRecordResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(String value) {
if (value == null) {
throw new MissingRequiredPropertyException("DnsRecordResponse", "value");
}
this.value = value;
return this;
}
public DnsRecordResponse build() {
final var _resultValue = new DnsRecordResponse();
_resultValue.name = name;
_resultValue.ttl = ttl;
_resultValue.type = type;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy