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

The newest version!
/*
 * Copyright 2019-2024 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 javax.annotation.Generated;

/**
 * 

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

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") 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. *

    * *

    * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If you * delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource record * set does exist, Route 53 updates it with the values in the request. *

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

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

*/ 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. *

    * *

    * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If * you delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource * record set does exist, Route 53 updates it with the values in the request. *

    *
  • * @param resourceRecordSet * Information about the resource record set to create, delete, or update. */ 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. *

      * *

      * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If * you delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource * record set does exist, Route 53 updates it with the values in the request. *

      *
    • * @param resourceRecordSet * Information about the resource record set to create, delete, or update. */ 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. *

        * *

        * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If you * delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource record * set does exist, Route 53 updates it with the values in the request. *

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

      *
        *
      • *

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

        *
      • *
      • *

        * DELETE: Deletes a existing resource record set. *

        * *

        * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If * you delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource * record set does exist, Route 53 updates it with the values in the request. *

        *
      • * @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. *

          * *

          * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If you * delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource record * set does exist, Route 53 updates it with the values in the request. *

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

        *
          *
        • *

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

          *
        • *
        • *

          * DELETE: Deletes a existing resource record set. *

          * *

          * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If * you delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource * record set does exist, Route 53 updates it with the values in the request. *

          *
        • * @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. *

            * *

            * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If you * delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource record * set does exist, Route 53 updates it with the values in the request. *

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

          *
            *
          • *

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

            *
          • *
          • *

            * DELETE: Deletes a existing resource record set. *

            * *

            * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If * you delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource * record set does exist, Route 53 updates it with the values in the request. *

            *
          • * @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. *

              * *

              * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If you * delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource record * set does exist, Route 53 updates it with the values in the request. *

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

            *
              *
            • *

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

              *
            • *
            • *

              * DELETE: Deletes a existing resource record set. *

              * *

              * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If * you delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource * record set does exist, Route 53 updates it with the values in the request. *

              *
            • * @see ChangeAction */ public void setAction(ChangeAction action) { withAction(action); } /** *

              * The action to perform: *

              *
                *
              • *

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

                *
              • *
              • *

                * DELETE: Deletes a existing resource record set. *

                * *

                * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If you * delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource record * set does exist, Route 53 updates it with the values in the request. *

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

              *
                *
              • *

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

                *
              • *
              • *

                * DELETE: Deletes a existing resource record set. *

                * *

                * To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If * you delete the resource record set by using ChangeResourceRecordSets, 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 doesn't already exist, Route 53 creates it. If a resource * record set does exist, Route 53 updates it with the values in the request. *

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

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

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

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

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

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

                * * @param resourceRecordSet * Information about the resource record set to create, delete, or update. * @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. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @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: ").append(getAction()).append(","); if (getResourceRecordSet() != null) sb.append("ResourceRecordSet: ").append(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