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;
 
V P C
 
 public class VPC implements SerializableCloneable {
 
     private String vPCRegion;

    
A VPC ID

Constraints:
Length: 0 - 1024

 
     private String vPCId;

    
Returns the value of the VPCRegion property for this object.

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Returns:
The value of the VPCRegion property for this object.
See also:
VPCRegion
 
     public String getVPCRegion() {
         return ;
     }
    
    
Sets the value of the VPCRegion property for this object.

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Parameters:
vPCRegion The new value for the VPCRegion property for this object.
See also:
VPCRegion
 
     public void setVPCRegion(String vPCRegion) {
         this. = vPCRegion;
     }
    
    
Sets the value of the VPCRegion property for this object.

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

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Parameters:
vPCRegion The new value for the VPCRegion property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
VPCRegion
 
     public VPC withVPCRegion(String vPCRegion) {
         this. = vPCRegion;
         return this;
     }

    
Sets the value of the VPCRegion property for this object.

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Parameters:
vPCRegion The new value for the VPCRegion property for this object.
See also:
VPCRegion
 
     public void setVPCRegion(VPCRegion vPCRegion) {
         this. = vPCRegion.toString();
     }
    
    
Sets the value of the VPCRegion property for this object.

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

Constraints:
Length: 1 - 64
Allowed Values: us-east-1, us-west-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1

Parameters:
vPCRegion The new value for the VPCRegion property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
VPCRegion
    public VPC withVPCRegion(VPCRegion vPCRegion) {
        this. = vPCRegion.toString();
        return this;
    }

    
A VPC ID

Constraints:
Length: 0 - 1024

Returns:
A VPC ID
    public String getVPCId() {
        return ;
    }
    
    
A VPC ID

Constraints:
Length: 0 - 1024

Parameters:
vPCId A VPC ID
    public void setVPCId(String vPCId) {
        this. = vPCId;
    }
    
    
A VPC ID

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

Constraints:
Length: 0 - 1024

Parameters:
vPCId A VPC ID
Returns:
A reference to this updated object so that method calls can be chained together.
    public VPC withVPCId(String vPCId) {
        this. = vPCId;
        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 (getVPCRegion() != nullsb.append("VPCRegion: " + getVPCRegion() + ",");
        if (getVPCId() != nullsb.append("VPCId: " + getVPCId() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getVPCRegion() == null) ? 0 : getVPCRegion().hashCode()); 
        hashCode = prime * hashCode + ((getVPCId() == null) ? 0 : getVPCId().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof VPC == falsereturn false;
        VPC other = (VPC)obj;
        
        if (other.getVPCRegion() == null ^ this.getVPCRegion() == nullreturn false;
        if (other.getVPCRegion() != null && other.getVPCRegion().equals(this.getVPCRegion()) == falsereturn false
        if (other.getVPCId() == null ^ this.getVPCId() == nullreturn false;
        if (other.getVPCId() != null && other.getVPCId().equals(this.getVPCId()) == falsereturn false
        return true;
    }
    
    @Override
    public VPC clone() {
        try {
            return (VPCsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X