/* * 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.lightsail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes a domain recordset entry. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DomainEntry implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the domain recordset entry. *
*/ private String id; /** ** The name of the domain. *
*/ private String name; /** *
* The target IP address (e.g., 192.0.2.0
), or AWS name server (e.g.,
* ns-111.awsdns-22.com.
).
*
* For Lightsail load balancers, the value looks like
* ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com
. For Lightsail distributions,
* the value looks like exampled1182ne.cloudfront.net
. For Lightsail container services, the value
* looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com
. Be sure to also set
* isAlias
to true
when setting up an A record for a Lightsail load balancer,
* distribution, or container service.
*
* When true
, specifies whether the domain entry is an alias used by the Lightsail load balancer,
* Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web
* Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a
* load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to
* that resource.
*
* The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail * exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT). *
** The following domain entry types can be used: *
*
* A
*
* AAAA
*
* CNAME
*
* MX
*
* NS
*
* SOA
*
* SRV
*
* TXT
*
* (Deprecated) The options for the domain entry. *
** In releases prior to November 29, 2017, this parameter was not included in the API response. It is now * deprecated. *
** The ID of the domain recordset entry. *
* * @param id * The ID of the domain recordset entry. */ public void setId(String id) { this.id = id; } /** ** The ID of the domain recordset entry. *
* * @return The ID of the domain recordset entry. */ public String getId() { return this.id; } /** ** The ID of the domain recordset entry. *
* * @param id * The ID of the domain recordset entry. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainEntry withId(String id) { setId(id); return this; } /** ** The name of the domain. *
* * @param name * The name of the domain. */ public void setName(String name) { this.name = name; } /** ** The name of the domain. *
* * @return The name of the domain. */ public String getName() { return this.name; } /** ** The name of the domain. *
* * @param name * The name of the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainEntry withName(String name) { setName(name); return this; } /** *
* The target IP address (e.g., 192.0.2.0
), or AWS name server (e.g.,
* ns-111.awsdns-22.com.
).
*
* For Lightsail load balancers, the value looks like
* ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com
. For Lightsail distributions,
* the value looks like exampled1182ne.cloudfront.net
. For Lightsail container services, the value
* looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com
. Be sure to also set
* isAlias
to true
when setting up an A record for a Lightsail load balancer,
* distribution, or container service.
*
192.0.2.0
), or AWS name server (e.g.,
* ns-111.awsdns-22.com.
).
*
* For Lightsail load balancers, the value looks like
* ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com
. For Lightsail
* distributions, the value looks like exampled1182ne.cloudfront.net
. For Lightsail container
* services, the value looks like
* container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com
. Be sure to also set
* isAlias
to true
when setting up an A record for a Lightsail load balancer,
* distribution, or container service.
*/
public void setTarget(String target) {
this.target = target;
}
/**
*
* The target IP address (e.g., 192.0.2.0
), or AWS name server (e.g.,
* ns-111.awsdns-22.com.
).
*
* For Lightsail load balancers, the value looks like
* ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com
. For Lightsail distributions,
* the value looks like exampled1182ne.cloudfront.net
. For Lightsail container services, the value
* looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com
. Be sure to also set
* isAlias
to true
when setting up an A record for a Lightsail load balancer,
* distribution, or container service.
*
192.0.2.0
), or AWS name server (e.g.,
* ns-111.awsdns-22.com.
).
*
* For Lightsail load balancers, the value looks like
* ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com
. For Lightsail
* distributions, the value looks like exampled1182ne.cloudfront.net
. For Lightsail container
* services, the value looks like
* container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com
. Be sure to also set
* isAlias
to true
when setting up an A record for a Lightsail load balancer,
* distribution, or container service.
*/
public String getTarget() {
return this.target;
}
/**
*
* The target IP address (e.g., 192.0.2.0
), or AWS name server (e.g.,
* ns-111.awsdns-22.com.
).
*
* For Lightsail load balancers, the value looks like
* ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com
. For Lightsail distributions,
* the value looks like exampled1182ne.cloudfront.net
. For Lightsail container services, the value
* looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com
. Be sure to also set
* isAlias
to true
when setting up an A record for a Lightsail load balancer,
* distribution, or container service.
*
192.0.2.0
), or AWS name server (e.g.,
* ns-111.awsdns-22.com.
).
*
* For Lightsail load balancers, the value looks like
* ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com
. For Lightsail
* distributions, the value looks like exampled1182ne.cloudfront.net
. For Lightsail container
* services, the value looks like
* container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com
. Be sure to also set
* isAlias
to true
when setting up an A record for a Lightsail load balancer,
* distribution, or container service.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainEntry withTarget(String target) {
setTarget(target);
return this;
}
/**
*
* When true
, specifies whether the domain entry is an alias used by the Lightsail load balancer,
* Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web
* Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a
* load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to
* that resource.
*
true
, specifies whether the domain entry is an alias used by the Lightsail load
* balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another
* Amazon Web Services resource. You can include an alias (A type) record in your request, which points to
* the DNS name of a load balancer, container service, CDN distribution, or other Amazon Web Services
* resource and routes traffic to that resource.
*/
public void setIsAlias(Boolean isAlias) {
this.isAlias = isAlias;
}
/**
*
* When true
, specifies whether the domain entry is an alias used by the Lightsail load balancer,
* Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web
* Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a
* load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to
* that resource.
*
true
, specifies whether the domain entry is an alias used by the Lightsail load
* balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another
* Amazon Web Services resource. You can include an alias (A type) record in your request, which points to
* the DNS name of a load balancer, container service, CDN distribution, or other Amazon Web Services
* resource and routes traffic to that resource.
*/
public Boolean getIsAlias() {
return this.isAlias;
}
/**
*
* When true
, specifies whether the domain entry is an alias used by the Lightsail load balancer,
* Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web
* Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a
* load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to
* that resource.
*
true
, specifies whether the domain entry is an alias used by the Lightsail load
* balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another
* Amazon Web Services resource. You can include an alias (A type) record in your request, which points to
* the DNS name of a load balancer, container service, CDN distribution, or other Amazon Web Services
* resource and routes traffic to that resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainEntry withIsAlias(Boolean isAlias) {
setIsAlias(isAlias);
return this;
}
/**
*
* When true
, specifies whether the domain entry is an alias used by the Lightsail load balancer,
* Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web
* Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a
* load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to
* that resource.
*
true
, specifies whether the domain entry is an alias used by the Lightsail load
* balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another
* Amazon Web Services resource. You can include an alias (A type) record in your request, which points to
* the DNS name of a load balancer, container service, CDN distribution, or other Amazon Web Services
* resource and routes traffic to that resource.
*/
public Boolean isAlias() {
return this.isAlias;
}
/**
* * The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail * exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT). *
** The following domain entry types can be used: *
*
* A
*
* AAAA
*
* CNAME
*
* MX
*
* NS
*
* SOA
*
* SRV
*
* TXT
*
* The following domain entry types can be used: *
*
* A
*
* AAAA
*
* CNAME
*
* MX
*
* NS
*
* SOA
*
* SRV
*
* TXT
*
* The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail * exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT). *
** The following domain entry types can be used: *
*
* A
*
* AAAA
*
* CNAME
*
* MX
*
* NS
*
* SOA
*
* SRV
*
* TXT
*
* The following domain entry types can be used: *
*
* A
*
* AAAA
*
* CNAME
*
* MX
*
* NS
*
* SOA
*
* SRV
*
* TXT
*
* The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail * exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT). *
** The following domain entry types can be used: *
*
* A
*
* AAAA
*
* CNAME
*
* MX
*
* NS
*
* SOA
*
* SRV
*
* TXT
*
* The following domain entry types can be used: *
*
* A
*
* AAAA
*
* CNAME
*
* MX
*
* NS
*
* SOA
*
* SRV
*
* TXT
*
* (Deprecated) The options for the domain entry. *
** In releases prior to November 29, 2017, this parameter was not included in the API response. It is now * deprecated. *
** In releases prior to November 29, 2017, this parameter was not included in the API response. It is now * deprecated. *
*/ @Deprecated public java.util.Map* (Deprecated) The options for the domain entry. *
** In releases prior to November 29, 2017, this parameter was not included in the API response. It is now * deprecated. *
** In releases prior to November 29, 2017, this parameter was not included in the API response. It is now * deprecated. *
*/ @Deprecated public void setOptions(java.util.Map* (Deprecated) The options for the domain entry. *
** In releases prior to November 29, 2017, this parameter was not included in the API response. It is now * deprecated. *
** In releases prior to November 29, 2017, this parameter was not included in the API response. It is now * deprecated. *
* @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public DomainEntry withOptions(java.util.Map