code: public void marshall(SegmentImportResource segmentImportResource, ProtocolMarshaller protocolMarshaller) {
  
          if (segmentImportResource == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(segmentImportResource.getChannelCounts(), CHANNELCOUNTS_BINDING);
              protocolMarshaller.marshall(segmentImportResource.getExternalId(), EXTERNALID_BINDING);
              protocolMarshaller.marshall(segmentImportResource.getFormat(), FORMAT_BINDING);
              protocolMarshaller.marshall(segmentImportResource.getRoleArn(), ROLEARN_BINDING);
              protocolMarshaller.marshall(segmentImportResource.getS3Url(), S3URL_BINDING);
              protocolMarshaller.marshall(segmentImportResource.getSize(), SIZE_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.