/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.route53.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* A complex type that lists the name servers in a delegation set, as well as the CallerReference
and the
* ID
for the delegation set.
*
* The ID that Amazon Route 53 assigns to a reusable delegation set. *
*/ private String id; /** *
* The value that you specified for CallerReference
when you created the reusable delegation set.
*
* A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. *
*/ private com.amazonaws.internal.SdkInternalList* The ID that Amazon Route 53 assigns to a reusable delegation set. *
* * @param id * The ID that Amazon Route 53 assigns to a reusable delegation set. */ public void setId(String id) { this.id = id; } /** ** The ID that Amazon Route 53 assigns to a reusable delegation set. *
* * @return The ID that Amazon Route 53 assigns to a reusable delegation set. */ public String getId() { return this.id; } /** ** The ID that Amazon Route 53 assigns to a reusable delegation set. *
* * @param id * The ID that Amazon Route 53 assigns to a reusable delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public DelegationSet withId(String id) { setId(id); return this; } /** *
* The value that you specified for CallerReference
when you created the reusable delegation set.
*
CallerReference
when you created the reusable delegation
* set.
*/
public void setCallerReference(String callerReference) {
this.callerReference = callerReference;
}
/**
*
* The value that you specified for CallerReference
when you created the reusable delegation set.
*
CallerReference
when you created the reusable delegation
* set.
*/
public String getCallerReference() {
return this.callerReference;
}
/**
*
* The value that you specified for CallerReference
when you created the reusable delegation set.
*
CallerReference
when you created the reusable delegation
* set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DelegationSet withCallerReference(String callerReference) {
setCallerReference(callerReference);
return this;
}
/**
* * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. *
* * @return A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. */ public java.util.List* A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. *
* * @param nameServers * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. */ public void setNameServers(java.util.Collection* A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNameServers(java.util.Collection)} or {@link #withNameServers(java.util.Collection)} if you want to * override the existing values. *
* * @param nameServers * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public DelegationSet withNameServers(String... nameServers) { if (this.nameServers == null) { setNameServers(new com.amazonaws.internal.SdkInternalList* A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. *
* * @param nameServers * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public DelegationSet withNameServers(java.util.Collection