Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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;
  

A complex type that contains information about the current resource record set.

  
  public class ResourceRecordSet implements SerializableCloneable {

    
The domain name of the current resource record set.

Constraints:
Length: 0 - 1024

  
      private String name;

    
The type of the current resource record set.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

  
      private String type;

    
Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type.

Constraints:
Length: 1 - 128

  
      private String setIdentifier;

    
Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines what portion of traffic for the current resource record set is routed to the associated location.

Constraints:
Range: 0 - 255

  
      private Long weight;

    
Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

  
      private String region;

    
Geo location resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the geo location for the current resource record set.
  
      private GeoLocation geoLocation;

    
Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

Constraints:
Allowed Values: PRIMARY, SECONDARY

 
     private String failover;

    
The cache time to live for the current resource record set.

Constraints:
Range: 0 - 2147483647

 
     private Long tTL;

    
A complex type that contains the resource records for the current resource record set.

Constraints:
Length: 1 -

 
Alias resource record sets only: Information about the AWS resource to which you are redirecting traffic.
 
     private AliasTarget aliasTarget;

    
Health Check resource record sets only, not required for alias resource record sets: An identifier that is used to identify health check associated with the resource record set.

Constraints:
Length: 0 - 64

 
     private String healthCheckId;

    
Default constructor for a new ResourceRecordSet object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public ResourceRecordSet() {}
    
    
Constructs a new ResourceRecordSet object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
name The domain name of the current resource record set.
type The type of the current resource record set.
 
     public ResourceRecordSet(String nameString type) {
         setName(name);
         setType(type);
     }

    
Constructs a new ResourceRecordSet object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
name The domain name of the current resource record set.
type The type of the current resource record set.
 
     public ResourceRecordSet(String nameRRType type) {
         this. = name;
         this. = type.toString();
     }

    
The domain name of the current resource record set.

Constraints:
Length: 0 - 1024

Returns:
The domain name of the current resource record set.
 
     public String getName() {
         return ;
     }
    
    
The domain name of the current resource record set.

Constraints:
Length: 0 - 1024

Parameters:
name The domain name of the current resource record set.
 
     public void setName(String name) {
         this. = name;
     }
    
    
The domain name of the current resource record set.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1024

Parameters:
name The domain name of the current resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ResourceRecordSet withName(String name) {
         this. = name;
         return this;
     }

    
The type of the current resource record set.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Returns:
The type of the current resource record set.
See also:
RRType
 
     public String getType() {
         return ;
     }
    
    
The type of the current resource record set.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Parameters:
type The type of the current resource record set.
See also:
RRType
 
     public void setType(String type) {
         this. = type;
     }
    
    
The type of the current resource record set.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Parameters:
type The type of the current resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RRType
 
     public ResourceRecordSet withType(String type) {
         this. = type;
         return this;
     }

    
The type of the current resource record set.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Parameters:
type The type of the current resource record set.
See also:
RRType
 
     public void setType(RRType type) {
         this. = type.toString();
     }
    
    
The type of the current resource record set.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Parameters:
type The type of the current resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RRType
 
     public ResourceRecordSet withType(RRType type) {
         this. = type.toString();
         return this;
     }

    
Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type.

Constraints:
Length: 1 - 128

Returns:
Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type.
 
     public String getSetIdentifier() {
         return ;
     }
    
    
Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type.

Constraints:
Length: 1 - 128

Parameters:
setIdentifier Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type.
 
     public void setSetIdentifier(String setIdentifier) {
         this. = setIdentifier;
     }
    
    
Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128

Parameters:
setIdentifier Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ResourceRecordSet withSetIdentifier(String setIdentifier) {
         this. = setIdentifier;
         return this;
     }

    
Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines what portion of traffic for the current resource record set is routed to the associated location.

Constraints:
Range: 0 - 255

Returns:
Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines what portion of traffic for the current resource record set is routed to the associated location.
 
     public Long getWeight() {
         return ;
     }
    
    
Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines what portion of traffic for the current resource record set is routed to the associated location.

Constraints:
Range: 0 - 255

Parameters:
weight Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines what portion of traffic for the current resource record set is routed to the associated location.
 
     public void setWeight(Long weight) {
         this. = weight;
     }
    
    
Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines what portion of traffic for the current resource record set is routed to the associated location.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 0 - 255

Parameters:
weight Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines what portion of traffic for the current resource record set is routed to the associated location.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ResourceRecordSet withWeight(Long weight) {
         this. = weight;
         return this;
     }

    
Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Returns:
Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.
See also:
ResourceRecordSetRegion
 
     public String getRegion() {
         return ;
     }
    
    
Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Parameters:
region Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.
See also:
ResourceRecordSetRegion
 
     public void setRegion(String region) {
         this. = region;
     }
    
    
Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Parameters:
region Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ResourceRecordSetRegion
 
     public ResourceRecordSet withRegion(String region) {
         this. = region;
         return this;
     }

    
Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Parameters:
region Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.
See also:
ResourceRecordSetRegion
 
     public void setRegion(ResourceRecordSetRegion region) {
         this. = region.toString();
     }
    
    
Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Parameters:
region Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ResourceRecordSetRegion
 
         this. = region.toString();
         return this;
     }

    
