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

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

Go to download

The AWS Java SDK for Amazon Route53 module holds the client classes that are used for communicating with Amazon Route53 Service

There is a newer version: 1.11.98
Show newest version
/*
 * Copyright 2011-2016 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;

/**
 * 

* The information for each resource record set that you want to change. *

*/ public class Change implements Serializable, Cloneable { /** *

* The action to perform: *

*
    *
  • *

    * CREATE: Creates a resource record set that has the specified values. *

    *
  • *
  • *

    * DELETE: Deletes a existing resource record set that has the specified values for Name, * Type, SetIdentifier (for latency, weighted, geolocation, and failover resource record * sets), and TTL (except alias resource record sets, for which the TTL is determined by the AWS * resource that you're routing DNS queries to). *

    * *

    * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, Amazon Route * 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though * it's no longer in use. *

    *
  • *
  • *

    * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a resource * record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 can update an * existing resource record set only when all of the following values match: Name, Type, * and SetIdentifier (for weighted, latency, geolocation, and failover resource record sets). *

    *
  • *
*/ private String action; /** *

* Information about the resource record set to create or delete. *

*/ private ResourceRecordSet resourceRecordSet; /** * Default constructor for Change object. Callers should use the setter or fluent setter (with...) methods to * initialize the object after creating it. */ public Change() { } /** * Constructs a new Change object. Callers should use the setter or fluent setter (with...) methods to initialize * any additional object members. * * @param action * The action to perform:

*
    *
  • *

    * CREATE: Creates a resource record set that has the specified values. *

    *
  • *
  • *

    * DELETE: Deletes a existing resource record set that has the specified values for * Name, Type, SetIdentifier (for latency, weighted, geolocation, and * failover resource record sets), and TTL (except alias resource record sets, for which the TTL * is determined by the AWS resource that you're routing DNS queries to). *

    * *

    * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, * Amazon Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be * charged for it even though it's no longer in use. *

    *
  • *
  • *

    * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a * resource record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 * can update an existing resource record set only when all of the following values match: Name, * Type, and SetIdentifier (for weighted, latency, geolocation, and failover * resource record sets). *

    *
  • * @param resourceRecordSet * Information about the resource record set to create or delete. */ public Change(String action, ResourceRecordSet resourceRecordSet) { setAction(action); setResourceRecordSet(resourceRecordSet); } /** * Constructs a new Change object. Callers should use the setter or fluent setter (with...) methods to initialize * any additional object members. * * @param action * The action to perform:

    *
      *
    • *

      * CREATE: Creates a resource record set that has the specified values. *

      *
    • *
    • *

      * DELETE: Deletes a existing resource record set that has the specified values for * Name, Type, SetIdentifier (for latency, weighted, geolocation, and * failover resource record sets), and TTL (except alias resource record sets, for which the TTL * is determined by the AWS resource that you're routing DNS queries to). *

      * *

      * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, * Amazon Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be * charged for it even though it's no longer in use. *

      *
    • *
    • *

      * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a * resource record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 * can update an existing resource record set only when all of the following values match: Name, * Type, and SetIdentifier (for weighted, latency, geolocation, and failover * resource record sets). *

      *
    • * @param resourceRecordSet * Information about the resource record set to create or delete. */ public Change(ChangeAction action, ResourceRecordSet resourceRecordSet) { setAction(action.toString()); setResourceRecordSet(resourceRecordSet); } /** *

      * The action to perform: *

      *
        *
      • *

        * CREATE: Creates a resource record set that has the specified values. *

        *
      • *
      • *

        * DELETE: Deletes a existing resource record set that has the specified values for Name, * Type, SetIdentifier (for latency, weighted, geolocation, and failover resource record * sets), and TTL (except alias resource record sets, for which the TTL is determined by the AWS * resource that you're routing DNS queries to). *

        * *

        * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, Amazon Route * 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though * it's no longer in use. *

        *
      • *
      • *

        * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a resource * record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 can update an * existing resource record set only when all of the following values match: Name, Type, * and SetIdentifier (for weighted, latency, geolocation, and failover resource record sets). *

        *
      • *
      * * @param action * The action to perform:

      *
        *
      • *

        * CREATE: Creates a resource record set that has the specified values. *

        *
      • *
      • *

        * DELETE: Deletes a existing resource record set that has the specified values for * Name, Type, SetIdentifier (for latency, weighted, geolocation, and * failover resource record sets), and TTL (except alias resource record sets, for which the TTL * is determined by the AWS resource that you're routing DNS queries to). *

        * *

        * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, * Amazon Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be * charged for it even though it's no longer in use. *

        *
      • *
      • *

        * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a * resource record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 * can update an existing resource record set only when all of the following values match: Name, * Type, and SetIdentifier (for weighted, latency, geolocation, and failover * resource record sets). *

        *
      • * @see ChangeAction */ public void setAction(String action) { this.action = action; } /** *

        * The action to perform: *

        *
          *
        • *

          * CREATE: Creates a resource record set that has the specified values. *

          *
        • *
        • *

          * DELETE: Deletes a existing resource record set that has the specified values for Name, * Type, SetIdentifier (for latency, weighted, geolocation, and failover resource record * sets), and TTL (except alias resource record sets, for which the TTL is determined by the AWS * resource that you're routing DNS queries to). *

          * *

          * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, Amazon Route * 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though * it's no longer in use. *

          *
        • *
        • *

          * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a resource * record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 can update an * existing resource record set only when all of the following values match: Name, Type, * and SetIdentifier (for weighted, latency, geolocation, and failover resource record sets). *

          *
        • *
        * * @return The action to perform:

        *
          *
        • *

          * CREATE: Creates a resource record set that has the specified values. *

          *
        • *
        • *

          * DELETE: Deletes a existing resource record set that has the specified values for * Name, Type, SetIdentifier (for latency, weighted, geolocation, and * failover resource record sets), and TTL (except alias resource record sets, for which the * TTL is determined by the AWS resource that you're routing DNS queries to). *

          * *

          * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, * Amazon Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be * charged for it even though it's no longer in use. *

          *
        • *
        • *

          * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a * resource record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route * 53 can update an existing resource record set only when all of the following values match: * Name, Type, and SetIdentifier (for weighted, latency, geolocation, * and failover resource record sets). *

          *
        • * @see ChangeAction */ public String getAction() { return this.action; } /** *

          * The action to perform: *

          *
            *
          • *

            * CREATE: Creates a resource record set that has the specified values. *

            *
          • *
          • *

            * DELETE: Deletes a existing resource record set that has the specified values for Name, * Type, SetIdentifier (for latency, weighted, geolocation, and failover resource record * sets), and TTL (except alias resource record sets, for which the TTL is determined by the AWS * resource that you're routing DNS queries to). *

            * *

            * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, Amazon Route * 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though * it's no longer in use. *

            *
          • *
          • *

            * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a resource * record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 can update an * existing resource record set only when all of the following values match: Name, Type, * and SetIdentifier (for weighted, latency, geolocation, and failover resource record sets). *

            *
          • *
          * * @param action * The action to perform:

          *
            *
          • *

            * CREATE: Creates a resource record set that has the specified values. *

            *
          • *
          • *

            * DELETE: Deletes a existing resource record set that has the specified values for * Name, Type, SetIdentifier (for latency, weighted, geolocation, and * failover resource record sets), and TTL (except alias resource record sets, for which the TTL * is determined by the AWS resource that you're routing DNS queries to). *

            * *

            * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, * Amazon Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be * charged for it even though it's no longer in use. *

            *
          • *
          • *

            * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a * resource record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 * can update an existing resource record set only when all of the following values match: Name, * Type, and SetIdentifier (for weighted, latency, geolocation, and failover * resource record sets). *

            *
          • * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public Change withAction(String action) { setAction(action); return this; } /** *

            * The action to perform: *

            *
              *
            • *

              * CREATE: Creates a resource record set that has the specified values. *

              *
            • *
            • *

              * DELETE: Deletes a existing resource record set that has the specified values for Name, * Type, SetIdentifier (for latency, weighted, geolocation, and failover resource record * sets), and TTL (except alias resource record sets, for which the TTL is determined by the AWS * resource that you're routing DNS queries to). *

              * *

              * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, Amazon Route * 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though * it's no longer in use. *

              *
            • *
            • *

              * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a resource * record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 can update an * existing resource record set only when all of the following values match: Name, Type, * and SetIdentifier (for weighted, latency, geolocation, and failover resource record sets). *

              *
            • *
            * * @param action * The action to perform:

            *
              *
            • *

              * CREATE: Creates a resource record set that has the specified values. *

              *
            • *
            • *

              * DELETE: Deletes a existing resource record set that has the specified values for * Name, Type, SetIdentifier (for latency, weighted, geolocation, and * failover resource record sets), and TTL (except alias resource record sets, for which the TTL * is determined by the AWS resource that you're routing DNS queries to). *

              * *

              * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, * Amazon Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be * charged for it even though it's no longer in use. *

              *
            • *
            • *

              * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a * resource record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 * can update an existing resource record set only when all of the following values match: Name, * Type, and SetIdentifier (for weighted, latency, geolocation, and failover * resource record sets). *

              *
            • * @see ChangeAction */ public void setAction(ChangeAction action) { this.action = action.toString(); } /** *

              * The action to perform: *

              *
                *
              • *

                * CREATE: Creates a resource record set that has the specified values. *

                *
              • *
              • *

                * DELETE: Deletes a existing resource record set that has the specified values for Name, * Type, SetIdentifier (for latency, weighted, geolocation, and failover resource record * sets), and TTL (except alias resource record sets, for which the TTL is determined by the AWS * resource that you're routing DNS queries to). *

                * *

                * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, Amazon Route * 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though * it's no longer in use. *

                *
              • *
              • *

                * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a resource * record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 can update an * existing resource record set only when all of the following values match: Name, Type, * and SetIdentifier (for weighted, latency, geolocation, and failover resource record sets). *

                *
              • *
              * * @param action * The action to perform:

              *
                *
              • *

                * CREATE: Creates a resource record set that has the specified values. *

                *
              • *
              • *

                * DELETE: Deletes a existing resource record set that has the specified values for * Name, Type, SetIdentifier (for latency, weighted, geolocation, and * failover resource record sets), and TTL (except alias resource record sets, for which the TTL * is determined by the AWS resource that you're routing DNS queries to). *

                * *

                * To delete the resource record set that is associated with a traffic policy instance, use * DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set * automatically. If you delete the resource record set by using ChangeResourceRecordSets, * Amazon Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be * charged for it even though it's no longer in use. *

                *
              • *
              • *

                * UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a * resource record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 * can update an existing resource record set only when all of the following values match: Name, * Type, and SetIdentifier (for weighted, latency, geolocation, and failover * resource record sets). *

                *
              • * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public Change withAction(ChangeAction action) { setAction(action); return this; } /** *

                * Information about the resource record set to create or delete. *

                * * @param resourceRecordSet * Information about the resource record set to create or delete. */ public void setResourceRecordSet(ResourceRecordSet resourceRecordSet) { this.resourceRecordSet = resourceRecordSet; } /** *

                * Information about the resource record set to create or delete. *

                * * @return Information about the resource record set to create or delete. */ public ResourceRecordSet getResourceRecordSet() { return this.resourceRecordSet; } /** *

                * Information about the resource record set to create or delete. *

                * * @param resourceRecordSet * Information about the resource record set to create or delete. * @return Returns a reference to this object so that method calls can be chained together. */ public Change withResourceRecordSet(ResourceRecordSet resourceRecordSet) { setResourceRecordSet(resourceRecordSet); 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 (getAction() != null) sb.append("Action: " + getAction() + ","); if (getResourceRecordSet() != null) sb.append("ResourceRecordSet: " + getResourceRecordSet()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Change == false) return false; Change other = (Change) obj; if (other.getAction() == null ^ this.getAction() == null) return false; if (other.getAction() != null && other.getAction().equals(this.getAction()) == false) return false; if (other.getResourceRecordSet() == null ^ this.getResourceRecordSet() == null) return false; if (other.getResourceRecordSet() != null && other.getResourceRecordSet().equals(this.getResourceRecordSet()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode()); hashCode = prime * hashCode + ((getResourceRecordSet() == null) ? 0 : getResourceRecordSet().hashCode()); return hashCode; } @Override public Change clone() { try { return (Change) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy