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;
 
 
Container for the parameters to the ChangeResourceRecordSets operation.

Use this action to create or change your authoritative DNS information. To use this action, send a POST request to the 2013-04-01/hostedzone/hosted Zone ID/rrset resource. The request body must include an XML document with a ChangeResourceRecordSetsRequest element.

Changes are a list of change items and are considered transactional. For more information on transactional changes, also known as change batches, see Creating, Changing, and Deleting Resource Record Sets Using the Route 53 API in the Amazon Route 53 Developer Guide .

IMPORTANT:Due to the nature of transactional changes, you cannot delete the same resource record set more than once in a single change batch. If you attempt to delete the same change batch more than once, Route 53 returns an InvalidChangeBatch error.

In response to a ChangeResourceRecordSets request, your DNS data is changed on all Route 53 DNS servers. Initially, the status of a change is PENDING . This means the change has not yet propagated to all the authoritative Route 53 DNS servers. When the change is propagated to all hosts, the change returns a status of INSYNC .

Note the following limitations on a ChangeResourceRecordSets request:

- A request cannot contain more than 100 Change elements.

- A request cannot contain more than 1000 ResourceRecord elements.

The sum of the number of characters (including spaces) in all Value elements in a request cannot exceed 32,000 characters.

 
 public class ChangeResourceRecordSetsRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The ID of the hosted zone that contains the resource record sets that you want to change.

Constraints:
Length: 0 - 32

 
     private String hostedZoneId;

    
A complex type that contains an optional comment and the Changes element.
 
     private ChangeBatch changeBatch;

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

Parameters:
hostedZoneId The ID of the hosted zone that contains the resource record sets that you want to change.
changeBatch A complex type that contains an optional comment and the Changes element.
    public ChangeResourceRecordSetsRequest(String hostedZoneIdChangeBatch changeBatch) {
        setHostedZoneId(hostedZoneId);
        setChangeBatch(changeBatch);
    }

    
The ID of the hosted zone that contains the resource record sets that you want to change.

Constraints:
Length: 0 - 32

Returns:
The ID of the hosted zone that contains the resource record sets that you want to change.
    public String getHostedZoneId() {
        return ;
    }
    
    
The ID of the hosted zone that contains the resource record sets that you want to change.

Constraints:
Length: 0 - 32

Parameters:
hostedZoneId The ID of the hosted zone that contains the resource record sets that you want to change.
    public void setHostedZoneId(String hostedZoneId) {
        this. = hostedZoneId;
    }
    
    
The ID of the hosted zone that contains the resource record sets that you want to change.

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

Constraints:
Length: 0 - 32

Parameters:
hostedZoneId The ID of the hosted zone that contains the resource record sets that you want to change.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = hostedZoneId;
        return this;
    }

    
A complex type that contains an optional comment and the Changes element.

Returns:
A complex type that contains an optional comment and the Changes element.
    public ChangeBatch getChangeBatch() {
        return ;
    }
    
    
A complex type that contains an optional comment and the Changes element.

Parameters:
changeBatch A complex type that contains an optional comment and the Changes element.
    public void setChangeBatch(ChangeBatch changeBatch) {
        this. = changeBatch;
    }
    
    
A complex type that contains an optional comment and the Changes element.

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

Parameters:
changeBatch A complex type that contains an optional comment and the Changes element.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = changeBatch;
        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 (getHostedZoneId() != nullsb.append("HostedZoneId: " + getHostedZoneId() + ",");
        if (getChangeBatch() != nullsb.append("ChangeBatch: " + getChangeBatch() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); 
        hashCode = prime * hashCode + ((getChangeBatch() == null) ? 0 : getChangeBatch().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ChangeResourceRecordSetsRequest == falsereturn false;
        
        if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == nullreturn false;
        if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == falsereturn false
        if (other.getChangeBatch() == null ^ this.getChangeBatch() == nullreturn false;
        if (other.getChangeBatch() != null && other.getChangeBatch().equals(this.getChangeBatch()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (ChangeResourceRecordSetsRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X