Geo location resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the geo location for the current resource record set.

Returns:
Geo location resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the geo location for the current resource record set.
 
     public GeoLocation getGeoLocation() {
         return ;
     }
    
    
Geo location resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the geo location for the current resource record set.

Parameters:
geoLocation Geo location resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the geo location for the current resource record set.
 
     public void setGeoLocation(GeoLocation geoLocation) {
         this. = geoLocation;
     }
    
    
Geo location resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the geo location for the current resource record set.

Returns a reference to this object so that method calls can be chained together.

Parameters:
geoLocation Geo location resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the geo location for the current resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ResourceRecordSet withGeoLocation(GeoLocation geoLocation) {
         this. = geoLocation;
         return this;
     }

    
Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

Constraints:
Allowed Values: PRIMARY, SECONDARY

Returns:
Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

See also:
ResourceRecordSetFailover
 
     public String getFailover() {
         return ;
     }
    
    
Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

Constraints:
Allowed Values: PRIMARY, SECONDARY

Parameters:
failover Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

See also:
ResourceRecordSetFailover
 
     public void setFailover(String failover) {
         this. = failover;
     }
    
    
Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PRIMARY, SECONDARY

Parameters:
failover Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ResourceRecordSetFailover
 
     public ResourceRecordSet withFailover(String failover) {
         this. = failover;
         return this;
     }

    
Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

Constraints:
Allowed Values: PRIMARY, SECONDARY

Parameters:
failover Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

See also:
ResourceRecordSetFailover
 
     public void setFailover(ResourceRecordSetFailover failover) {
         this. = failover.toString();
     }
    
    
Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PRIMARY, SECONDARY

Parameters:
failover Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ResourceRecordSetFailover
 
         this. = failover.toString();
         return this;
     }

    
The cache time to live for the current resource record set.

Constraints:
Range: 0 - 2147483647

Returns:
The cache time to live for the current resource record set.
 
     public Long getTTL() {
         return ;
     }
    
    
The cache time to live for the current resource record set.

Constraints:
Range: 0 - 2147483647

Parameters:
tTL The cache time to live for the current resource record set.
 
     public void setTTL(Long tTL) {
         this. = tTL;
     }
    
    
The cache time to live for the current resource record set.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 0 - 2147483647

Parameters:
tTL The cache time to live for the current resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ResourceRecordSet withTTL(Long tTL) {
         this. = tTL;
         return this;
     }

    
A complex type that contains the resource records for the current resource record set.

Constraints:
Length: 1 -

Returns:
A complex type that contains the resource records for the current resource record set.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A complex type that contains the resource records for the current resource record set.

Constraints:
Length: 1 -

Parameters:
resourceRecords A complex type that contains the resource records for the current resource record set.
 
     public void setResourceRecords(java.util.Collection<ResourceRecordresourceRecords) {
         if (resourceRecords == null) {
             this. = null;
             return;
         }
         resourceRecordsCopy.addAll(resourceRecords);
         this. = resourceRecordsCopy;
     }
    
    
A complex type that contains the resource records for the current resource record set.

NOTE: This method appends the values to the existing list (if any). Use setResourceRecords(java.util.Collection) or withResourceRecords(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 -

Parameters:
resourceRecords A complex type that contains the resource records for the current resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ResourceRecordSet withResourceRecords(ResourceRecord... resourceRecords) {
         if (getResourceRecords() == nullsetResourceRecords(new java.util.ArrayList<ResourceRecord>(resourceRecords.length));
         for (ResourceRecord value : resourceRecords) {
             getResourceRecords().add(value);
         }
         return this;
     }
    
    
A complex type that contains the resource records for the current resource record set.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 -

Parameters:
resourceRecords A complex type that contains the resource records for the current resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (resourceRecords == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<ResourceRecordresourceRecordsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<ResourceRecord>(resourceRecords.size());
             resourceRecordsCopy.addAll(resourceRecords);
             this. = resourceRecordsCopy;
         }
 
         return this;
     }

    
Alias resource record sets only: Information about the AWS resource to which you are redirecting traffic.

Returns:
Alias resource record sets only: Information about the AWS resource to which you are redirecting traffic.
 
     public AliasTarget getAliasTarget() {
         return ;
     }
    
    
Alias resource record sets only: Information about the AWS resource to which you are redirecting traffic.

Parameters:
aliasTarget Alias resource record sets only: Information about the AWS resource to which you are redirecting traffic.
 
     public void setAliasTarget(AliasTarget aliasTarget) {
         this. = aliasTarget;
     }
    
    
Alias resource record sets only: Information about the AWS resource to which you are redirecting traffic.

Returns a reference to this object so that method calls can be chained together.

Parameters:
aliasTarget Alias resource record sets only: Information about the AWS resource to which you are redirecting traffic.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ResourceRecordSet withAliasTarget(AliasTarget aliasTarget) {
         this. = aliasTarget;
         return this;
     }

    
Health Check resource record sets only, not required for alias resource record sets: An identifier that is used to identify health check associated with the resource record set.

Constraints:
Length: 0 - 64

Returns:
Health Check resource record sets only, not required for alias resource record sets: An identifier that is used to identify health check associated with the resource record set.
 
     public String getHealthCheckId() {
         return ;
     }
    
    
Health Check resource record sets only, not required for alias resource record sets: An identifier that is used to identify health check associated with the resource record set.

Constraints:
Length: 0 - 64

Parameters:
healthCheckId Health Check resource record sets only, not required for alias resource record sets: An identifier that is used to identify health check associated with the resource record set.
 
     public void setHealthCheckId(String healthCheckId) {
         this. = healthCheckId;
     }
    
    
Health Check resource record sets only, not required for alias resource record sets: An identifier that is used to identify health check associated with the resource record set.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 64

Parameters:
healthCheckId Health Check resource record sets only, not required for alias resource record sets: An identifier that is used to identify health check associated with the resource record set.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ResourceRecordSet withHealthCheckId(String healthCheckId) {
        this. = healthCheckId;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getName() != nullsb.append("Name: " + getName() + ",");
        if (getType() != nullsb.append("Type: " + getType() + ",");
        if (getSetIdentifier() != nullsb.append("SetIdentifier: " + getSetIdentifier() + ",");
        if (getWeight() != nullsb.append("Weight: " + getWeight() + ",");
        if (getRegion() != nullsb.append("Region: " + getRegion() + ",");
        if (getGeoLocation() != nullsb.append("GeoLocation: " + getGeoLocation() + ",");
        if (getFailover() != nullsb.append("Failover: " + getFailover() + ",");
        if (getTTL() != nullsb.append("TTL: " + getTTL() + ",");
        if (getResourceRecords() != nullsb.append("ResourceRecords: " + getResourceRecords() + ",");
        if (getAliasTarget() != nullsb.append("AliasTarget: " + getAliasTarget() + ",");
        if (getHealthCheckId() != nullsb.append("HealthCheckId: " + getHealthCheckId() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); 
        hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); 
        hashCode = prime * hashCode + ((getSetIdentifier() == null) ? 0 : getSetIdentifier().hashCode()); 
        hashCode = prime * hashCode + ((getWeight() == null) ? 0 : getWeight().hashCode()); 
        hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); 
        hashCode = prime * hashCode + ((getGeoLocation() == null) ? 0 : getGeoLocation().hashCode()); 
        hashCode = prime * hashCode + ((getFailover() == null) ? 0 : getFailover().hashCode()); 
        hashCode = prime * hashCode + ((getTTL() == null) ? 0 : getTTL().hashCode()); 
        hashCode = prime * hashCode + ((getResourceRecords() == null) ? 0 : getResourceRecords().hashCode()); 
        hashCode = prime * hashCode + ((getAliasTarget() == null) ? 0 : getAliasTarget().hashCode()); 
        hashCode = prime * hashCode + ((getHealthCheckId() == null) ? 0 : getHealthCheckId().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ResourceRecordSet == falsereturn false;
        ResourceRecordSet other = (ResourceRecordSet)obj;
        
        if (other.getName() == null ^ this.getName() == nullreturn false;
        if (other.getName() != null && other.getName().equals(this.getName()) == falsereturn false
        if (other.getType() == null ^ this.getType() == nullreturn false;
        if (other.getType() != null && other.getType().equals(this.getType()) == falsereturn false
        if (other.getSetIdentifier() == null ^ this.getSetIdentifier() == nullreturn false;
        if (other.getSetIdentifier() != null && other.getSetIdentifier().equals(this.getSetIdentifier()) == falsereturn false
        if (other.getWeight() == null ^ this.getWeight() == nullreturn false;
        if (other.getWeight() != null && other.getWeight().equals(this.getWeight()) == falsereturn false
        if (other.getRegion() == null ^ this.getRegion() == nullreturn false;
        if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == falsereturn false
        if (other.getGeoLocation() == null ^ this.getGeoLocation() == nullreturn false;
        if (other.getGeoLocation() != null && other.getGeoLocation().equals(this.getGeoLocation()) == falsereturn false
        if (other.getFailover() == null ^ this.getFailover() == nullreturn false;
        if (other.getFailover() != null && other.getFailover().equals(this.getFailover()) == falsereturn false
        if (other.getTTL() == null ^ this.getTTL() == nullreturn false;
        if (other.getTTL() != null && other.getTTL().equals(this.getTTL()) == falsereturn false
        if (other.getResourceRecords() == null ^ this.getResourceRecords() == nullreturn false;
        if (other.getResourceRecords() != null && other.getResourceRecords().equals(this.getResourceRecords()) == falsereturn false
        if (other.getAliasTarget() == null ^ this.getAliasTarget() == nullreturn false;
        if (other.getAliasTarget() != null && other.getAliasTarget().equals(this.getAliasTarget()) == falsereturn false
        if (other.getHealthCheckId() == null ^ this.getHealthCheckId() == nullreturn false;
        if (other.getHealthCheckId() != null && other.getHealthCheckId().equals(this.getHealthCheckId()) == falsereturn false
        return true;
    }
    
    @Override
    public ResourceRecordSet clone() {
        try {
            return (ResourceRecordSetsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X