/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Name server includes the following elements. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Nameserver implements Serializable, Cloneable, StructuredPojo { /** ** The fully qualified host name of the name server. *
** Constraint: Maximum 255 characters *
*/ private String name; /** ** Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a * subdomain of the domain. For example, if your domain is example.com and the name server for the domain is * ns.example.com, you need to specify the IP address for ns.example.com. *
** Constraints: The list can contain only one IPv4 and one IPv6 address. *
*/ private com.amazonaws.internal.SdkInternalList* The fully qualified host name of the name server. *
** Constraint: Maximum 255 characters *
* * @param name * The fully qualified host name of the name server. ** Constraint: Maximum 255 characters */ public void setName(String name) { this.name = name; } /** *
* The fully qualified host name of the name server. *
** Constraint: Maximum 255 characters *
* * @return The fully qualified host name of the name server. ** Constraint: Maximum 255 characters */ public String getName() { return this.name; } /** *
* The fully qualified host name of the name server. *
** Constraint: Maximum 255 characters *
* * @param name * The fully qualified host name of the name server. ** Constraint: Maximum 255 characters * @return Returns a reference to this object so that method calls can be chained together. */ public Nameserver withName(String name) { setName(name); return this; } /** *
* Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a * subdomain of the domain. For example, if your domain is example.com and the name server for the domain is * ns.example.com, you need to specify the IP address for ns.example.com. *
** Constraints: The list can contain only one IPv4 and one IPv6 address. *
* * @return Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name * server is a subdomain of the domain. For example, if your domain is example.com and the name server for * the domain is ns.example.com, you need to specify the IP address for ns.example.com. *
* Constraints: The list can contain only one IPv4 and one IPv6 address.
*/
public java.util.List
* Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a
* subdomain of the domain. For example, if your domain is example.com and the name server for the domain is
* ns.example.com, you need to specify the IP address for ns.example.com.
*
* Constraints: The list can contain only one IPv4 and one IPv6 address.
*
* Constraints: The list can contain only one IPv4 and one IPv6 address.
*/
public void setGlueIps(java.util.Collection
* Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a
* subdomain of the domain. For example, if your domain is example.com and the name server for the domain is
* ns.example.com, you need to specify the IP address for ns.example.com.
*
* Constraints: The list can contain only one IPv4 and one IPv6 address.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setGlueIps(java.util.Collection)} or {@link #withGlueIps(java.util.Collection)} if you want to override
* the existing values.
*
* Constraints: The list can contain only one IPv4 and one IPv6 address.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Nameserver withGlueIps(String... glueIps) {
if (this.glueIps == null) {
setGlueIps(new com.amazonaws.internal.SdkInternalList
* Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a
* subdomain of the domain. For example, if your domain is example.com and the name server for the domain is
* ns.example.com, you need to specify the IP address for ns.example.com.
*
* Constraints: The list can contain only one IPv4 and one IPv6 address.
*
* Constraints: The list can contain only one IPv4 and one IPv6 address.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Nameserver withGlueIps(java.util.Collection