/* * 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.route53domains.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon * Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain. *
** If successful, this operation returns an operation ID that you can use to track the progress and completion of the * action. If the request is not completed successfully, the domain registrant will be notified by email. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateDomainNameserversRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The name of the domain that you want to change name servers for. *
*/ private String domainName; /** ** The authorization key for .fi domains *
*/ @Deprecated private String fIAuthKey; /** ** A list of new name servers for the domain. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the domain that you want to change name servers for. *
* * @param domainName * The name of the domain that you want to change name servers for. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** ** The name of the domain that you want to change name servers for. *
* * @return The name of the domain that you want to change name servers for. */ public String getDomainName() { return this.domainName; } /** ** The name of the domain that you want to change name servers for. *
* * @param domainName * The name of the domain that you want to change name servers for. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainNameserversRequest withDomainName(String domainName) { setDomainName(domainName); return this; } /** ** The authorization key for .fi domains *
* * @param fIAuthKey * The authorization key for .fi domains */ @Deprecated public void setFIAuthKey(String fIAuthKey) { this.fIAuthKey = fIAuthKey; } /** ** The authorization key for .fi domains *
* * @return The authorization key for .fi domains */ @Deprecated public String getFIAuthKey() { return this.fIAuthKey; } /** ** The authorization key for .fi domains *
* * @param fIAuthKey * The authorization key for .fi domains * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public UpdateDomainNameserversRequest withFIAuthKey(String fIAuthKey) { setFIAuthKey(fIAuthKey); return this; } /** ** A list of new name servers for the domain. *
* * @return A list of new name servers for the domain. */ public java.util.List* A list of new name servers for the domain. *
* * @param nameservers * A list of new name servers for the domain. */ public void setNameservers(java.util.Collection* A list of new name servers for the domain. *
** 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 list of new name servers for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainNameserversRequest withNameservers(Nameserver... nameservers) { if (this.nameservers == null) { setNameservers(new com.amazonaws.internal.SdkInternalList* A list of new name servers for the domain. *
* * @param nameservers * A list of new name servers for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainNameserversRequest withNameservers(java.util.Collection