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