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

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

Go to download

The AWS SDK for Java with support for OSGi. The AWS 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).

There is a newer version: 1.11.60
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;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* A complex type that contains information about the request to disassociate a * VPC from an hosted zone. *

*/ public class DisassociateVPCFromHostedZoneRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The ID of the hosted zone you want to disassociate your VPC from. *

*

* Note that you cannot disassociate the last VPC from a hosted zone. *

*/ private String hostedZoneId; /** *

* The VPC that you want your hosted zone to be disassociated from. *

*/ private VPC vPC; /** *

* Optional: Any comments you want to include about a * DisassociateVPCFromHostedZoneRequest. *

*/ private String comment; /** *

* The ID of the hosted zone you want to disassociate your VPC from. *

*

* Note that you cannot disassociate the last VPC from a hosted zone. *

* * @param hostedZoneId * The ID of the hosted zone you want to disassociate your VPC * from.

*

* Note that you cannot disassociate the last VPC from a hosted zone. */ public void setHostedZoneId(String hostedZoneId) { this.hostedZoneId = hostedZoneId; } /** *

* The ID of the hosted zone you want to disassociate your VPC from. *

*

* Note that you cannot disassociate the last VPC from a hosted zone. *

* * @return The ID of the hosted zone you want to disassociate your VPC * from.

*

* Note that you cannot disassociate the last VPC from a hosted * zone. */ public String getHostedZoneId() { return this.hostedZoneId; } /** *

* The ID of the hosted zone you want to disassociate your VPC from. *

*

* Note that you cannot disassociate the last VPC from a hosted zone. *

* * @param hostedZoneId * The ID of the hosted zone you want to disassociate your VPC * from.

*

* Note that you cannot disassociate the last VPC from a hosted zone. * @return Returns a reference to this object so that method calls can be * chained together. */ public DisassociateVPCFromHostedZoneRequest withHostedZoneId( String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; } /** *

* The VPC that you want your hosted zone to be disassociated from. *

* * @param vPC * The VPC that you want your hosted zone to be disassociated from. */ public void setVPC(VPC vPC) { this.vPC = vPC; } /** *

* The VPC that you want your hosted zone to be disassociated from. *

* * @return The VPC that you want your hosted zone to be disassociated from. */ public VPC getVPC() { return this.vPC; } /** *

* The VPC that you want your hosted zone to be disassociated from. *

* * @param vPC * The VPC that you want your hosted zone to be disassociated from. * @return Returns a reference to this object so that method calls can be * chained together. */ public DisassociateVPCFromHostedZoneRequest withVPC(VPC vPC) { setVPC(vPC); return this; } /** *

* Optional: Any comments you want to include about a * DisassociateVPCFromHostedZoneRequest. *

* * @param comment * Optional: Any comments you want to include about a * DisassociateVPCFromHostedZoneRequest */ public void setComment(String comment) { this.comment = comment; } /** *

* Optional: Any comments you want to include about a * DisassociateVPCFromHostedZoneRequest. *

* * @return Optional: Any comments you want to include about a * DisassociateVPCFromHostedZoneRequest */ public String getComment() { return this.comment; } /** *

* Optional: Any comments you want to include about a * DisassociateVPCFromHostedZoneRequest. *

* * @param comment * Optional: Any comments you want to include about a * DisassociateVPCFromHostedZoneRequest * @return Returns a reference to this object so that method calls can be * chained together. */ public DisassociateVPCFromHostedZoneRequest withComment(String comment) { setComment(comment); 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 (getVPC() != null) sb.append("VPC: " + getVPC() + ","); if (getComment() != null) sb.append("Comment: " + getComment()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DisassociateVPCFromHostedZoneRequest == false) return false; DisassociateVPCFromHostedZoneRequest other = (DisassociateVPCFromHostedZoneRequest) obj; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == false) return false; if (other.getVPC() == null ^ this.getVPC() == null) return false; if (other.getVPC() != null && other.getVPC().equals(this.getVPC()) == false) return false; if (other.getComment() == null ^ this.getComment() == null) return false; if (other.getComment() != null && other.getComment().equals(this.getComment()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId() .hashCode()); hashCode = prime * hashCode + ((getVPC() == null) ? 0 : getVPC().hashCode()); hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); return hashCode; } @Override public DisassociateVPCFromHostedZoneRequest clone() { return (DisassociateVPCFromHostedZoneRequest) super.clone(); } }