Package com.google.cloud.dns
Class RecordSet
- java.lang.Object
-
- com.google.cloud.dns.RecordSet
-
- All Implemented Interfaces:
Serializable
public final class RecordSet extends Object implements Serializable
A class that represents a Google Cloud DNS record set.A
RecordSet
is the unit of data that will be returned by the DNS servers upon a DNS request for a specific domain. TheRecordSet
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 aChangeRequest
.- See Also:
- Google Cloud DNS documentation, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RecordSet.Builder
A builder forRecordSet
.static class
RecordSet.Type
Enum for the DNS record types supported by Cloud DNS.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 aRecordSet
builder for the givenname
andtype
.RecordSet.Builder
toBuilder()
Creates a builder pre-populated with the attribute values of this instance.String
toString()
-
-
-
Method Detail
-
toBuilder
public RecordSet.Builder toBuilder()
Creates a builder pre-populated with the attribute values of this instance.
-
newBuilder
public static RecordSet.Builder newBuilder(String name, RecordSet.Type type)
Creates aRecordSet
builder for the givenname
andtype
.
-
getName
public String getName()
Returns the user-assigned name of this record set.
-
getTtl
public Integer getTtl()
Returns the number of seconds that this record set can be cached by resolvers.
-
getType
public RecordSet.Type getType()
Returns the type of this record set.
-
-