<p>
Any VPCs attached to the virtual private gateway.
</p>

@param vpcAttachments
Any VPCs attached to the virtual private gateway.
335292
public void setVpcAttachments(java.util.Collection<VpcAttachment> vpcAttachments) {
        if (vpcAttachments == null) {
            this.vpcAttachments = null;
            return;
        }

        this.vpcAttachments = new com.amazonaws.internal.SdkInternalList<VpcAttachment>(vpcAttachments);
    }
1300517
public RpcInternalContext setAttachments(Map<String, Object> attachments) {
        if (attachments != null && attachments.size() > 0) {
            for (Map.Entry<String, Object> entry : attachments.entrySet()) {
                setAttachment(entry.getKey(), entry.getValue());
            }
        }
        return this;
    }
1053137
private AttachInternetGatewayResponseType attachInternetGateway(final String internetgatewayId,
            final String vpcId) {
        AttachInternetGatewayResponseType ret = new AttachInternetGatewayResponseType();
        ret.setRequestId(UUID.randomUUID().toString());
        mockInternetGatewayController.attachInternetGateway(internetgatewayId, vpcId);
        ret.setReturn(true);
        return ret;
    }
1101053
public void setVPCs(java.util.Collection<VPC> vPCs) {
        if (vPCs == null) {
            this.vPCs = null;
            return;
        }

        this.vPCs = new com.amazonaws.internal.SdkInternalList<VPC>(vPCs);
    }
700737
public void setResourceAwsEc2InstanceIpV6Addresses(java.util.Collection<IpFilter> resourceAwsEc2InstanceIpV6Addresses) {
        if (resourceAwsEc2InstanceIpV6Addresses == null) {
            this.resourceAwsEc2InstanceIpV6Addresses = null;
            return;
        }

        this.resourceAwsEc2InstanceIpV6Addresses = new java.util.ArrayList<IpFilter>(resourceAwsEc2InstanceIpV6Addresses);
    }
882901
public static void setVCConnectionType(VirtualConnection vc, ConnectionType connType) {
        if (vc == null || connType == null) {
            return;
        }

        Map<Object, Object> map = vc.getStateMap();

        // Internal connections are both inbound and outbound (they're connections
        // to ourselves)
        // so while we prevent setting Outbound ConnTypes for inbound connections
        // and vice versa,
        // we don't prevent internal types from being set as either.
        if (vc instanceof InboundVirtualConnection && ConnectionType.isOutbound(connType.type)) {
            throw new IllegalStateException("Cannot set outbound ConnectionType on inbound VirtualConnection");
        } else if (vc instanceof OutboundVirtualConnection && ConnectionType.isInbound(connType.type)) {
            throw new IllegalStateException("Cannot set inbound ConnectionType on outbound VirtualConnection");
        }

        map.put(CONNECTION_TYPE_VC_KEY, connType);
    }
677305
public java.util.List<String> getVpnGatewayIds() {
        if (vpnGatewayIds == null) {
            vpnGatewayIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return vpnGatewayIds;
    }
570185
public static vpnglobal_vpnclientlessaccesspolicy_binding[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
		vpnglobal_vpnclientlessaccesspolicy_binding obj = new vpnglobal_vpnclientlessaccesspolicy_binding();
		options option = new options();
		option.set_filter(filter);
		vpnglobal_vpnclientlessaccesspolicy_binding[] response = (vpnglobal_vpnclientlessaccesspolicy_binding[]) obj.getfiltered(service, option);
		return response;
	}
714294
public void restoreAllMockVpc(final Collection<MockVpc> vpcs) {
        allMockVpcInstances.clear();
        if (null != vpcs) {
            for (MockVpc instance : vpcs) {
                allMockVpcInstances.put(instance.getVpcId(), instance);
            }
        }
    }
537882
public java.util.List<String> getVpcPeeringConnectionIds() {
        if (vpcPeeringConnectionIds == null) {
            vpcPeeringConnectionIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return vpcPeeringConnectionIds;
    }
312800
public void setInboundPermissions(java.util.Collection<IpPermission> inboundPermissions) {
        if (inboundPermissions == null) {
            this.inboundPermissions = null;
            return;
        }

        this.inboundPermissions = new java.util.ArrayList<IpPermission>(inboundPermissions);
    }
231550
public void setVpcPeeringConnectionIds(java.util.Collection<String> vpcPeeringConnectionIds) {
        if (vpcPeeringConnectionIds == null) {
            this.vpcPeeringConnectionIds = null;
            return;
        }

        this.vpcPeeringConnectionIds = new com.amazonaws.internal.SdkInternalList<String>(vpcPeeringConnectionIds);
    }
502201
public java.util.List<VpcEndpointConnection> getVpcEndpointConnections() {
        if (vpcEndpointConnections == null) {
            vpcEndpointConnections = new com.amazonaws.internal.SdkInternalList<VpcEndpointConnection>();
        }
        return vpcEndpointConnections;
    }
416526
public void setVpcSecurityGroups(java.util.Collection<VpcSecurityGroupMembership> vpcSecurityGroups) {
        if (vpcSecurityGroups == null) {
            this.vpcSecurityGroups = null;
            return;
        }

        this.vpcSecurityGroups = new com.amazonaws.internal.SdkInternalList<VpcSecurityGroupMembership>(vpcSecurityGroups);
    }
742973
public void setIpv4Ranges(java.util.Collection<IpRange> ipv4Ranges) {
        if (ipv4Ranges == null) {
            this.ipv4Ranges = null;
            return;
        }

        this.ipv4Ranges = new com.amazonaws.internal.SdkInternalList<IpRange>(ipv4Ranges);
    }
273033
public void setTransitGatewayAttachmentPropagations(java.util.Collection<TransitGatewayAttachmentPropagation> transitGatewayAttachmentPropagations) {
        if (transitGatewayAttachmentPropagations == null) {
            this.transitGatewayAttachmentPropagations = null;
            return;
        }

        this.transitGatewayAttachmentPropagations = new com.amazonaws.internal.SdkInternalList<TransitGatewayAttachmentPropagation>(
                transitGatewayAttachmentPropagations);
    }
1079348
public void setBgpPeers(java.util.Collection<BGPPeer> bgpPeers) {
        if (bgpPeers == null) {
            this.bgpPeers = null;
            return;
        }

        this.bgpPeers = new com.amazonaws.internal.SdkInternalList<BGPPeer>(bgpPeers);
    }