code: public void marshall(Lag lag, ProtocolMarshaller protocolMarshaller) {
  
          if (lag == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(lag.getConnectionsBandwidth(), CONNECTIONSBANDWIDTH_BINDING);
              protocolMarshaller.marshall(lag.getNumberOfConnections(), NUMBEROFCONNECTIONS_BINDING);
              protocolMarshaller.marshall(lag.getLagId(), LAGID_BINDING);
              protocolMarshaller.marshall(lag.getOwnerAccount(), OWNERACCOUNT_BINDING);
              protocolMarshaller.marshall(lag.getLagName(), LAGNAME_BINDING);
              protocolMarshaller.marshall(lag.getLagState(), LAGSTATE_BINDING);
              protocolMarshaller.marshall(lag.getLocation(), LOCATION_BINDING);
              protocolMarshaller.marshall(lag.getRegion(), REGION_BINDING);
              protocolMarshaller.marshall(lag.getMinimumLinks(), MINIMUMLINKS_BINDING);
              protocolMarshaller.marshall(lag.getAwsDevice(), AWSDEVICE_BINDING);
              protocolMarshaller.marshall(lag.getAwsDeviceV2(), AWSDEVICEV2_BINDING);
              protocolMarshaller.marshall(lag.getConnections(), CONNECTIONS_BINDING);
              protocolMarshaller.marshall(lag.getAllowsHostedConnections(), ALLOWSHOSTEDCONNECTIONS_BINDING);
              protocolMarshaller.marshall(lag.getJumboFrameCapable(), JUMBOFRAMECAPABLE_BINDING);
              protocolMarshaller.marshall(lag.getHasLogicalRedundancy(), HASLOGICALREDUNDANCY_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.