public final class RecordSet extends Object implements Serializable
A RecordSet
is the unit of data that will be returned by the DNS servers upon a DNS
request for a specific domain. The RecordSet
holds the current state of the DNS records
that make up a zone. You can read the records but you cannot modify them directly. Rather, you
edit the records in a zone by creating a ChangeRequest
.
Modifier and Type | Class and Description |
---|---|
static class |
RecordSet.Builder
A builder for
RecordSet . |
static class |
RecordSet.Type
Enum for the DNS record types supported by Cloud DNS.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns the user-assigned name of this record set.
|
List<String> |
getRecords()
Returns a list of records stored in this record set.
|
Integer |
getTtl()
Returns the number of seconds that this record set can be cached by resolvers.
|
RecordSet.Type |
getType()
Returns the type of this record set.
|
int |
hashCode() |
static RecordSet.Builder |
newBuilder(String name,
RecordSet.Type type)
Creates a
RecordSet builder for the given name and type . |
RecordSet.Builder |
toBuilder()
Creates a builder pre-populated with the attribute values of this instance.
|
String |
toString() |
public RecordSet.Builder toBuilder()
public static RecordSet.Builder newBuilder(String name, RecordSet.Type type)
RecordSet
builder for the given name
and type
.public String getName()
public Integer getTtl()
public RecordSet.Type getType()
Copyright © 2019 Google LLC. All rights reserved.