void VpcPeeringConnectionVpcInfo::OutputToStream(Aws::OStream& oStream, const char* location) const
{
  if(m_cidrBlockHasBeenSet)
  {
      oStream << location << ".CidrBlock=" << StringUtils::URLEncode(m_cidrBlock.c_str()) << "&";
  }
  if(m_ipv6CidrBlockSetHasBeenSet)
  {
      unsigned ipv6CidrBlockSetIdx = 1;
      for(auto& item : m_ipv6CidrBlockSet)
      {
        Aws::StringStream ipv6CidrBlockSetSs;
        ipv6CidrBlockSetSs << location <<  ".Ipv6CidrBlockSet." << ipv6CidrBlockSetIdx++;
        item.OutputToStream(oStream, ipv6CidrBlockSetSs.str().c_str());
      }
  }
  if(m_ownerIdHasBeenSet)
  {
      oStream << location << ".OwnerId=" << StringUtils::URLEncode(m_ownerId.c_str()) << "&";
  }
  if(m_peeringOptionsHasBeenSet)
  {
      Aws::String peeringOptionsLocationAndMember(location);
      peeringOptionsLocationAndMember += ".PeeringOptions";
      m_peeringOptions.OutputToStream(oStream, peeringOptionsLocationAndMember.c_str());
  }
  if(m_vpcIdHasBeenSet)
  {
      oStream << location << ".VpcId=" << StringUtils::URLEncode(m_vpcId.c_str()) << "&";
  }
}
void VpcPeeringConnectionVpcInfo::OutputToStream(Aws::OStream& oStream, const char* location) const
{
  if(m_cidrBlockHasBeenSet)
  {
      oStream << location << ".CidrBlock=" << StringUtils::URLEncode(m_cidrBlock.c_str()) << "&";
  }
  if(m_ownerIdHasBeenSet)
  {
      oStream << location << ".OwnerId=" << StringUtils::URLEncode(m_ownerId.c_str()) << "&";
  }
  if(m_vpcIdHasBeenSet)
  {
      oStream << location << ".VpcId=" << StringUtils::URLEncode(m_vpcId.c_str()) << "&";
  }
  if(m_peeringOptionsHasBeenSet)
  {
      Aws::String peeringOptionsLocationAndMember(location);
      peeringOptionsLocationAndMember += ".PeeringOptions";
      m_peeringOptions.OutputToStream(oStream, peeringOptionsLocationAndMember.c_str());
  }
}