code: public void marshall(NewPrivateVirtualInterface newPrivateVirtualInterface, ProtocolMarshaller protocolMarshaller) {
  
          if (newPrivateVirtualInterface == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(newPrivateVirtualInterface.getVirtualInterfaceName(), VIRTUALINTERFACENAME_BINDING);
              protocolMarshaller.marshall(newPrivateVirtualInterface.getVlan(), VLAN_BINDING);
              protocolMarshaller.marshall(newPrivateVirtualInterface.getAsn(), ASN_BINDING);
              protocolMarshaller.marshall(newPrivateVirtualInterface.getMtu(), MTU_BINDING);
              protocolMarshaller.marshall(newPrivateVirtualInterface.getAuthKey(), AUTHKEY_BINDING);
              protocolMarshaller.marshall(newPrivateVirtualInterface.getAmazonAddress(), AMAZONADDRESS_BINDING);
              protocolMarshaller.marshall(newPrivateVirtualInterface.getCustomerAddress(), CUSTOMERADDRESS_BINDING);
              protocolMarshaller.marshall(newPrivateVirtualInterface.getAddressFamily(), ADDRESSFAMILY_BINDING);
              protocolMarshaller.marshall(newPrivateVirtualInterface.getVirtualGatewayId(), VIRTUALGATEWAYID_BINDING);
              protocolMarshaller.marshall(newPrivateVirtualInterface.getDirectConnectGatewayId(), DIRECTCONNECTGATEWAYID_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.