code: public void marshall(RedshiftDataSpec redshiftDataSpec, ProtocolMarshaller protocolMarshaller) {
  
          if (redshiftDataSpec == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(redshiftDataSpec.getDatabaseInformation(), DATABASEINFORMATION_BINDING);
              protocolMarshaller.marshall(redshiftDataSpec.getSelectSqlQuery(), SELECTSQLQUERY_BINDING);
              protocolMarshaller.marshall(redshiftDataSpec.getDatabaseCredentials(), DATABASECREDENTIALS_BINDING);
              protocolMarshaller.marshall(redshiftDataSpec.getS3StagingLocation(), S3STAGINGLOCATION_BINDING);
              protocolMarshaller.marshall(redshiftDataSpec.getDataRearrangement(), DATAREARRANGEMENT_BINDING);
              protocolMarshaller.marshall(redshiftDataSpec.getDataSchema(), DATASCHEMA_BINDING);
              protocolMarshaller.marshall(redshiftDataSpec.getDataSchemaUri(), DATASCHEMAURI_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.