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

com.amazonaws.services.gamelift.model.VpcPeeringConnection Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS GameLift module holds the client classes that are used for communicating with AWS GameLift service.

There is a newer version: 1.12.782
Show newest version
/*
 * Copyright 2013-2018 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.gamelift.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Represents a peering connection between a VPC on one of your AWS accounts and the VPC for your Amazon GameLift * fleets. This record may be for an active peering connection or a pending connection that has not yet been * established. *

*

* VPC peering connection operations include: *

* * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class VpcPeeringConnection implements Serializable, Cloneable, StructuredPojo { /** *

* Unique identifier for a fleet. This ID determines the ID of the Amazon GameLift VPC for your fleet. *

*/ private String fleetId; /** *

* CIDR block of IPv4 addresses assigned to the VPC peering connection for the GameLift VPC. The peered VPC also has * an IPv4 CIDR block associated with it; these blocks cannot overlap or the peering connection cannot be created. *

*/ private String ipV4CidrBlock; /** *

* Unique identifier that is automatically assigned to the connection record. This ID is referenced in VPC peering * connection events, and is used when deleting a connection with DeleteVpcPeeringConnection. *

*/ private String vpcPeeringConnectionId; /** *

* Object that contains status information about the connection. Status indicates if a connection is pending, * successful, or failed. *

*/ private VpcPeeringConnectionStatus status; /** *

* Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the * same region where your fleet is deployed. To get VPC information, including IDs, use the Virtual Private Cloud * service tools, including the VPC Dashboard in the AWS Management Console. *

*/ private String peerVpcId; /** *

* Unique identifier for the VPC that contains the Amazon GameLift fleet for this connection. This VPC is managed by * Amazon GameLift and does not appear in your AWS account. *

*/ private String gameLiftVpcId; /** *

* Unique identifier for a fleet. This ID determines the ID of the Amazon GameLift VPC for your fleet. *

* * @param fleetId * Unique identifier for a fleet. This ID determines the ID of the Amazon GameLift VPC for your fleet. */ public void setFleetId(String fleetId) { this.fleetId = fleetId; } /** *

* Unique identifier for a fleet. This ID determines the ID of the Amazon GameLift VPC for your fleet. *

* * @return Unique identifier for a fleet. This ID determines the ID of the Amazon GameLift VPC for your fleet. */ public String getFleetId() { return this.fleetId; } /** *

* Unique identifier for a fleet. This ID determines the ID of the Amazon GameLift VPC for your fleet. *

* * @param fleetId * Unique identifier for a fleet. This ID determines the ID of the Amazon GameLift VPC for your fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcPeeringConnection withFleetId(String fleetId) { setFleetId(fleetId); return this; } /** *

* CIDR block of IPv4 addresses assigned to the VPC peering connection for the GameLift VPC. The peered VPC also has * an IPv4 CIDR block associated with it; these blocks cannot overlap or the peering connection cannot be created. *

* * @param ipV4CidrBlock * CIDR block of IPv4 addresses assigned to the VPC peering connection for the GameLift VPC. The peered VPC * also has an IPv4 CIDR block associated with it; these blocks cannot overlap or the peering connection * cannot be created. */ public void setIpV4CidrBlock(String ipV4CidrBlock) { this.ipV4CidrBlock = ipV4CidrBlock; } /** *

* CIDR block of IPv4 addresses assigned to the VPC peering connection for the GameLift VPC. The peered VPC also has * an IPv4 CIDR block associated with it; these blocks cannot overlap or the peering connection cannot be created. *

* * @return CIDR block of IPv4 addresses assigned to the VPC peering connection for the GameLift VPC. The peered VPC * also has an IPv4 CIDR block associated with it; these blocks cannot overlap or the peering connection * cannot be created. */ public String getIpV4CidrBlock() { return this.ipV4CidrBlock; } /** *

* CIDR block of IPv4 addresses assigned to the VPC peering connection for the GameLift VPC. The peered VPC also has * an IPv4 CIDR block associated with it; these blocks cannot overlap or the peering connection cannot be created. *

* * @param ipV4CidrBlock * CIDR block of IPv4 addresses assigned to the VPC peering connection for the GameLift VPC. The peered VPC * also has an IPv4 CIDR block associated with it; these blocks cannot overlap or the peering connection * cannot be created. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcPeeringConnection withIpV4CidrBlock(String ipV4CidrBlock) { setIpV4CidrBlock(ipV4CidrBlock); return this; } /** *

* Unique identifier that is automatically assigned to the connection record. This ID is referenced in VPC peering * connection events, and is used when deleting a connection with DeleteVpcPeeringConnection. *

* * @param vpcPeeringConnectionId * Unique identifier that is automatically assigned to the connection record. This ID is referenced in VPC * peering connection events, and is used when deleting a connection with DeleteVpcPeeringConnection. */ public void setVpcPeeringConnectionId(String vpcPeeringConnectionId) { this.vpcPeeringConnectionId = vpcPeeringConnectionId; } /** *

* Unique identifier that is automatically assigned to the connection record. This ID is referenced in VPC peering * connection events, and is used when deleting a connection with DeleteVpcPeeringConnection. *

* * @return Unique identifier that is automatically assigned to the connection record. This ID is referenced in VPC * peering connection events, and is used when deleting a connection with DeleteVpcPeeringConnection. */ public String getVpcPeeringConnectionId() { return this.vpcPeeringConnectionId; } /** *

* Unique identifier that is automatically assigned to the connection record. This ID is referenced in VPC peering * connection events, and is used when deleting a connection with DeleteVpcPeeringConnection. *

* * @param vpcPeeringConnectionId * Unique identifier that is automatically assigned to the connection record. This ID is referenced in VPC * peering connection events, and is used when deleting a connection with DeleteVpcPeeringConnection. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcPeeringConnection withVpcPeeringConnectionId(String vpcPeeringConnectionId) { setVpcPeeringConnectionId(vpcPeeringConnectionId); return this; } /** *

* Object that contains status information about the connection. Status indicates if a connection is pending, * successful, or failed. *

* * @param status * Object that contains status information about the connection. Status indicates if a connection is pending, * successful, or failed. */ public void setStatus(VpcPeeringConnectionStatus status) { this.status = status; } /** *

* Object that contains status information about the connection. Status indicates if a connection is pending, * successful, or failed. *

* * @return Object that contains status information about the connection. Status indicates if a connection is * pending, successful, or failed. */ public VpcPeeringConnectionStatus getStatus() { return this.status; } /** *

* Object that contains status information about the connection. Status indicates if a connection is pending, * successful, or failed. *

* * @param status * Object that contains status information about the connection. Status indicates if a connection is pending, * successful, or failed. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcPeeringConnection withStatus(VpcPeeringConnectionStatus status) { setStatus(status); return this; } /** *

* Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the * same region where your fleet is deployed. To get VPC information, including IDs, use the Virtual Private Cloud * service tools, including the VPC Dashboard in the AWS Management Console. *

* * @param peerVpcId * Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be * in the same region where your fleet is deployed. To get VPC information, including IDs, use the Virtual * Private Cloud service tools, including the VPC Dashboard in the AWS Management Console. */ public void setPeerVpcId(String peerVpcId) { this.peerVpcId = peerVpcId; } /** *

* Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the * same region where your fleet is deployed. To get VPC information, including IDs, use the Virtual Private Cloud * service tools, including the VPC Dashboard in the AWS Management Console. *

* * @return Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be * in the same region where your fleet is deployed. To get VPC information, including IDs, use the Virtual * Private Cloud service tools, including the VPC Dashboard in the AWS Management Console. */ public String getPeerVpcId() { return this.peerVpcId; } /** *

* Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the * same region where your fleet is deployed. To get VPC information, including IDs, use the Virtual Private Cloud * service tools, including the VPC Dashboard in the AWS Management Console. *

* * @param peerVpcId * Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be * in the same region where your fleet is deployed. To get VPC information, including IDs, use the Virtual * Private Cloud service tools, including the VPC Dashboard in the AWS Management Console. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcPeeringConnection withPeerVpcId(String peerVpcId) { setPeerVpcId(peerVpcId); return this; } /** *

* Unique identifier for the VPC that contains the Amazon GameLift fleet for this connection. This VPC is managed by * Amazon GameLift and does not appear in your AWS account. *

* * @param gameLiftVpcId * Unique identifier for the VPC that contains the Amazon GameLift fleet for this connection. This VPC is * managed by Amazon GameLift and does not appear in your AWS account. */ public void setGameLiftVpcId(String gameLiftVpcId) { this.gameLiftVpcId = gameLiftVpcId; } /** *

* Unique identifier for the VPC that contains the Amazon GameLift fleet for this connection. This VPC is managed by * Amazon GameLift and does not appear in your AWS account. *

* * @return Unique identifier for the VPC that contains the Amazon GameLift fleet for this connection. This VPC is * managed by Amazon GameLift and does not appear in your AWS account. */ public String getGameLiftVpcId() { return this.gameLiftVpcId; } /** *

* Unique identifier for the VPC that contains the Amazon GameLift fleet for this connection. This VPC is managed by * Amazon GameLift and does not appear in your AWS account. *

* * @param gameLiftVpcId * Unique identifier for the VPC that contains the Amazon GameLift fleet for this connection. This VPC is * managed by Amazon GameLift and does not appear in your AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcPeeringConnection withGameLiftVpcId(String gameLiftVpcId) { setGameLiftVpcId(gameLiftVpcId); 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 (getFleetId() != null) sb.append("FleetId: ").append(getFleetId()).append(","); if (getIpV4CidrBlock() != null) sb.append("IpV4CidrBlock: ").append(getIpV4CidrBlock()).append(","); if (getVpcPeeringConnectionId() != null) sb.append("VpcPeeringConnectionId: ").append(getVpcPeeringConnectionId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getPeerVpcId() != null) sb.append("PeerVpcId: ").append(getPeerVpcId()).append(","); if (getGameLiftVpcId() != null) sb.append("GameLiftVpcId: ").append(getGameLiftVpcId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof VpcPeeringConnection == false) return false; VpcPeeringConnection other = (VpcPeeringConnection) obj; if (other.getFleetId() == null ^ this.getFleetId() == null) return false; if (other.getFleetId() != null && other.getFleetId().equals(this.getFleetId()) == false) return false; if (other.getIpV4CidrBlock() == null ^ this.getIpV4CidrBlock() == null) return false; if (other.getIpV4CidrBlock() != null && other.getIpV4CidrBlock().equals(this.getIpV4CidrBlock()) == false) return false; if (other.getVpcPeeringConnectionId() == null ^ this.getVpcPeeringConnectionId() == null) return false; if (other.getVpcPeeringConnectionId() != null && other.getVpcPeeringConnectionId().equals(this.getVpcPeeringConnectionId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getPeerVpcId() == null ^ this.getPeerVpcId() == null) return false; if (other.getPeerVpcId() != null && other.getPeerVpcId().equals(this.getPeerVpcId()) == false) return false; if (other.getGameLiftVpcId() == null ^ this.getGameLiftVpcId() == null) return false; if (other.getGameLiftVpcId() != null && other.getGameLiftVpcId().equals(this.getGameLiftVpcId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFleetId() == null) ? 0 : getFleetId().hashCode()); hashCode = prime * hashCode + ((getIpV4CidrBlock() == null) ? 0 : getIpV4CidrBlock().hashCode()); hashCode = prime * hashCode + ((getVpcPeeringConnectionId() == null) ? 0 : getVpcPeeringConnectionId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getPeerVpcId() == null) ? 0 : getPeerVpcId().hashCode()); hashCode = prime * hashCode + ((getGameLiftVpcId() == null) ? 0 : getGameLiftVpcId().hashCode()); return hashCode; } @Override public VpcPeeringConnection clone() { try { return (VpcPeeringConnection) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.gamelift.model.transform.VpcPeeringConnectionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy