Class DelegationSet
- java.lang.Object
-
- com.amazonaws.services.route53.model.DelegationSet
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DelegationSet extends Object implements Serializable, Cloneable
A complex type that contains name server information.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DelegationSet()
Default constructor for DelegationSet object.DelegationSet(List<String> nameServers)
Constructs a new DelegationSet object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelegationSet
clone()
boolean
equals(Object obj)
String
getCallerReference()
String
getId()
List<String>
getNameServers()
A complex type that contains the authoritative name servers for the hosted zone.int
hashCode()
void
setCallerReference(String callerReference)
void
setId(String id)
void
setNameServers(Collection<String> nameServers)
A complex type that contains the authoritative name servers for the hosted zone.String
toString()
Returns a string representation of this object; useful for testing and debugging.DelegationSet
withCallerReference(String callerReference)
DelegationSet
withId(String id)
DelegationSet
withNameServers(String... nameServers)
A complex type that contains the authoritative name servers for the hosted zone.DelegationSet
withNameServers(Collection<String> nameServers)
A complex type that contains the authoritative name servers for the hosted zone.
-
-
-
Constructor Detail
-
DelegationSet
public DelegationSet()
Default constructor for DelegationSet object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
DelegationSet
public DelegationSet(List<String> nameServers)
Constructs a new DelegationSet object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
nameServers
- A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for eachNameServer
that is assigned to your hosted zone.
-
-
Method Detail
-
setId
public void setId(String id)
- Parameters:
id
-
-
getId
public String getId()
- Returns:
-
withId
public DelegationSet withId(String id)
- Parameters:
id
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCallerReference
public void setCallerReference(String callerReference)
- Parameters:
callerReference
-
-
getCallerReference
public String getCallerReference()
- Returns:
-
withCallerReference
public DelegationSet withCallerReference(String callerReference)
- Parameters:
callerReference
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getNameServers
public List<String> getNameServers()
A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for each
NameServer
that is assigned to your hosted zone.- Returns:
- A complex type that contains the authoritative name servers for
the hosted zone. Use the method provided by your domain registrar
to add an NS record to your domain for each
NameServer
that is assigned to your hosted zone.
-
setNameServers
public void setNameServers(Collection<String> nameServers)
A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for each
NameServer
that is assigned to your hosted zone.- Parameters:
nameServers
- A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for eachNameServer
that is assigned to your hosted zone.
-
withNameServers
public DelegationSet withNameServers(String... nameServers)
A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for each
NameServer
that is assigned to your hosted zone.NOTE: This method appends the values to the existing list (if any). Use
setNameServers(java.util.Collection)
orwithNameServers(java.util.Collection)
if you want to override the existing values.- Parameters:
nameServers
- A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for eachNameServer
that is assigned to your hosted zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withNameServers
public DelegationSet withNameServers(Collection<String> nameServers)
A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for each
NameServer
that is assigned to your hosted zone.- Parameters:
nameServers
- A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for eachNameServer
that is assigned to your hosted zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DelegationSet clone()
-
-