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

com.amazonaws.services.gamelift.model.CreateVpcPeeringConnectionRequest 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.

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.gamelift.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* A unique identifier for the fleet. You can use either the fleet ID or ARN value. This tells Amazon GameLift which * GameLift VPC to peer with. *

*/ private String fleetId; /** *

* A unique identifier for the Amazon Web Services account with the VPC that you want to peer your Amazon GameLift * fleet with. You can find your Account ID in the Amazon Web Services Management Console under account settings. *

*/ private String peerVpcAwsAccountId; /** *

* A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the * same Region as your fleet. To look up a VPC ID, use the VPC * Dashboard in the Amazon Web Services Management Console. Learn more about VPC peering in VPC Peering with Amazon * GameLift Fleets. *

*/ private String peerVpcId; /** *

* A unique identifier for the fleet. You can use either the fleet ID or ARN value. This tells Amazon GameLift which * GameLift VPC to peer with. *

* * @param fleetId * A unique identifier for the fleet. You can use either the fleet ID or ARN value. This tells Amazon * GameLift which GameLift VPC to peer with. */ public void setFleetId(String fleetId) { this.fleetId = fleetId; } /** *

* A unique identifier for the fleet. You can use either the fleet ID or ARN value. This tells Amazon GameLift which * GameLift VPC to peer with. *

* * @return A unique identifier for the fleet. You can use either the fleet ID or ARN value. This tells Amazon * GameLift which GameLift VPC to peer with. */ public String getFleetId() { return this.fleetId; } /** *

* A unique identifier for the fleet. You can use either the fleet ID or ARN value. This tells Amazon GameLift which * GameLift VPC to peer with. *

* * @param fleetId * A unique identifier for the fleet. You can use either the fleet ID or ARN value. This tells Amazon * GameLift which GameLift VPC to peer with. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcPeeringConnectionRequest withFleetId(String fleetId) { setFleetId(fleetId); return this; } /** *

* A unique identifier for the Amazon Web Services account with the VPC that you want to peer your Amazon GameLift * fleet with. You can find your Account ID in the Amazon Web Services Management Console under account settings. *

* * @param peerVpcAwsAccountId * A unique identifier for the Amazon Web Services account with the VPC that you want to peer your Amazon * GameLift fleet with. You can find your Account ID in the Amazon Web Services Management Console under * account settings. */ public void setPeerVpcAwsAccountId(String peerVpcAwsAccountId) { this.peerVpcAwsAccountId = peerVpcAwsAccountId; } /** *

* A unique identifier for the Amazon Web Services account with the VPC that you want to peer your Amazon GameLift * fleet with. You can find your Account ID in the Amazon Web Services Management Console under account settings. *

* * @return A unique identifier for the Amazon Web Services account with the VPC that you want to peer your Amazon * GameLift fleet with. You can find your Account ID in the Amazon Web Services Management Console under * account settings. */ public String getPeerVpcAwsAccountId() { return this.peerVpcAwsAccountId; } /** *

* A unique identifier for the Amazon Web Services account with the VPC that you want to peer your Amazon GameLift * fleet with. You can find your Account ID in the Amazon Web Services Management Console under account settings. *

* * @param peerVpcAwsAccountId * A unique identifier for the Amazon Web Services account with the VPC that you want to peer your Amazon * GameLift fleet with. You can find your Account ID in the Amazon Web Services Management Console under * account settings. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcPeeringConnectionRequest withPeerVpcAwsAccountId(String peerVpcAwsAccountId) { setPeerVpcAwsAccountId(peerVpcAwsAccountId); return this; } /** *

* A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the * same Region as your fleet. To look up a VPC ID, use the VPC * Dashboard in the Amazon Web Services Management Console. Learn more about VPC peering in VPC Peering with Amazon * GameLift Fleets. *

* * @param peerVpcId * A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be * in the same Region as your fleet. To look up a VPC ID, use the VPC Dashboard in the Amazon Web Services Management * Console. Learn more about VPC peering in VPC Peering with Amazon * GameLift Fleets. */ public void setPeerVpcId(String peerVpcId) { this.peerVpcId = peerVpcId; } /** *

* A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the * same Region as your fleet. To look up a VPC ID, use the VPC * Dashboard in the Amazon Web Services Management Console. Learn more about VPC peering in VPC Peering with Amazon * GameLift Fleets. *

* * @return A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must * be in the same Region as your fleet. To look up a VPC ID, use the VPC Dashboard in the Amazon Web Services Management * Console. Learn more about VPC peering in VPC Peering with * Amazon GameLift Fleets. */ public String getPeerVpcId() { return this.peerVpcId; } /** *

* A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the * same Region as your fleet. To look up a VPC ID, use the VPC * Dashboard in the Amazon Web Services Management Console. Learn more about VPC peering in VPC Peering with Amazon * GameLift Fleets. *

* * @param peerVpcId * A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be * in the same Region as your fleet. To look up a VPC ID, use the VPC Dashboard in the Amazon Web Services Management * Console. Learn more about VPC peering in VPC Peering with Amazon * GameLift Fleets. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcPeeringConnectionRequest withPeerVpcId(String peerVpcId) { setPeerVpcId(peerVpcId); 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 (getFleetId() != null) sb.append("FleetId: ").append(getFleetId()).append(","); if (getPeerVpcAwsAccountId() != null) sb.append("PeerVpcAwsAccountId: ").append(getPeerVpcAwsAccountId()).append(","); if (getPeerVpcId() != null) sb.append("PeerVpcId: ").append(getPeerVpcId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateVpcPeeringConnectionRequest == false) return false; CreateVpcPeeringConnectionRequest other = (CreateVpcPeeringConnectionRequest) obj; if (other.getFleetId() == null ^ this.getFleetId() == null) return false; if (other.getFleetId() != null && other.getFleetId().equals(this.getFleetId()) == false) return false; if (other.getPeerVpcAwsAccountId() == null ^ this.getPeerVpcAwsAccountId() == null) return false; if (other.getPeerVpcAwsAccountId() != null && other.getPeerVpcAwsAccountId().equals(this.getPeerVpcAwsAccountId()) == false) return false; if (other.getPeerVpcId() == null ^ this.getPeerVpcId() == null) return false; if (other.getPeerVpcId() != null && other.getPeerVpcId().equals(this.getPeerVpcId()) == 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 + ((getPeerVpcAwsAccountId() == null) ? 0 : getPeerVpcAwsAccountId().hashCode()); hashCode = prime * hashCode + ((getPeerVpcId() == null) ? 0 : getPeerVpcId().hashCode()); return hashCode; } @Override public CreateVpcPeeringConnectionRequest clone() { return (CreateVpcPeeringConnectionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy