All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.route53.model.ChangeResourceRecordSetsRequest Maven / Gradle / Ivy

Go to download

The Amazon Web Services SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

The newest version!
/*
 * Copyright 2010-2014 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;

import java.io.Serializable;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * Container for the parameters to the {@link com.amazonaws.services.route53.AmazonRoute53#changeResourceRecordSets(ChangeResourceRecordSetsRequest) 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. *

* * @see com.amazonaws.services.route53.AmazonRoute53#changeResourceRecordSets(ChangeResourceRecordSetsRequest) */ public class ChangeResourceRecordSetsRequest extends AmazonWebServiceRequest implements Serializable { /** * 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. * * @param hostedZoneId The ID of the hosted zone that contains the * resource record sets that you want to change. * @param changeBatch A complex type that contains an optional comment * and the Changes element. */ public ChangeResourceRecordSetsRequest(String hostedZoneId, ChangeBatch 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
* * @return The ID of the hosted zone that contains the resource record sets that * you want to change. */ public String getHostedZoneId() { return hostedZoneId; } /** * The ID of the hosted zone that contains the resource record sets that * you want to change. *

* Constraints:
* Length: 0 - 32
* * @param 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 = 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
* * @param hostedZoneId The ID of the hosted zone that contains the resource record sets that * you want to change. * * @return A reference to this updated object so that method calls can be chained * together. */ public ChangeResourceRecordSetsRequest withHostedZoneId(String hostedZoneId) { this.hostedZoneId = hostedZoneId; return this; } /** * A complex type that contains an optional comment and the * Changes element. * * @return A complex type that contains an optional comment and the * Changes element. */ public ChangeBatch getChangeBatch() { return changeBatch; } /** * A complex type that contains an optional comment and the * Changes element. * * @param changeBatch A complex type that contains an optional comment and the * Changes element. */ public void setChangeBatch(ChangeBatch changeBatch) { this.changeBatch = 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. * * @param changeBatch A complex type that contains an optional comment and the * Changes element. * * @return A reference to this updated object so that method calls can be chained * together. */ public ChangeResourceRecordSetsRequest withChangeBatch(ChangeBatch changeBatch) { this.changeBatch = changeBatch; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getHostedZoneId() != null) sb.append("HostedZoneId: " + getHostedZoneId() + ","); if (getChangeBatch() != null) sb.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 == obj) return true; if (obj == null) return false; if (obj instanceof ChangeResourceRecordSetsRequest == false) return false; ChangeResourceRecordSetsRequest other = (ChangeResourceRecordSetsRequest)obj; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == false) return false; if (other.getChangeBatch() == null ^ this.getChangeBatch() == null) return false; if (other.getChangeBatch() != null && other.getChangeBatch().equals(this.getChangeBatch()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy