code: public void marshall(GenerateDataSetRequest generateDataSetRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (generateDataSetRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(generateDataSetRequest.getDataSetType(), DATASETTYPE_BINDING);
              protocolMarshaller.marshall(generateDataSetRequest.getDataSetPublicationDate(), DATASETPUBLICATIONDATE_BINDING);
              protocolMarshaller.marshall(generateDataSetRequest.getRoleNameArn(), ROLENAMEARN_BINDING);
              protocolMarshaller.marshall(generateDataSetRequest.getDestinationS3BucketName(), DESTINATIONS3BUCKETNAME_BINDING);
              protocolMarshaller.marshall(generateDataSetRequest.getDestinationS3Prefix(), DESTINATIONS3PREFIX_BINDING);
              protocolMarshaller.marshall(generateDataSetRequest.getSnsTopicArn(), SNSTOPICARN_BINDING);
              protocolMarshaller.marshall(generateDataSetRequest.getCustomerDefinedValues(), CUSTOMERDEFINEDVALUES_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.